P0jahns Game Engine 1.0 + Map Pack #1

http://s24.postimg.org/dtbv1eqol/title.png

Forewords:
Pojahn’s Game Engine is an open source API developed by Pojahn Moradi which allows you to create Super Meat Boy-style maps without much hassle.
This release contains P0jahns Game Engine 1.0 and Map Pack #1 which includes seven stages.

Usage:
Open P0jahns Game Engine.jar to launch the game. If you dont want to use the default controller, create a new one.
When you are satisfied with your controller, press Load Stage.
Select one of the jar files located in the stage directory and hit Ok. Now comes another window which is completely optional.
This is if you want to to view a replay rather than playing the stage.

The Default Controller:
Left: Left Arrow
Right: Right Arrow
Down(unused): Down Arrow
Up(jump): Space
Pause: Esc
Suicide: Q
Special1: Non-Num 1
Special2: Non-Num 2
Special3: Non-Num 3

Future:
The next release by me will be another map pack; Map Pack #2.

Later, a new version of P0jahns Game Engine will be released allowing you to play multiplayer(offline) as well as full documentation and usage of the engine.

Furthermore, if this engine gets popular, online play will be implemented.

Finally, if we get people complaining about not being able to create maps due to lack of java knowledge, some sort of XML parser may be engendered.

Media:

Download:

SOOO Excited to try! Pics have me sold!

But…

Exception in thread "main" java.lang.UnsupportedClassVersionError: ui/MainClass : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: ui.MainClass. Program will exit.

I run linux, and this usually happens to some jars. I don’t know what it is, but this is just so you know.

It means your java version is incompatible with his jar. Do you have the latest version (Java 7)?

Yeah, I think your java is outdated. If it was the native files that was the problems(that the only differences between the rar files), it would crash when loading a stage instead of main class.

Weird that other jars would run… They were J7 as well. But alas, Ill reinstall J7.

You could also try these two files:
http://www.speedyshare.com/FNBbe/Linux-Test.rar

For more info: StackOverflow question.

Also, P0jahn, what version did you compile for?

Nope. I just reinstalled it, checked, and found that 51 corresponds to J7 (which I got and reinstalled), and it still did not work. What do I do?

[quote=“BurntPizza,post:7,topic:43551”]
I dont now :confused: I edited Pojahns Game Engine.jar for Windows by replacing all the windows related DLL files with the Linux’s .SO files.
My class files are compiled on my pc for my os(windows). But afaik, it does not matter what the class files are compiled to(or if such thing even exists), its the jvm that matters. Have I missed something?

Just use mediafire. I do not want to use their installer and get trolled with ads.

You dont need an installer. Check the link at the top, its a direct link :slight_smile:

http://www.speedyshare.com/FNBbe/download/Linux-Test.rar

[quote=“P0jahn,post:9,topic:43551”]

Cross-version compiling
Google for more.

How are you installing Java anyway? If you are using Linux, then generally, you’ll have to set the new version as default before it’ll actually use it.

update-alternatives --config java

Wow. It worked. But there are no loads for me to go to!

Exactly what worked? And what do you mean by “loads”?

sorry, Stages. I downloaded your map pack, and it did not work. Apparently, rars don’t work. But I just cannot get rars to work, so no opening it…

You can’t open a rar?
http://www.rarlab.com/download.htm :slight_smile:

To avoid downloading winrar, I have updated the links so that they are now zip files.

@wesley.laferriere

If you are on ubuntu, you can install RAR addin for Archiver.


sudo apt-get install unrar

It requires you to setup the [icode]ubuntu multiverse[/icode] repository which is probably added already.

You can use OpenJDK 1.7. I think OpenJDK 1.6 is still used by default under some distros (Ubuntu 12.04?) but not mine (Mageia Linux 2).