Reader small image

You're reading from  Learning Java by Building Android Games - Third Edition

Product typeBook
Published inMar 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781800565869
Edition3rd Edition
Languages
Right arrow
Author (1)
John Horton
John Horton
author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton

Right arrow

Planning the project

The Bullet Hell game is simple yet frantic to play. The game starts with Bob on the screen with a single bullet bouncing around the walls (the edge of the screen):

Figure 12.1 – Character in the Bullet Hell game

The aim of the game is to survive as long as possible, and the game will have a timer so the player knows how well they are doing:

Figure 12.2 – Seconds survived in the game

If Bob is about to get hit, the player can tap anywhere on the screen and Bob will instantly teleport to that location. However, each time Bob teleports, another bullet is spawned making the likelihood of collision and Bob needing to teleport again (and yet another bullet spawning) greater:

Figure 12.3 – Teleporting Bob

Clearly, this is a game that can only end badly for Bob. The game will also record the player's best performance (the longest survival time) for the duration of the play...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Java by Building Android Games - Third Edition
Published in: Mar 2021Publisher: PacktISBN-13: 9781800565869

Author (1)

author image
John Horton

John Horton is a programming and gaming enthusiast based in the UK. He has a passion for writing apps, games, books, and blog articles. He is the founder of Game Code School.
Read more about John Horton