Thread: Java
View Single Post
Old 10-12-2004, 12:44 PM   #23
Rogue
10 GOSUB Abandonia
20 GOTO 10
 
Rogue's Avatar

 
Join Date: Nov 2004
Location: Afrim, Albania
Posts: 2,113
Default

you have to post the code trough forum. I have only VJ.net on this computer.

Also, can you explain in plain english what you like to accomplishe.

While you do this, here is my recomendation for code (In example I'll write the pseudo code):

[code]
move up:
check if cell is empty
if yes, just move up
if no, check if is the end of the world ()
if yes, don't move, put something , or play some bad sound (perhaps fart )
if no, check what colort is the first box you hitting
check the next box
if is empty, move only that one box
if is not empty, check if next box is same color
if it is, do the same check with next cell
if not, play that bad sound again.

in this checks, you should also make sure that you don't move world's blocks.

also, can you tell how do you check win situation


Rogue is offline                         Send a private message to Rogue
Reply With Quote