Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (808)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (872)
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  
  4kProf  (Read 4578 times)
0 Members and 1 Guest are viewing this topic.
Offline me

Senior Devvie

Projects: 4

Java games rock!

« Posted 2013-01-27 12:28:59 »

Last year I wanted to make this game using polygones. In the end I made a matching game using the technique I wanted to use.

This year the sprites and level design are using different decoding mechanisms.

At the moment it isn't extremely optimized so I think I can add some more levels to the game.

The game is inspired on the Professor Fizzwizzle games.

Click on image to start
Click to Play

Navigate with Arrow Keys and N key for next level if you want to skip one. (P = previous)
ESCape restarts the level.

Basically the sprite decode is like:

chr(nr) = number of sprites .. so for each sprite do
chr(nr) = number of polygones .. for each polygone do
chr(nr) = polygone palette-color reference
chr(nr) = number of points in the polygone so for each polygone-point do
chr(nr) = modulus of coordinate = polygone-x or polygone-y  (sprite width/height determines number of chr)

The level decode is something like this:

chr(nr) = repeat number of objects
chr(nr) = objectnr

The level is still in a multi-dimensional array and I know this can be optimized further using one String technique like the sprites.
So that will be my next task for optimization.

*updated link to java4k*

Offline sixtyten

Junior Devvie

Projects: 1

« Reply #1 - Posted 2013-01-27 20:48:57 »

Looking good... don't quite understand what the rules for object movement are but got the general gist of the game.

Two thoughts:

1. Could you turn on antialiasing to make the look less jagged? (altho maybe you want something deliberately retro)

2. The player animation is well, jumpy Wink I was thinking it's even possible you could get animation for cheap by blending between polygon vertex positions. Assuming the player graphic is made of n polygons and the polygons preserve their identity and approximate relationship (e.g. 1 for face, 1 for body, 1 for arm, etc.), then you could create a smooth animation quite straightforwardly.
Offline me

Senior Devvie

Projects: 4

Java games rock!

« Reply #2 - Posted 2013-01-27 21:00:28 »

Thanks for looking at it and commenting on the game!

1. Originally the game was designed for 1024x768 but then noticed the 800x600 is maximum on the site.
I should redesign the drawing mechanism, or see if the limitation on isn't that strict (anymore)
2. I was thinking of a smoother animation but I'm not sure if I can pull it off without losing the number of levels. Will look into it again when things get better optimized!

Best regards from

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jimmt
« League of Dukes »

JGO Kernel

Medals: 167
Projects: 5
Exp: 6 years

« Reply #3 - Posted 2013-01-27 21:27:59 »

Antialiasing is literally one line of code in your painting method, practically takes no space. iirc you have to set the rendering hints...
Offline StephR

Senior Devvie

Medals: 9

« Reply #4 - Posted 2013-01-28 19:11:32 »

Nice puzzle game.

me, you should know that the rule has changed concerning the 800x600 limit.

I decided to modify one rule: (not popular after contest starts, I know)

The Applet window size may not exceed 800 pixels horizontally or 600 pixels vertically. This is a guideline however, games can exceed this limit if it's deemed acceptable by, although exceeding this is at your own risk. Some games do require more horizontal or vertical space, and it is allowed to exceed it a tiny bit. But be careful of exceeding the vertical limit, as vertical space is more limited on computer screens.
Green is the new text.

The reason for this is... well, some games actually slipped in that are slightly larger than 800x600, and I don't see any reason to reject the submissions. 800x600 is an arbitrary limit just to set some limit, going slightly larger is fine, but going somewhat larger may not be.

I guess someone is going to say "I spent a lot of time making my game to fit inside 800x600, and are you telling me now that I could have done it in 840x610??? THAT CHANGES EVERYTHING!!". Well, sorry... drama queen Smiley

I think it's better and less hassle just to modify the rule (takes me 30 seconds) rather than tell those forgetful poor souls they need to spend hours in an attempt to squeeze their game into that frame.

The link :

You should directly ask to appel if your 1024x768 screen size would be a problem for the java4k site.
Offline me

Senior Devvie

Projects: 4

Java games rock!

« Reply #5 - Posted 2013-02-24 07:56:43 »

Thanks all for commenting.

I have updated the game (and link at top of forum-post)

  • Scaled down to 450x400
  • Antialiassing (penalty: increased bytecode !!)
  • Added levels + implemented the optimization code for level-load
  • Added objects

Best regards from

Pages: [1]
  ignore  |  Print  

mercenarius (4 views)
2020-06-04 19:26:01

mercenarius (2 views)
2020-06-04 19:13:43

Riven (850 views)
2019-09-04 15:33:17

hadezbladez (5834 views)
2018-11-16 13:46:03

hadezbladez (2635 views)
2018-11-16 13:41:33

hadezbladez (6251 views)
2018-11-16 13:35:35

hadezbladez (1504 views)
2018-11-16 13:32:03

EgonOlsen (4739 views)
2018-06-10 19:43:48

EgonOlsen (5797 views)
2018-06-10 19:43:44

EgonOlsen (3282 views)
2018-06-10 19:43:20
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 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‑
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!