Skip to content

Raziz1/Hill-Climbing_Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hill-Climbing_Processing πŸŒ„πŸš—πŸ’°β›½

Hill-Climbing remake using Processing & BOX2D

Libraries πŸ“š

Overview

The following project is written in Processing which was built around JAVA. The game isn't fully complete but can still be played.

Features

  • 2 maps
  • 2 cars
  • Upgradable parts
  • Coin system
  • Fuel System
  • Resizable Window
  • Soundtrack Credits @ THREESIXTY

Other Notes πŸ“

  • The terrain is generated using a Box2D chainshape and perlin noise. It isn't truly infinite because I didn't implement the dynamic construction of the chainshape. This resulted in not ideal performance on my machine.
    1. This can be done by drawing and creating a chainshape size that is only the size of the viewing window
    2. Check the distance between the car and the position of the last element in the chainshape
    3. If it is below a certain threshold then expand the ground array list and add a grouping of new vector points to the end
    4. Use perlin offset noise to randomize their position
    5. Expand the array containing the vertices with BOX2D coordinates
    6. Recreate the BOX2D body and attach the fixture
    7. To improve performance we can draw only the ground that is visible in the viewing window
  • The car is attached to the wheels using a wheel joint (Made of a revolute joint, and distance joint)
  • Was converted to an Android Project and can run on an android device (Not Included)
  • Contains an exported application file
  • Does not contain the ability to save progress when the program is exited
  • (.pde) files are to be opened in the Processing application
  • In the Processing application click on File > Export Application to export the project
    • Make sure you have the latest version of JAVA on your computer

About

Hill-Climbing remake using Processing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published