Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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  
  Balls  (Read 6180 times)
0 Members and 1 Guest are viewing this topic.
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Posted 2006-01-24 11:45:19 »

No I'm not being obscene, it's just the name of the game. Cheesy

Click to Play

Last year I created a few 4K games, and I was thinking that it would be nice to have a small "framework" for doing 4K games. I like the wiki page that Jbanes started up, and thought that it would be great to have a complete template to start with for making 4K games. So I created a game that comes complete with small startup screen w custom font, kbd input, timebased movement, pixel precision collision detection, score display and naturally it's own particle system  Smiley  This game weights in at a hefty.... drumroll.... 1713 bytes.

I am not really into compression techniques and like the 4K compo because it is a great way to crank out games and test ideas without getting too carried away in month long planning of just the menu system and other annoying things  Smiley So I challenge anyone to compress the final jar even further or to create additions to the code to make it even more worthy as a template for the wiki. Hopefully we can get even more ppl to take part in the 4K compo this way.

I used ProGuard, JoGa and BWFlate to create the final jar file.

Game Description:

Get the green balls while avoiding the red balls. Arrow keys to move. It's as simple as that.

webstart
jar
source

I am planing to add more features to the game when I am happy with the code as a good startingpoint for 4K games. I am thinking about real graphics, powerups (faster speed, slow down badies, change sizes, bullets, explode some badies and so on), sound, missiles. More ideas also welcome.

Now this post is larger than the game itself, so I better stop.

Offline hvor2

Junior Devvie




Beyond mind, there is an awareness...


« Reply #1 - Posted 2006-01-24 12:35:55 »

Hey, it is pretty funny in this level, i liked it! Cheesy

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #2 - Posted 2006-01-24 13:34:34 »

I'm currently at some 7500 points due to a tiny little bug (put yourself in the top left corner, press enter, and watch the score increase. Quickly.) Perhaps you should spawn the reddies first Wink

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

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #3 - Posted 2006-01-24 16:20:58 »

I'm currently at some 7500 points due to a tiny little bug (put yourself in the top left corner, press enter, and watch the score increase. Quickly.) Perhaps you should spawn the reddies first Wink
Right you are you cheater  Wink So instead of moving and checking for collision from first to last ball I now do it from last to first. It prevents the cheating and actually reduced the uncompressed class file with one byte  Cheesy I also changed other for loops and did some more or less ugly hacks to reduce size further to 1697 bytes.

Offline Malohkan

Senior Devvie




while (true) System.out.println("WOO!!!!");


« Reply #4 - Posted 2006-01-24 18:43:59 »

Sweet!  My best so far is 18.  I'll keep at it though Wink  I want to be able to go faster though.  I feel too limited at times.  Perhaps you can play with different control schemes to balance better speeds?

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline hvor2

Junior Devvie




Beyond mind, there is an awareness...


« Reply #5 - Posted 2006-01-25 09:36:18 »

Ha! 22! I discovered that when you collect green ball others seem to slow down, that is good - motivates one to collect greens fast.

Offline Anon666

Junior Devvie




aka Abuse/AbU5e/TehJumpingJawa


« Reply #6 - Posted 2006-01-25 13:32:59 »

omg that's not fair!

You get it finally down to the last ball (so you can camp the spawn point to get an infinite score ;P) only for the game to simultaneously spawn 3 balls!

You are eeeeeevil.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #7 - Posted 2006-01-25 15:14:51 »

Good thing you can't cheat anymore. It's a bit unsmooth on desktop computer though, actually worked better on my lappy (although with less speed). I'd like to see particle effects for when you collect them instead of when dying (perhaps both), because the effects are so nice they motivate me to go die instead of collect points. Cheesy

Offline Anon666

Junior Devvie




aka Abuse/AbU5e/TehJumpingJawa


« Reply #8 - Posted 2006-01-26 00:58:07 »

Got to 180, and died... tragically. (on the last ball, spawned very slow, collected it - and immediately died to the newly spawned ball trio >_<)

I think you should get a points bonus for clearing all the balls, at the moment it is better to sit and wait for a 2nd ball to appear before collecting the last ball on screen.
Offline steeg

Junior Newbie





« Reply #9 - Posted 2006-01-28 16:04:19 »

very addictive, good job  Grin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

« JGO Spiffy Duke »


Medals: 218
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #10 - Posted 2006-01-28 17:42:12 »

Its like one level of Super Dudester! Smiley Nice work!

Kev

Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #11 - Posted 2006-01-28 23:24:36 »

Your template class as done its job Wink  I have been inspired to try my hand a 4k entry.

The inital concept version can be found at http://www.geocities.com/budgetanime/rally4k.html

There are two versions: a windowed and fullscreenversion. Currently the fullscreen version makes the game co -over the 4k limit. However i have not yet optimised the code (as seen on the web site)

I am also thinking of chaning the storage of the maps to a much smaller footprint and embedding it in with the class.

Please if anyone has a Mac or uses linux can they please test it out... i.e. are there any graphical glitches or does it run really slow.

Cheers

Java4k RIP 2014
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #12 - Posted 2006-01-29 06:28:31 »

Please if anyone has a Mac or uses linux can they please test it out... i.e. are there any graphical glitches or does it run really slow.

Mac OS 10.4.4  Java 5 (1.5.0_06)
40 fps in windowed mode.

The car had a yellow fringe around it that I wasn't sure about.  Maybe it is a bug I should report to Apple (they've had issues with some image formats and alpha blending before), or if that's just the way it is for everyone.

Should start a new topic for this game.

Offline moogie

JGO Ninja


Medals: 15
Projects: 6
Exp: 10 years


Java games rock!


« Reply #13 - Posted 2006-01-29 06:52:20 »

