Skip to content

KiruthickK/Simple-Jumping-Game-Using-HTML-CSS-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Jumping-Game-Using-HTML-CSS-JS

This game runs on Node server (localhost:3000). This game uses MySql to store game scores, you have to edit the db name, username password in the app.js

Installation

  • Download the project
  • cd the game's path on cmd
  • npm install to install all dependencies
  • Open "app.js" and edit the varibles called
    username password dbname server
    `User name,password,server, database name of mysql
  • node app to turn on the server
  • Search "localhost:3000" in a browser to run the game
  • This game saves user data on mysql database

    Edit app.js with appropirate database credentials

    Create a table "players" with following properties:

    +----------+-------------+------+-----+---------+-------+
    | Field    | Type        | Null | Key | Default | Extra |
    +----------+-------------+------+-----+---------+-------+
    | name     | varchar(20) | YES  |     | NULL    |       |
    | password | varchar(20) | YES  |     | NULL    |       |
    | score    | int         | YES  |     | NULL    |       |
    +----------+-------------+------+-----+---------+-------+

Game instructions

press "c" to start the game Press "spacebar" or "mouse left click" to jump Press "x" to use "invisible ability" while the big block tries to hit you press "s" to activate super power(available if you have 20 points from last super power used and lasts for 5 seconds) If you have super power available the player color changes to rose press "p" to pause game

Video demonstration of this game

Hope You enjoyed the game