Skip to content

boraakoguz/JavaRacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Racer

A 2D basic racing game that features easy to custimize maps, collision detection, car behaviour physics, different surface types with different behaviours and a point system.

Screen Shots

The start of the game

start

Going off bounds will reduce points

loss

Going off the track will reduce further points

offtrack

Map creation is as simple as a 100x100 png. Using the default rgb values in paint, the color coding is as follows:

  • Green: Grass
  • Black: Asphalt
  • Red: Bounds
  • White: Finish/Start Line
  • Blue: Water
  • Brown: Mud
  • Gray: Indicates the spawn tile and spawn direction. Must be placed next to a white (Finish/Start Line) tile. Will be drawn as asphalt in game. If you want to create your own map, edit the track.png file in source directory with paint and use the default colors otherwise the RGB values should match with the example map.

Example Map (can be found in source):

map

TODO

  • Add car upgrades and car customization

  • Physics overhaul

  • Add Multiplayer (May be another project)