I have done what was suggested and created a new topic for the game: http://www.java-gaming.org/forums/index.php?topic=12278.0

Java4k RIP 2014
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #14 - Posted 2006-01-30 00:12:55 »

Thanks for the feedback. Have had little time for coding, but got a little break recently. So here are some replies to your comments:

Hey, it is pretty funny in this level, i liked it! Cheesy
Thanks. Have though made some changes after other comments, lemmi know what you think about them.

Sweet!  My best so far is 18.  I'll keep at it though Wink  I want to be able to go faster though.  I feel too limited at times.  Perhaps you can play with different control schemes to balance better speeds?
Yep, you are absolutley right, I have increased player speed a bit. Enough? What other ctrl schemes were you thinking of? You should no doubt beat 18 now.

Ha! 22! I discovered that when you collect green ball others seem to slow down, that is good - motivates one to collect greens fast.
I have now added a bonus system to even more stress you out  Wink collect the green one before bonus time is out (~2 sec) and you get 2 point, after 2 bonus collects in a row you get 3 points and three more give you 4 points per green ball. You'll see the bonus points when you collect (think I am too tired to make sence now, sorry).

omg that's not fair!
You get it finally down to the last ball (so you can camp the spawn point to get an infinite score ;P) only for the game to simultaneously spawn 3 balls!
You are eeeeeevil.
MUUAAAHHHAAAHAAAHHHAAA!  Yes I am! One step ahead of you there Smiley

Good thing you can't cheat anymore. It's a bit unsmooth on desktop computer though, actually worked better on my lappy (although with less speed). I'd like to see particle effects for when you collect them instead of when dying (perhaps both), because the effects are so nice they motivate me to go die instead of collect points. Cheesy
Have to look into the speed thing... Should be same speed on all computers (time based movement).

I recycled the badies and made the particle system of them when game was over, so I used no extra data storage, and very few extra lines in code. But I have extra space, so I have added it for you Smiley. You are right, it is just soo much better with some particles getting the green ones!

Got to 180, and died... tragically. (on the last ball, spawned very slow, collected it - and immediately died to the newly spawned ball trio >_<)
I think you should get a points bonus for clearing all the balls, at the moment it is better to sit and wait for a 2nd ball to appear before collecting the last ball on screen.
180  Shocked That is pretty darn good! Haven't been close to that  Undecided
I changed the minimum speed of balls so that it cant be that slow, so should prevent a ball from "getting stuck" in top left corner. I added bonus points (5) for clearing screen, but I also realized that I had to change the game so that it will be a bit harder for good players and easier for not as brilliant players, so now the balls are spawning faster if there are few balls on the screen and a bit slower if there are many. Hope this makes the game more fun for everybody. Let me know what you think (and what your score is Smiley )

Its like one level of Super Dudester! Smiley Nice work!
Kev
Ah, have to have a look at that one again to get steal more ideas Wink  It is really a remake of the only game I created in DirectX. The API was so damn annoying that this was as far as I got before I gave up on it. Thankfully at that time Java started offering some possibilities for creating games and I was saved  Cheesy

Your template class as done its job Wink  I have been inspired to try my hand a 4k entry.
Cool! guess that means that I now can keep that as a template and spawn off some more games. Rally 4K looks quite good.

Well, I have made updates according to suggestion. Hope you like them, and let me know if you have more ideas.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #15 - Posted 2006-01-30 01:05:02 »

oh love this game, very simple and amazingly fun, however pushing it a bit more on the graphical side might just give it a better edge in the contest.
Offline Malohkan

Senior Devvie




while (true) System.out.println("WOO!!!!");


« Reply #16 - Posted 2006-01-30 05:11:47 »

Wow I love the new effects and bonuses!  It takes the game to an even better level!  Great job Smiley

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #17 - Posted 2006-01-31 11:54:23 »

oh love this game, very simple and amazingly fun, however pushing it a bit more on the graphical side might just give it a better edge in the contest.
Thanks! Improved gfx a bit. Probably still more room for improvement. Also made it aaliased and decided to add an fps counter, since that might have a bad effect on framerate for som ppl. For me it runs @ 120 - 200 fps and gfx looks very smooth, but I use very simple sleep loop, so would be good to know if this works for everybody.

How is the difficulty level after the changes?

Offline OverKill

Junior Devvie




Java games rock!


« Reply #18 - Posted 2006-01-31 12:31:12 »

Very nice!!!!!
Offline Malohkan

Senior Devvie




while (true) System.out.println("WOO!!!!");


« Reply #19 - Posted 2006-02-01 04:54:36 »

89 woo best score I've gotten!

AHH  111!!  New best!  I love this game Smiley

All the settings are perfect!  The speed, control speed, all of it is great Smiley  I'm very happy

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #20 - Posted 2006-02-01 16:33:00 »

All the settings are perfect!  The speed, control speed, all of it is great Smiley  I'm very happy
Wow thanks. However, I thought it would be even better with some sound.  Smiley Good sound would have been yet better  Cheesy but I don't know how to do that into 4K soo... you can always turn down the volume  Wink That means less space for bonuses and other stuff that I sort of had planned...  Undecided Should I add bonus stuff rather than sound? Thinking bullet time, 2x scoring for some time, shrinking size of badies, speedups, smartbombs.

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.

Mr.CodeIt (20 views)
2014-12-23 03:34:11

rwatson462 (52 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (80 views)
2014-12-09 22:41:13

BurntPizza (110 views)
2014-12-08 04:46:31

JscottyBieshaar (78 views)
2014-12-05 12:39:02

SHC (89 views)
2014-12-03 16:27:13

CopyableCougar4 (93 views)
2014-11-29 21:32:03

toopeicgaming1999 (155 views)
2014-11-26 15:22:04

toopeicgaming1999 (148 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!