Detailed explanation of this code can be found in the lecture video (will be added after class).
You can run the program on GitHub pages.
To work with this code, you will first need to install Node.js and Visual Studio Code.
- Importing assets
- Working with 2D vectors
- Combining parent and child transformations
- 2D animation
- Simulating gravity
You will need to set up the initial project by pulling the dependencies from the node package manager with:
npm install
After that, you can compile and run a server with:
npm run start
Webpack should launch your program in a web browser automatically. If not, you can run it by pointing your browser at http://localhost:8080
.
The graphic asset was from Platformer Pack Redux by Kenney.
Material for CSCI 4611 Spring 2022 by Evan Suma Rosenberg is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.