Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Farmer John and the Birds 4K  (Read 4415 times)
0 Members and 1 Guest are viewing this topic.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Posted 2012-11-26 18:40:20 »

Hey all, this is an updated version of my entry to the Java4K contest: Farmer John and the Birds!


Farmer John wakes up to find a swarm of nasty birds coming to eat all his precious corn. Help him kill them all before it’s too late!

Instructions:

Click anywhere on the screen to fire John’s gun at that location. The birds will try to avoid you, so you will have to move quickly. Each level brings more and faster birds.

There’s different bird types that require slightly different approaches to kill. Sometimes the birds drop an egg. Shoot the purple eggs to get 10% reduction in reload time, shoot the yellow eggs to get extra ammo slots.

Here's an embedded applet; compressed using pack200 its just under 4k:
[applet archive=farmerjohn4k.jar class=F width=800 height=600]

You can also play it on the Java4K site or my site.

Offline Gjallar

JGO Coder


Medals: 13
Projects: 1


Follower of Nurgle


« Reply #1 - Posted 2012-11-27 02:07:10 »

Oh my god, those cute birds  Sad

I .... I can't play this
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #2 - Posted 2012-11-27 07:47:31 »

Oh my god, those cute birds  Sad

I .... I can't play this

Oh come on, just shoot them. They're nasty little pests!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline masteryoom

JGO Coder


Medals: 5
Projects: 2


If you look closely, you might see it turning...


« Reply #3 - Posted 2012-11-27 09:52:27 »

It's really good.

Smiley
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #4 - Posted 2012-11-28 00:06:33 »

It's really good.
No wonder you're number one effective pithiest... Grin
Offline Apo
« Reply #5 - Posted 2012-12-03 10:53:53 »

Simple but very polished game.

Nice work.
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #6 - Posted 2012-12-03 12:37:58 »

Good job.

Found 1 bug. Your max shot count is not reset when a new game begins.

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #7 - Posted 2012-12-03 12:46:41 »

Good job.

Found 1 bug. Your max shot count is not reset when a new game begins.

Ow thanks, I can fix that.

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #8 - Posted 2012-12-13 19:37:16 »

I fixed the bug, and managed to squeeze out a few more bytes with an improved compression chain (read about that in my blog if you like).

It's got some extra graphics, slightly tuned gameplay and some more minor improvements.

Offline Rorkien
« Reply #9 - Posted 2012-12-13 20:54:23 »

How am i supposed to shoot them if they are hiding in behind the top border?  Huh

Also why the score resets every level?  Huh
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ultroman

JGO Knight


Medals: 25
Projects: 1


Snappin' at snizzes since '83


« Reply #10 - Posted 2012-12-13 21:32:01 »

What's with the eggs? I can shoot them, but I don't seem to get points for them.

- Jonas
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #11 - Posted 2012-12-14 07:43:57 »

What's with the eggs? I can shoot them, but I don't seem to get points for them.

They give a bonus to your gun, I quote the instructions: "Sometimes the birds drop an egg. Shoot the purple eggs to get 10% reduction in reload time, shoot the yellow eggs to get extra ammo slots."

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #12 - Posted 2012-12-14 07:46:06 »

How am i supposed to shoot them if they are hiding in behind the top border?  Huh

Also why the score resets every level?  Huh

Well, the birds fly away from the cursor, so that may be why they hide above the top border. I'll see whether I can make it less so.

Also, it seem that the score reset is a bug, sorry about that! I'll fix it right away.

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #13 - Posted 2012-12-14 07:57:28 »

Okay, the bug where the score reset after each level is fixed and the new jar online!

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #14 - Posted 2012-12-16 10:16:16 »

Oh my god, those cute birds  Sad

I .... I can't play this

I made them just a little less cute  Grin (they no longer look scared when you point your gun at them)

Offline gouessej
« Reply #15 - Posted 2012-12-16 11:18:10 »

Hi

