Skip to content

As part of my University module project, I have been tasked to develop a game, which involves building a functional 2D Game using the City Engine Physics library

Notifications You must be signed in to change notification settings

deffonotfari/2DGameProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game

As part of my University module project, I have been tasked to develop a game, which involves building a functional 2D Game using the City Engine Physics library.

I have recreated a simpler version of the 3DS Mario Kart, which has similar functions of collecting items, defeating enemies and reaching an end-goal in order to win the game.

Character Design

I have found this sprite design on Pinterest. The reason why I have decided to use it is because it matches the late night city aesthetic of my game. The purpose of the game is to enable the user to have a relaxed playing session, whilst also enjoying defeating the enemies and collecting objects. This game has a competitive edge, hwoever it is against ourselves, rather than others. This is because the high score only records the individual user's information.

normalPosition

Levels

Level 1:


Screenshot 2024-05-07 at 03 09 38

Level 2:


Screenshot 2024-05-07 at 03 11 08

Level 3:


Screenshot 2024-05-07 at 03 11 51

Level 4:


Screenshot 2024-05-07 at 03 12 05

Features

These are the following features of my game:

  • There are multiple levels, which are subclasses of a common class
  • Implementation of GUI to enable level navigation
    • A pop-up screen containing the game's instruction
    • Pause and resume feature
    • Mute and unmute feature
    • Allow user to adjust background track's volume
    • Enable user to quit game
  • Enable player to collect various different forms of collectibles (i.e. Coins, Cookies, Teleportation Power Up)
  • Sound effects and background tracks are implemented
  • Implementation of collision events - reaction for when the player collides with another object in the game
  • High score pop-up: the user's score is shown, along side with the top 3 highest scores
  • Player statistics are displayed
    • Remaining lives
    • How many coins have been collected
    • How many good cookies have been collected
    • Current score
    • How many tickets have been awareded to the player for defeating enemies
  • I have implemented multiple timers with different functionalities
    • I have included a timer for when the player dies, so when all of the lives of the player has been lost, the explosion occurs after a set period of time.
    • Change to dark figure's behaviour after 3 shots
    • Good cookie or bad cookie is spawned periodically until the max limit for that level is reached
    • Cannon explosions - the image changes from cannon to explosion after it collides with something after a set period of time
    • There's a period of time between when the game ends and when the high score pop-up is displayed
  • High score system
    • current score is displayed
    • Top 3 scores of all time is displayed
    • Enable user to exit game or restart from level 1
  • I have implemneted enemies within my game, that the player has to defeat
    • Included:
      • patrolling enemy (i.e. the ghost)
      • an enemy that follows the main player ( i.e. the dark figure)
      • an enemy that shoots (i.e. the tank)
  • The player can shoot a projectile in both direction.
  • The cannon, which is shot by the tank, is an example of the Implementation of an anti-gravitational projectile

Color Reference

These are the colours which I have used within the game

Color Hex
Black #00000 #00000
Russian Violet #35234d #35234d
Purpureus #904eac #904eac
Space Cadet #161c37 #161c37
Tropical Indigo #8a8ad1 #8a8ad1
Sandy Brown #f2a65e #f2a65e

Acknowledgements

Feedback

If you have any feedback, please reach out to me at alamfariha560@gmail.com

Authors

About

As part of my University module project, I have been tasked to develop a game, which involves building a functional 2D Game using the City Engine Physics library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages