This mini-game web application is developed using JS (JavaScript), CSS with SCSS, and HTML. (Without using any frameworks). Here, the display repaint function (requestAnimationFrame() in JS) is used to call the browser for updating an animation before the next repaint, and also key event handlers in JS were used in the movements. The game character has the ability for moving both left and right sides and also is able to do jumps when needed. (This application only works for desktops)
- JavaScript (JS)
- HTML
- CSS with SCSS
- Clone the repo
git clone https://github.com/visalsrimanga/Mini-Game-Web-App.git
- Go inside the root directory
cd Mini-Game-Web-App
- Install scss compiler (eg: Sass) if you need to write scss styles by flowing the instructions of
https://sass-lang.com/
site. - Run
sass -w scss:css
to start the sass compiler. - Run
npx serve
step 3 and step 4 are optional. Those will be needed only if you wish to develop this project. (when styling using css, those steps can be neglected)
- Press Left Arrow Key - Run left
- Press Right Arrow Key - Run right
- Press Space - Jump
- Click here to see the demo website.
1.0.0
Copyright © 2022. All Right Reserved.
This project is licensed under the MIT License
- Email: [email protected]
- Linkedin: Visal Srimanga