Skip to content

baotan1909/car-avoidance-full-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Avoidance

COS20007 – Object Oriented Programming

An Upgrade from Custom Program – Swinburne Vietnam (Sep 2023)

Car Avoidance gameplay screen

Overview

In this project, I attempt to make a complete game for the first time. It is a simple car game, which is developed from my school project! :D
You can click here to see the first version of it in Ruby programming language (it was really a mess).

Project Files Description

  • GameObject: the parent class of all the game objects (abstract class).
  • Player, Line, Obstacle, Coin: the implementation for the specific game objects.
  • LineManager, ObstacleManager, CoinManager: the code responsible for managing generation and movement of game objects automatically (except Player).
  • GameScreen: the parent class of all the game screens (abstract class).
  • IngameScreen: the parent class of Pause and GameOver screen.
  • GameOver, Instruction, Pause, Settings, Shop, Start: the implementation for the specific game screen.
  • ISkill: the interface of skills.
  • Skill: the common implementation for the skills (duration, cooldown, draw).
  • /configuration/GameConfiguration: The file contains game’s properties (Speed and Collision).
  • /skill/SkillArgument: The argument for skills (i.e. Speed for Time stop and Slowdown).
  • S_Invicible, S_Slowdown, S_Timestop: the specific implementation for each skill’s ability.
  • SkillManager: the logic to use, save and load the skills (this one exists because my architecture was bad).
  • ScoreHandler: manages the scoring system of the game.
  • AudioHandler: manages the audio-related functionality of the game.
  • Game: Where the game loop and loading resource reside.
All the files are .cs.

How to play?

  • Use arrow keys for move
  • Avoid obstacles
  • Collect coins
  • Buy skills (press 1, 2, or 3 to use the according skills).
There is also an instruction in-game.

Dependencies

SplashKit: Click here to see the guide for installing.

Basic Build Instruction

  1. Clone the repository.
  2. Put the directories in /resource to bin/Debug/YOUR-BUILD-FOLDER.
  3. Use Visual Studio to build and run the game.
If you just want to play the game, feel free to check out the link attached in the About to download the exe file.

Credits

  1. Art: Cars by TMD Studios. As asked, also check out their website
  2. Music: Tchaikovsky - The Nutcracker Suite 'March' REMIX by TPRMX

About

The source code for my first game - a simple car game - namely "Car Avoidance".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages