Skip to content

semklim/ClickerGame_Step_Academy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clicker Game

A task:

- create a game
- be sure to work through github
- don't forget to commit changes and download others' changes

requirements:
- different levels, go in a circle (or in random order)
- how and when the end of the game comes - you decide
- come up with 2 different mechanics
- action sounds (attack, etc.) + background music
- use observer and factory patterns
- use keyboard and mouse events (you can use 2 control options for the same actions)

necessarily:
- life (or an analogue of its mechanics) for the player
- attack from the player and enemies (or an analogue of this mechanic)
- transition between levels
- first-person element (hand, player's weapon or something like that) 
  with action animations (possible through gif)

Mechanics

1) Life for enemy and hero.
2) Bottle that regenerate life of hero.
3) Regeneration of bottle 4 times only.
4) Exit btn is save all progress and open menu. 
   In menu btn Continues will be available and can recreate all from savepoint.
5) New game btn always save best score and if it muted sound or not.
6) Increase hero attack after first 50 click and all next increase after 100 click. 

Lessons Learned

1) How to work with Observer pattern;
2) How create spritesheet;
3) How create animation of spritesheet for diferent actions;
4) How work with audio;
5) How use localStorage for save different necessary data and after recreate all data from a savepoint;

About

Clicker game. HTML5 + CSS3 + vanilla JS + Canvas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published