Throw Bottles at people you don't like! by Jajo

[raw]
made by Jajo for LD32 (JAM)
Well, I made a game. Initially, I wanted to enter the Compo, however I ran out of time. Now, I've had trouble exporting the game. I can't seem to use JarSplice properly. I have, instead, provided the source code. If there are any developers who have experience with Java and Slick2D, I would appreciate it if you could help me export my game. I think it is within the rules to release the actual game late, please correct me if I'm wrong. If not, please do look through the source code, and please point out any inefficient methods I used. I wish all of you the best of luck in the voting :)

Edit: I have made the Jar downloadable, but I am not sure if it will work. If it doesn't work, please alert me.

Edit2: Must have just been my computer that was being silly, the jar works for most other people.

Edit3: It only seems to be working for some people. If anyone can help, please do. If anybody who can use JarSpliced, please download the source and try to export it for themselves. The main class should be dev.jajo.game.Main

Edit4: Removed the Jar download, it really doesn't seem to be working.

Edit5: Fixed everything, thank God for that.

Ratings

Coolness 62% 3
Overall(Jam) 2.50 1007
Audio(Jam) 2.41 592
Fun(Jam) 2.47 896
Graphics(Jam) 2.31 897
Humor(Jam) 2.72 580
Innovation(Jam) 2.09 984
Mood(Jam) 2.32 928
Theme(Jam) 2.66 895

Feedback

Kostyan1996
21. Apr 2015 路 15:30 UTC
Why here is only source?
Shared
21. Apr 2015 路 15:31 UTC
Could we have a non source download lol ?
馃帳 Jajo
21. Apr 2015 路 15:39 UTC
@Kostytan1996 @Shared I had trouble creating a jar due to the libraries I haven't used before. I am hoping that somebody who knows how to use Slick2D and make a Jar using JarSpliced could help me.
mcburrobit
21. Apr 2015 路 15:40 UTC
liked the music, some sprites had weird borders around their bounding boxes
馃帳 Jajo
21. Apr 2015 路 15:48 UTC
@mcburrobit Oh, thank God the jar worked, must have just been my computer.
Manu & Wan
21. Apr 2015 路 15:53 UTC
Can't get it to launch, I have first to fix the Manifest because the Launcher-Main-Class had the wrong package, but then it says the LWJGL library is missing, you have to package the natives (dll/etc. according to the platform) with your game, I haven't used this lib for a while but I think you can just make a ZIP with the Jar + all the natives side by side. I hope this will help.
馃帳 Jajo
21. Apr 2015 路 15:56 UTC
@Manu & Wan thank you. It seems to be working for some and not for others. I will try to do this.
馃帳 Jajo
21. Apr 2015 路 16:03 UTC
@Manu & Wan if possible, could you tell me how you changed the manifest? I think I'm putting the right package in JarSpliced...
samwest
21. Apr 2015 路 16:09 UTC
omar2
dyfer
21. Apr 2015 路 16:55 UTC
isn't getting on :s
馃帳 Jajo
21. Apr 2015 路 17:12 UTC
@dyfer it seems it only works for a few people... This is annoying.
Luke Magitem
21. Apr 2015 路 17:13 UTC
The .jar file doesn't work for me.
DeadFragment
21. Apr 2015 路 17:23 UTC
ah damn, it doesn't seem to run for me either.

-Neith
lochmann-apps
22. Apr 2015 路 15:36 UTC
Could you also upload an executable? Most of the people don't want to build it from your source ;-) Thanks!
chikun Dev Team
23. Apr 2015 路 07:55 UTC
Misread instructions and drank the contents of the bottle.

I'm drunk
馃帳 Jajo
23. Apr 2015 路 17:17 UTC
@lochmann-apps that's my problem, I failed making the fat jar...
馃帳 Jajo
23. Apr 2015 路 17:17 UTC
@chikun Dev Team please, don't hurt me in a drunk rage ;-;
Andrea
25. Apr 2015 路 18:49 UTC
Worked fine for me now that there's an executable .jar.
Nice game with simple graphics and gameplay, no real challenge though, as the enemies AI doesn't help them at all.
Nice work!
Zayron
26. Apr 2015 路 11:48 UTC
Nice job! Glad to see you got this working. I been checking back every few days since you rated my game. :)
馃帳 Jajo
26. Apr 2015 路 13:42 UTC
@Zayron your game was great, good luck in the voting :)
Andrew Quartermain
27. Apr 2015 路 22:42 UTC
I like it. Reminds me of the little side games in Always Sometimes Monsters. The collisions are a bit buggy though.
Catwheel
29. Apr 2015 路 03:48 UTC
High score 125.
Fun game. Anyone who makes a game in java is impressive in my book.
rburema
03. May 2015 路 13:01 UTC
Maybe I'm misinterpreting, but you wanted someone to take a look at the source, even in the event the case that the export is fixed (as it so happens to be)?

First, and most importantly, code-ing for the compo is a whole 'nother beast from say, production code, or even a 'normal' hobby project. A lot (not all, but a lot) of design is actually done so that you (or someone else) can still look at the code say, 6 months from now and do some maintenance, without getting a headache. But that sort of design, while really useful in the long run, slows you down a lot. So when you've got less than 2 days (because art, etc. takes time as well) for coding, don't go for style, or 'beautiful' code, just get something working, and don't try to cringe if you've created something that you'd otherwise think of as inefficient or 'ugly'.
Second, I just skimmed your code ... I didn't really go into much depth, so I probably missed some things I should have seen.
That said (and basically opposed to the whole 'first' point):
- Take a look at the 'switch/case' statement... it can replace those if/else if/else if/else if/... structures (and even if/if/if/... sometimes when cleverly used). [ https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html ]
- Use an Enum class to repressent "up"/"down"/... etc. rather than a String.
- Maybe make bottle inherit from Rectangle, so you don't have to new-up a rect, when asking the object for it's bounds.
- Perhaps don't include GameState as a member of bottle (for proper O.O.)... I mean, yes, it's a reference and takes up no space, but 'GameState' is not really part of a 'Bottle'.
- Related to new-ing up objects: take a look at the 'flyweight' pattern: [ http://en.wikipedia.org/wiki/Flyweight_pattern ]
- Separate the gamestate from everything related to drawing: this is useful to prevent such things as 'having to move each mook a step' each time the player moves.

However, your code was not difficult to read at all, and that's a very good sign :-)
Just keep codeing! Practice (and some reading) makes all the difference.
馃帳 Jajo
03. May 2015 路 16:22 UTC
@rburema Your advice is extremely appreciated and I will certainly use these tips in the future, thanks :)
Hunter X
08. May 2015 路 16:14 UTC
The music is a little repetitive and there were a few issues with the sprite borders, but on the whole this is a fairly solid concept with a lot of potential for further expansion :)
Smirnov48
09. May 2015 路 09:59 UTC
Jar doesn't run :(
馃帳 Jajo
10. May 2015 路 10:48 UTC
@Smirnov48 is it a platform thing? Is the jar in the same folder as the res folder? It seems to work for others...