"Kill bugs. Survive the night."
Dim light is a survival game made on HTML5 Canvas. The player goal is to kill as many bugs as possible and remaining alive.
Player moves with keys A, W, S, D and points its gun by moving the mouse and shoots by clicking on canvas.
The goal of the player is to survive multiple enemies attacking from outside of the canvas by keeping its torch lighted up, enemies may drop little flames that can be picked up by the player to bright up the scene.
When enemies attack the player, screen gets darker so enemies are also harder to see.
Game ends when player's torch dies or player kills all enemies.
The game uses vectors to rotate the player to mouse position in canvas and get the next position of enemies and bullets.
In order to make the enemies move towards the player, player's position is passed to enemies in every frame.
Bullets move uniformly to mouse position ๐ซ
Cool retro games need bosses, it would be nice if player had to fight a big fat bug at the end of the game. Also could be more interesting if the player could move relative to the mouse position instead of moving relative to the canvas.
Another cool possible feature could be power ups or new guns.