Hill-Climbing remake using Processing & BOX2D
The following project is written in Processing which was built around JAVA. The game isn't fully complete but can still be played.
- 2 maps
- 2 cars
- Upgradable parts
- Coin system
- Fuel System
- Resizable Window
- Soundtrack Credits @ THREESIXTY
- 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.
- This can be done by drawing and creating a chainshape size that is only the size of the viewing window
- Check the distance between the car and the position of the last element in the chainshape
- If it is below a certain threshold then expand the ground array list and add a grouping of new vector points to the end
- Use perlin offset noise to randomize their position
- Expand the array containing the vertices with BOX2D coordinates
- Recreate the BOX2D body and attach the fixture
- 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
