Throw Bottles at people you don't like! by Jajo
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.
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 |
-Neith
I'm drunk
Nice game with simple graphics and gameplay, no real challenge though, as the enemies AI doesn't help them at all.
Nice work!
Fun game. Anyone who makes a game in java is impressive in my book.
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.