Skip to content

lvltcode/canvas_game_starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Monster Hunter

Created with love by: lvltcode - link Demo - https://monster-chasing-lvlcode.netlify.com/

This is a simple Canvas-based game that requires a solid understanding of the principles of JavaScript programming to customize.

Video Walkthrough

Here's a walkthrough of implemented user stories.

<img src='http://http://g.recordit.co/cURdPMSHT2.gif' title='Video Walkthrough' width='' alt='Video Walkthrough' />

Code Reviews

This code was reviewed by @Erik and @Victor.

Required User Stories

  • I have at least three code reviews from others.
  • The user can move their character with the arrow keys.
  • The user can see a monster.
  • The monster is placed at a random location within the game boundaries.
  • The user can catch a monster by moving their character to the same location as a monster.
  • When the user catches a monster, a new monster is placed randomly upon the screen.
  • The user can see the numbers of monsters she has caught. Every time she catches a monster, the number should increment by one.
  • The game ends when the user has caught 20 monsters. The total time elapsed is displayed upon game completion, in seconds.
  • The user can access this game from the internet (e.g. using Netlify).
  • The code has been reviewed by at least one other person, using Pull Requests on GitHub.

Optional User Stories

  • Custom styling: the developer has replaced the images for the main character, monster, and background with something of her choice.
  • The user cannot move her character off the screen.
  • The user sees a few different types of monster each time a new monster is spawned.
  • The monster moves around on its own each frame, and the user must chase it.
  • The map has "obstacles", such as trees, which block the user from moving through the space occupied by the obstacle.
  • The user can hear sound effects upon movement and upon catching a monster.
  • The user hears background music during the game.
  • The user can see their high score.

The following additional features are implemented:

  • The monsters move randomly and harder to catch.
  • The monsters move randomly but inside the screen.

Time Spent and Lessons Learned

Time spent: 8 hours spent in total.

  • Describe any challenges encountered while building the app: Sometime when a variable got wrong values, maybe it make the screen disappear, it take me to checked all the code before I realized.

License

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Starter code for a simple game, borrowed from CodeMahal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • HTML 4.0%