I used AI for readme file only
I used AI for readme file only
I built a Jungle Survival Game using JavaScript where players make choices to survive in a jungle. The game uses prompt and alert for interaction, and each decision affects the player’s health and score.
The hardest part was handling multiple conditions and random events, but I solved it using if-else logic and Math.random(). I’m proud that the game has different paths and outcomes, making it fun and unpredictable. It also helped me understand core JavaScript concepts like functions, conditions, and basic game logic.
Today I worked on building my Jungle Survival Game using JavaScript. I implemented user interaction using prompt and alert to create a text-based adventure. I added different choices like searching for food, exploring, and resting, which affect the player’s health and score.
I also used Math.random() to introduce random events, making the game more interesting and unpredictable. Additionally, I worked on game logic like win/lose conditions and replay functionality.
Overall, I improved my understanding of functions, conditionals, and basic game logic in JavaScript.
Log in to leave a comment