Hill Climb Racing In Java OPEN SOURCE!?!

Hey guys. So I am just looking for an open source game with the same concept as Hill Climb Racing. The reason I want it it so I can mess with it and play with it for fun. I want it to be for computer - not android. If anyone knows of something like this, PLEASE save me the trouble of coding one. I have no clue how the physics would be done AND since I only want to play with it, I don’t really want to create it from scratch.

whats the fun of using someone else’s creation when you can learn some new stuff and create something awesome for you?!

well if i have to create my own i wont be able to play with it tonight. and it wont be as good.

i find playing my own games much more fun then other peoples even if it takes extra effort, its much worth it

i dont know where i would start or how to start … i mean i wouldnt mine not having nice graphics … i just want to be able to have something like HCR that i can customize…

Start and go where your imagination brings you :slight_smile:

but the only reason im even asking is because i just wanna play with it now for fun… not make my own… idk.

Looks like you want something extremely high level. Go with game maker or something ::slight_smile:

no… i mean i want to be able to edit the code that already exists… just changing the way it works

If you want to develop games it’s more than editing other people’s code. There’s a word for using other peoples’ work as your own, it’s called plagiarism. Like I said, if you just want to edit stuff, either go to a high-level game “making” tool or go mod minecraft or something.

well modding that game is basically what i want to do then! i only want to play with it myself for fun not claim it as my own. i do mod minecraft but thats totally different. all i was askin for is the ability to mod HCR for fun. not claim it as my own

Well I was about to write an Hill Climb Racing clone someday, but I kind of lost the fun in doing that…

Here is what I had:
http://dl.dropbox.com/u/45530199/Games/HillClimbRacing/HillClimb.zip

It was in a testing-phase and 99.9% of the important code was inside GameWidget.java, which is pretty, pretty ugly…

Anyways, it’s possible to drive a monster truck around and jump around in the game world… I think it should give you an idea about what tools you should use and stuff like that…

HCR used Cocos2D as the underlying engine. I used LibGDX + Box2D (My first LibGDX project, so beware…)

how dafuq do you get that to run? i got rid of errors but i get this when trying to run it:


Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWT
	at com.badlogic.gwtref.client.ReflectionCache.<clinit>(ReflectionCache.java:24)
	at com.badlogic.gdx.utils.Array.<init>(Array.java:63)
	at com.badlogic.gdx.backends.openal.OpenALAudio.<init>(OpenALAudio.java:51)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:80)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64)
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:56)
	at org.matheusdev.hillclimb.MainLoop.main(MainLoop.java:39)
Caused by: java.lang.ClassNotFoundException: com.google.gwt.core.client.GWT
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more

What are you even trying to do with GWT?

So many errors there:

You need to install LibGDX (back then I used version 0.9.7) and download the Physics body editor runtime (see “Download” and click on the code.google.com link and include the loaders…)

edit: lol i had referenced the gwt jar. derp. sorry

edit2: this is fun to play lol thank you!

You’re welcome :slight_smile:

I’m a little late to this discussion, but I do run a little website that has user-submitted open-source Java (and Processing) games available to play and download. I’m not sure if we have exactly what you’re going for, but if you want to poke around some open source games, it might be worth checking out: http://StaticVoidGames.com

I think he didn’t want to claim that he did it by himself, there is no plagiarism. I started my own project in October 2006 by editing Vincent Stahl’s source code and now TUER contains 0 line of code from his game.