I few months ago, I decided I’d try my hand at LWJGL. I started with a 3D game, and quickly found that I was in far over my head. Shortly after my failed attempt at a game, I decided to create a port of Terraria called MineFlat. It’s not even close to a playable game yet, but I’d just like to get a bit of feedback on what I’ve done so far. I’ve created a terrain generator, a basic player physics system, and a lighting system (most of these systems are completely broken on the negative side of the x-axis; this is the reason for the wooden wall at x=1). Like I said, it’s not much, but I’d just like to know what I should improve.
Link to the launcher is here, link to the game’s Jenkins task is here, and link to the game’s source is here.
Can we get a screenshot before we start clicking links
Kev
Sorry, I was actually just trying to figure out how to upload one when you posted that. (Can you tell I’m new to the site?)
Is it me or is that website really slow? I’ve been timing out on it for a good couple of minutes now getting 503’d in the end.
Hiho,
when i fall off the map and hit the bottom pressing the ‘space’-Key will just close the game
There is also a graphical glitch in the middle (horizontal line) of the screen.
So far so good i guess
Ok, so a screen shows up:
and when I press play it supposedly downloads LWJGL and Slick but afterwards it just closes and nothing happens.
Opening the launcher again and pressing play simply closes the game. ;V
Got no errors, simply game closes - have java 1.7.0_25
I had that issue a bit ago, and someone on SO told me to get 7u17. I did, but it still worked after switching back to 7u25. I’ve found that it only does this when you open the launcher through Windows Explorer (or the OSX/Linux equivalent), and it starts fine when the launcher is opened via command or shortcut.
I’m running my site on a computer in my basement, so it tends to be a bit unresponsive at times. Jenkins uses a reverse proxy, and so that can sometimes cause it to hang. If it doesn’t load, try amigocraft.net:8080.
Then it sounds like it has the wrong working directory when not launched from the command line, and cannot find the executable or something.
Ehm… I’m not quite sure what you mean by that. The funny thing is, only the last couple of builds have caused the launcher to do this. If you drop an earlier build into the data folder, it works absolutely fine.
Yeah it confuses me that it would work in the command line if it is just run with java -jar .jar. (=name of JAR). It sounds like the shortcut has the right working directory but not the actual launcher JAR. Do you have the launcher code on BitBucket as well? I can take a look into that. Also, can you please not use “user.dir” for the directory next to the JAR? Use this instead (I believe HeroesGraveDev came up with this):
new File(Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()).getParent()
Then I can try out your game. Putting non-hidden stuff in my home directory is not allowed. ;D
Alright, I just pushed a new commit adding that code, so Jenkins should be building it right about now. As for the launcher code, you basically just need to add “-launcher” to the end of the game’s repo.
Eh… I downloaded the launcher and started it, but I get a un-resizable window, which looks like this:
Still, I’m interested in this project
Well, um, that’s certainly new. Would I be correct in assuming from the screenshot that you’re running Linux? If so, try downloading the second-newest build. The latest one includes an untested (I’ve only got a PC :P) change involving only Linux.
Yep, I’m on Archlinux here.
But I get that problem with the launcher, not with the game itself :clue:
The latest build of the launcher, not the game, includes the change for Linux. Just grab a different build and it should work.