johnson-rl / Cuddle-Dungeon-The-Game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cuddle-Dungeon-The-Game - Play it Here

Screen Shots

Dungeon View Battle View

Technologies Used

  • JavaScript
  • jQuery
  • HTML
  • CSS
  • Bootstrap
  • Handlebars
  • Code I'm Proud Of

    This function is great! It creates the gameboard and allows me to place obstacles and goals on the board. Also, it was written in a way where I could create new levels easily.

    function boardIterator(data, functionOne, functionTwo){
      var coordinate = [0,0]
      for (;coordinate[1]<10; coordinate[1]++){
        var row = coordinate[1]
        functionOne(row, data, $('.left-half'));
        coordinate[0] = 0;
        for (;coordinate[0]<12; coordinate[0]++){
          var colRow = coordinate.join('');
          functionTwo(colRow, data, $('.left-half'))
        }
      }
      coordinate = [12,0];
      for (;coordinate[1]<10; coordinate[1]++){
        var row = coordinate[1]
        functionOne(row, data, $('.right-half'));
        coordinate[0] = 0;
        for (coordinate[0]=12;coordinate[0]<24; coordinate[0]++){
          var colRow = coordinate.join('');
          functionTwo(colRow, data, $('.right-half'))
        }
      }
    }

    What's Next for Cuddle Dungeon?

  • Add a "How to Play" Section
  • Let player choose class, with differing special abilities. Enable XP, and leveling up.
  • Generate enemies with higher levels
  • Adjust the way the board renders to allow bigger (essentially infinite) gameboards
  • Add sound
  • Release Cuddle Dungeon 2: Ninja Kitty's Revenge
  • About


    Languages

    Language:JavaScript 47.9%Language:HTML 47.0%Language:CSS 5.1%