Day 04: Gamedev.js Jam 2022
Today I started working on apples. They should be created on the scene endlessly and they should be deleted after a certain amount of time.
To create apples, a timer should be used. I added a condition to reset a timer every 3 seconds and an action to create an apple at a random position. Then I previewed the game. The apples filled the screen in seconds!! 😂 The problem was I didn't restart the timer after creating an apple.
Today I couldn't figure out the way to delete the apples the way I want.
Comments
Post a Comment