WASD or Arrow keys for changing direction. SPACE to use an ability (once unlocked) P to Pause. *Recommendation*: Go through the in-game tutorial before starting your first game. Instructions: Welcome to Infection, a thrilling 2D top-down arcade game. In this grid-based game, you play as a virus cell tasked with infecting cells to generate points and climb the global leaderboard. Here's all you need to know to jump in and start playing: The game features four types of cells: the player-controlled virus cell, uninfected cells (blue), infected cells (green), and hunter cells (red). Uninfected and infected cells have random movement, while hunter cells actively pursue the player. To score points, infect blue cells by landing on the same square, turning them green. Infected cells passively generate points over time and gain immunity, meaning they can't be converted into hunter cells. Hunter cells, however, can turn uninfected cells into more hunter cells. All cells, except the player, die after about a minute and are removed from the grid. Danger tiles spawn every 30 seconds, killing any cells that land on them. Cells will try to avoid these tiles. The player loses the game by landing on the same tile as a hunter cell, touching the edge of the grid, or landing on a danger tile. As you accumulate points, you'll unlock random abilities for every 100 points milestone. These abilities include laser, blast, or slow-mo. Press the spacebar to activate your current ability. The laser shoots a beam in the direction the virus is facing, killing any cells it touches. The blast kills cells adjacent to the player, while slow-mo slows down time for 5 seconds. The game runs on a constant movement system with game updates/ticks every 0.2 seconds. Cells must move to an adjacent square during these updates, and the player can control the direction their virus moves (up, down, left, or right). As the game progresses, the difficulty increases with faster game speed, more danger tiles, higher spawn rates for hunter and uninfected cells, and more. Remember, you have three pauses in the game. Press 'P' to pause and unpause. Some tips for success: Deny hunter cells the ability to multiply by infecting uninfected cells first. Lure hunter cells away from uninfected cells when you can't safely reach them. Use danger tiles as barriers to keep hunter cells at bay. Use abilities wisely, as they don't stack and can only be activated after reaching the next points milestone. Good luck, and have fun infecting your way to the top of the leaderboard!
Changelog: 22/03/23: * Major change to collision detection between hunters and the player. Much more accurate and fair system. 20/03/23: * Danger tiles vanish quicker after game over. * Blast radius increased by 1 tile. 19/03/23: - Fixed cloud variables, leaderboard now working - Adjusted start conditions to make the game progress faster at the beginning. - Hopefully fixed a bug that caused two music tracks to play at the same time. This game has been a work in progress for 5 years! Of course, I haven't worked on it all that time, but my inspiration for this type of game arose in 2018, when I created a game called 'Transmission'. That game is still on my Scratch profile today. However, that game was a bit rough around the edges and I hadn't properly fleshed out the gameplay. So in 2022, upon revisiting Scratch out of nostalgia, I decided to give the idea another go. Development progressed to about 90% completion in 2 weeks, but school exams led me to put the project on hold for 6 months. Now, in 2023, I returned to finally finish it. The high score leaderboard was added, most of the bugs have been patched (hopefully), a tutorial was created, values were tweaked and the AI pathfinding was improved. I am so happy to finally present this completed project. This arcade game is a completely original and unique idea as far as I know (at least, I don't know of any games with similar gameplay). Lastly, I would like to give credit to @RokCoder who provided a great tutorial on how to create a cloud leaderboard. Note: All artwork is either my own or sourced from stock images, copyright free. All music should be copyright free as well.