Description
Tombstone Tussle is a JavaFX maze game where players freely explore the graveyard and customize their own role and map. Drawing inspiration from Halloween, the project flips the usual horror script: zombies take centre stage and human policemen are the threat. As the undead, you dodge police bullets, use power-ups, and approach each officer until every one of them is eliminated and the graveyard belongs to you.
Main visual components
Graphical character creation lets players paint and save their zombie before entering the maze. An automatic graphical maze creator initialises a 2D array of colour-coded cells and draws the labyrinth, with a dedicated GameAreaView window hosting maze, characters, and game elements. Interaction widgets, drag-and-drop, and a toggleable guidance overlay tie the whole surface together.
Interactions implemented
Four core interaction layers tie the game loop together — movement, feedback, enemies, and the elimination rules that decide who survives the night.
- 01Character Movement
Players navigate their characters using W, A, S, D keys. Characters move within the maze based on user input.
- 02Feedback on Character State
Real-time feedback on character status by updating the player's position within the maze, handling character elimination, and displaying the number of lives (represented by heart icons). These feedback mechanisms convey character status and the progression of the game.
- 03Enemy Interaction
The code accommodates enemy movement, collisions, and elimination, enabling interactions between the player character and enemies.
- 04Elimination Rules
Defined rules governing character and enemy elimination, ensuring that characters have a certain number of lives and can eat or eliminate enemies when in proximity.