Unfortunately I didn't completed the physics engine as I planned.So instead I submit the proof of concept game for the polygon drawing.

ANIMALMATCH4K

Obsoleted:[WIP] Prof4K

Hello All,

This year I'm going to try to make a game like Professor Fizzwizzle.It will be a vertical platform puzzle game where the hero can't jump or fly.

First I will investigate fillPolygon as opposed to sprites created by String.In the past I had good results using String encoding Sprites.

This is where I'm headed now (pseudo-code)String sprites="[nrofcoords]XY..XY[nrofcoords]XY..XY";Each sprite definition starts with nr of poly followed by x,y coordinates.Maybe advanced technique would be to include number of sprite parts indication withsome color definition encoding.

Well, I used string-encoded low-precision hex coordinates for my levels (which were just polygons, really) in several of my 4k games, including Spiderball and Bullets. It's worked well enough. In general, hex strings seem to compress very well

@StephR: I changed the sleeping-mechanism and introduced Implemented/Run instead of a single init to hopefully fix thatfreezing issue.

@Both: There seems to be a change to the java4k.com site as I now can see different outputs on differentbrowsers that wasn't there before.Other games are running with chopped game canvases as well on IE 9. Chrome still works, but give extra white spacesnext to the applet.

@StephR: Sometimes the rules of the tiles are blocking eachother.Fish can only swim across other fish and black = empty tiles.Land animals can only walk on empty = black tiles.

An example of unfinished level is for instance:

Here the fish tiles are blocking the animals.You can only make L-shape matches or horizontal-vertical matches.

Now your game doesn't crash anymore with Internet Explorer on my computer.

Thanks for your explanations about the game mechanics. And I'm sorry to admit I had skipped the helpful demo-levels at my first try... However, I can't pass the one about the "middel tiles can be matched at a penalty".

Oh, and your game just crashed as I came back to the main menu by clicking on the mouse right button, then started again the demo-levels. It was not possible to click on anything on the first demo-level, and the game lost its focus. The Java console gave me the following error message :

Thank you for that bug-report !! Found the -1 index , I think!Should be fixed now.

The red pieces should be matched to make a path between the right and left side.Only at a penalty of 100 points can the middle pieces be matched, so you shouldbe careful in matching just the two easiest animals and think ahead. Hope that helps!

However, I just can't figure out how to use the middle pieces in the demo-level about them. I tried a lot of different combinations, to get the same results : my score was reduced by 2 and I heard the sound related to forbitten moves.

However, I just can't figure out how to use the middle pieces in the demo-level about them. I tried a lot of different combinations, to get the same results : my score was reduced by 2 and I heard the sound related to forbitten moves.

You have to click on both middle tiles to get them removed.The middle tiles are blocking-tiles so that you have to avoid them duringthe matching. If however you want to remove them you can do so by clickingon two middle tiles. But only horizontal/vertical matches have real effect!

Thanks for the explanations about these middle tiles, me. Maybe should you make clearer that there are 2x2 middles tiles. What about coloring them in red and green like this :[ red ][ green ][ green ][ red ]

Instead of :[ red ][ red ][ red ][ red ]

In your demo-levels, you may also indicate that the player has to select two middle tiles in a row or in a column to remove them.

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