pvwradtke 2013-05-01 01:19
Couldn't get it to run on Linux. Got a black screen. Maybe the code can't find the resources?
Foon → Ludum Dare Explorer → LD26 → Project Status: Abandoned
By crazynate
| Category | Rank | Score | Count | |
|---|---|---|---|---|
| Graphics | 341 | 2.94 | ||
| Theme | 352 | 3.07 | ||
| Innovation | 551 | 1.60 | ||
| Overall | 553 | 2.00 | ||
| Fun | 553 | 1.73 | ||
| Coolness | 1800 | 24 |
Couldn't get it to run on Linux. Got a black screen. Maybe the code can't find the resources?
Not able to run on windows 7 as well. Too bad :(.
@pvwradtke: Linux has a case sensitive file system right? I bet he's using a different case to load the resources than what the files are actually named. Maybe you could try running it from a FAT32 partition? (Like a thumb drive?)
Ran fine for me on windows 7 x64 -- but it ran way too fast -- are you not timing your logic loop? And you can also jump forever (just hold down the up key) -- or maybe that's intentional (flying robots?), can't really tell since the animation happens way too fast on my machine.
Works ok for me! Boy is that gravity strong! :)
You should make your own kind of music, but my advice on platformer physics: keep (x, y) coordinates and (dx, dy) velocity. Every frame update dy += 0.5 or something to simulate gravity. Left and right arrow keys just add or subtract from dx, staying within some max velocity limits. Jumping just sets dy += 10 (or whatever) if on the ground.
Just opens a black window with openjdk7 on linux. I like the screenshot though.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.IllegalArgumentException: input == null!
at javax.imageio.ImageIO.read(ImageIO.java:1388)
at com.crazynatestudios.project.AbandonedGame.<init>(AbandonedGame.java:45)
at com.crazynatestudios.project.AbandonedApp.main(AbandonedApp.java:61)
... 5 more
@pvwradtke and @stqn: Are you running the jar file in the same directory that the data and graphics folders are in? The resources it's trying to load are in those folders.
@BrainSlugs83 When I attempted to add any timing it ran too slow on my computer to test and I'm still trying to learn how to properly configure that. And I ran out of time to implement an actual jumping condition since I was too busy trying to fix collision so the up key really just changes the y velocity for collision testing purposes.
@Tom 7 setting up velocity was actually one of the few things that I did that worked, though since I didn't get jumping fixed I hadn't set a max velocity for the y direction yet since I didn't know how I should tune it.
If it would make it easier for everyone to test, should I/would it be acceptable for me to upload an updated version where you can adjust a thread sleep value so it doesn't run too fast?
It ran fine for me on Windows 8. There wasn't much to it unfortunately, but I liked the graphics style. I hope you keep with it and create the game you wrote about (it sounds pretty interesting).
@CrazyNate: yes, running java -jar LD26.jar from its directory, where graphics and data are located. I just tried again and same error.