Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
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  
  AnimalMatch 4k  (Read 3403 times)
0 Members and 1 Guest are viewing this topic.
Offline me

Senior Member


Projects: 4


Java games rock!


« Posted 2011-12-01 10:27:10 »

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 with
some color definition encoding.

Anybody allready walked that road in 4K? Any suggestions?!



Best regards from

M.E.
Edit: Java4k link

M.E.
--------
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #1 - Posted 2011-12-01 10:41:41 »

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 Smiley

Offline me

Senior Member


Projects: 4


Java games rock!


« Reply #2 - Posted 2012-02-19 11:49:09 »

The proof of concept for the polygon usage for the sprites came out just fine.
Made a poly-editor to draw over an existing image and converted into string-encoded-coordinates.

Endresult of the proof of concept is ANIMALMATCH 4k.

Edited original message to include the applet.

Best regards from

M.E.

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

Senior Member


Medals: 9



« Reply #3 - Posted 2012-02-25 00:34:03 »

me, your game is not working on my computer - the screen just freezes - with Internet Explorer under Windows 7. However, it runs fine on the the same computer with Chrome.

For the time I have played it, it seems to be an interesting puzzle game. I have just to get the confirmation ( by you or by my experience ) that no movement are allowed on black squares.
Offline ReBirth
« Reply #4 - Posted 2012-02-25 05:22:00 »

Your applet screen's parameter don't match, so the game can't be finished because there're tiles that I can't see.

Offline me

Senior Member


Projects: 4


Java games rock!


« Reply #5 - Posted 2012-02-25 09:08:22 »

Hello ReBirth and StephR,

Thank you for testing my game! Greatly appreciated!

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

@Both: There seems to be a change to the java4k.com site as I now can see different outputs on different
browsers 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 spaces
next 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.



Best regards from
M.E.

M.E.
--------
Offline StephR

Senior Member


Medals: 9



« Reply #6 - Posted 2012-02-25 10:18:15 »

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 :

1  
2  
3  
Exception in thread "Thread-11" java.lang.ArrayIndexOutOfBoundsException: -1
   at a.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


I got the same error with Internet Explorer and Chrome.
Offline me

Senior Member


Projects: 4


Java games rock!


« Reply #7 - Posted 2012-02-25 11:11:01 »

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 should
be careful in matching just the two easiest animals and think ahead.
Hope that helps!

Best regards from
M.E.

M.E.
--------
Offline StephR

Senior Member


Medals: 9



« Reply #8 - Posted 2012-02-26 11:16:35 »

I confirm that the bug I found seems to be fixed.

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.
Offline ReBirth
« Reply #9 - Posted 2012-02-27 02:10:51 »

I confirm that the bug I found seems to be fixed.

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.
Same here. I thought the red box acted like wildcard.

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

Senior Member


Projects: 4


Java games rock!


« Reply #10 - Posted 2012-02-27 05:55:18 »

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 during
the matching. If however you want to remove them you can do so by clicking
on two middle tiles. But only horizontal/vertical matches have real effect!

Hope this helps..

Best regards from
M.E.

M.E.
--------
Offline StephR

Senior Member


Medals: 9



« Reply #11 - Posted 2012-02-27 21:42:33 »

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.
Offline me

Senior Member


Projects: 4


Java games rock!


« Reply #12 - Posted 2012-02-29 06:18:06 »

Added extra line describing the horizontal/vertical matching.
Since you can match either of them I didn't want to choose different colors. It doesn't feel right to match a red and green tile. Sorry!

Thank you very much for your input!

M.E.
--------
Offline StephR

Senior Member


Medals: 9



« Reply #13 - Posted 2012-02-29 09:52:26 »

You're right, different colors for the middle tiles would not be in the spirit of your game. So what about marking them with the same specific symbol, like this :
[ M ][ M ]
[ M ][ M ]

Because it would really help to see that there are four middle tiles, and not just a big one.
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.

xsi3rr4x (18 views)
2014-04-15 18:08:23

BurntPizza (15 views)
2014-04-15 03:46:01

UprightPath (28 views)
2014-04-14 17:39:50

UprightPath (13 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (54 views)
2014-04-10 04:04:31

BurntPizza (111 views)
2014-04-08 23:06:04

tom_mai78101 (212 views)
2014-04-05 13:34:39

trollwarrior1 (181 views)
2014-04-04 12:06:45

CJLetsGame (187 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!