I got some slowdown the very first time but it worked flawlessly after that. I use Icedtea-web + OpenJDK  Grin (who said applets don't work with them?).

How am i supposed to shoot them if they are hiding in behind the top border?  Huh
I find it annoying too.

Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #16 - Posted 2012-12-31 15:22:25 »

Great stuff.  This just oozes style. 

Time flies like a bird. Fruit flies like a banana.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #17 - Posted 2013-01-22 13:33:34 »

I've just made a wrapper for my Java4K games and compiled it using Excelsior JET, so that people can download and play my 4K games without internet connection, and without the need to have Java installed. Of course, that means the size has increased by a bit Grin

Download the collection here if you like.

Offline StephR

Senior Member


Medals: 9



« Reply #18 - Posted 2013-01-28 19:31:20 »

Your take on the so annoying a***y birds is original and really welcome ! One of the best design I have seen in a java 4K game. And I like the gameplay too. Simple and efficient.

A small problem with my last game session : on level 21, the game suddenly froze, then a white screen appeared.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #19 - Posted 2013-01-28 19:40:59 »

Your take on the so annoying a***y birds is original and really welcome ! One of the best design I have seen in a java 4K game. And I like the gameplay too. Simple and efficient.

A small problem with my last game session : on level 21, the game suddenly froze, then a white screen appeared.

Thanks a lot :-) Hmm, the freeze is weird, I can't think of why that would happen. I guess some kind of exception. I'll see if I can find out how that happens.

Offline StephR

Senior Member


Medals: 9



« Reply #20 - Posted 2013-01-28 20:46:26 »

I couldn't access to the java console anymore since I upgraded my system to Java 7 ( yes, call me an amateur programmer ). What you wrote about some exception crashing your game lead me to solve my console problem - I just had to enable it through the system configuration panel.

Then I started to play Farmer John and the Birds 4K again. I reached level 22 this time when the game froze, in the middle of this level. The white screen appeared when I scrolled the page containing the applet. Then I opened the java console - a black screen appeared on it ! I waited for a while. The java console came back to normal, but no exception was indicated.

My Windows 7 system is running Java 7 Update 9, 32 bits version. I played your game under Internet Explorer 9. Later this week, I will try it again with Chrome.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #21 - Posted 2013-01-28 20:49:39 »

I reached level 22 this time when the game froze, in the middle of this level.

Great, thanks for testing. It's a weird bug, especially since it comes in so late. It must be something I my code, I could not yet reproduce it (I've "cheated" a few times to level 21, but no problem so far).

Offline StephR

Senior Member


Medals: 9



« Reply #22 - Posted 2013-01-28 22:20:06 »

I tried once the wrapper version, and experimented no problem at all beside very short lags ( never more than half a second ) when many birds were on screen. I lost on level 25.

Then I tried the java4K version with Chrome. The freezing bug happened again on level 22. I took a screenshot of the frozen game :



However, I was not able to take one with the Java console and its blackened screen on the foreground.

Also, I noticed a strange and short lag that happens on the very first shot of every first game session, even in the wrapper version.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #23 - Posted 2013-01-29 20:39:13 »

Wow, thank you for taking the time to do this testing. I've found the cause of the mysterious delay at the first shot: the sound system. I've fixed that one (not deployed yet). I'll try to reproduce the freeze with Chrome & normal applet soon, but currently I'm a bit busy at work. Thanks again.

Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #24 - Posted 2013-01-31 17:37:12 »

Another update (new jars already uploaded):
- fixed bug: short delays at the first shot
- improved the sounds
- tuned the difficulty: it should be harder to get to higher levels now
- some minor bug fixes

I could not find the cause of the crashes you encountered StephR (I cannot reproduce it on my system), but I've cheated a little:  difficulty is up now, so it should be much harder to get to that level.  Grin

Offline StephR

Senior Member


Medals: 9



« Reply #25 - Posted 2013-01-31 20:44:50 »

I confirm the game is much harder now, and I'm ok with that. I went as far as level 13, and I believe I will never be able to go beyond level 14 or 15. And maybe even less far as I noticed another change into the game : now the gun loader is not reset at the start of each new level. If it was some unvoluntary change, when you fix it, the game will be even harder.

And sorry for warning you so lately about these problems. I lacked time to test games on the first half of the contest.
Offline Grunnt

JGO Wizard


Medals: 66
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #26 - Posted 2013-02-01 10:14:00 »

And sorry for warning you so lately about these problems. I lacked time to test games on the first half of the contest.

Are you kidding me? Haha, finding someone willing to test a game like this is a rare gem, so no way you're allowed to say "sorry". Grin

Now the gun loader is not reset at the start of each new level. If it was some unvoluntary change, when you fix it, the game will be even harder.

You're right, I kind of forgot to mention that. The reset at the start of each level was unintentional, I'd like bonuses (e.g. increased ammo and faster reloading) to carry over to next levels. This should compensate a bit for the increased difficulty.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (13 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (31 views)
2014-08-16 06:45:27

Tekkerue (31 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!