- A 2D game with vanilla JavaScript, HTML5, CSS3 and HTML Canvas.
- Used HTML5, CSS3 and plain vanilla JavaScript to build a game from scratch.
- Controls the FPS of the game and measures time to trigger periodic events.
- Used built-in drawImage method to draw randomized game environments and animated characters from a sprite sheet.
- Captures mouse position and animate an 8 directional sprite sheet based on the relative position between the mouse and the player character.
- Implemented a very simple AI to make the creatures feel alive.
- Applied collision detection algorithm to resolve collisions and use that to simulate physics.
- Feature to restart the game by pressing a button.
- A live demo of the project can be found here
List the main technologies and libraries used in your project.
Provide instructions on how to set up the project locally. Include prerequisites and installation steps.
- Node.js & npm installed
- Clone the repo
git clone https://github.com/GowthamGoush/EasterEggs.git
- Install NPM packages
npm install
- Start the local server
npm start
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request