forked from andrea/homework5
2.3 KiB
2.3 KiB
Quetzalcoatl: The Fifth Sun
Author Info
- Name: Chaebean Yang
- Student ID: 20230412
- e-mail: kazed0102@kaist.ac.kr
- GIt Repository: Link
Game Description
This game is based on Snake Game and Aztec mytology. The player controls a serpent which grows longer by collecting sacrificial items. Upon reaching a score of 100, the serpent transforms into the Fifth Sun — completing the mythological cycle and the game ends.
- Goal: Reaching 100 points to become the Fifth Sun
- Lose Condition: Collision with wall or self or run out of lives.
Graphic and Game Screen Sketch
Game Elements and Implementation
- Serpent: Quetzalcoatl-inspired
- Items: heart, obsidian, etc.
Interactions
- Arrow key movement
- Eating items increases snake's body length and score
Tools and Libraries
- p5js
- Adobe Illustrator
- Git
Features from Class to Use
- Arrays to manage snake's body segments and growth
- Conditionals and loops to check for collisions, item collection, and movement
- Custom functions for drawing and update logic
- HTML-JavaScript integration to handle external inputs and update in-game UI elements
Anticipated Challenges
- Designing natural and smooth movement transitions between snake segments
- Creating a coherent and symbolic color palette that reflects Aztec aesthetics
Posible Future Features
- Additional levels
- Animated transformation between game screens
- Game over screen with a graphic of Tepeyóllotl
References
- Snake Game in p5js
- Smith, Michel E. (2011). The Aztec. John Wiley & Sons.
- Camilla Townsend. (2019). Fifth Sun: A New History of the Aztecs. Oxford University Press.
- Davide Domenici. (2009). The Aztecs: History and Treasure of an Ancient Civilization. White Star Promotional.