Ben ([info]antisynthesis) wrote,
@ 2003-08-24 15:57:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Game idea
Combine sokoban and snake. So you start off with a field with one block, and one goal square. Whenever you get all the current blocks on the current goal squares, they dissappear, your snake grows a bit, and a new set randomly appears, with one more block and goal than the last. Trying to push a block against something would kill you, like ramming into a wall in snake, likewise for pushing a block into oneself.

Hmmm.



(Post a new comment)


[info]kevandotorg
2003-08-26 07:43 pm UTC (link)
Here you go; Snakoban! Although I'd misremembered what happened when all the goal squares had been filled. And wasn't so harsh with the death thing. And made it turn-based Sokoban-style rather than unstoppable Snake-style. Eh.

Source code included and messily annotated, anyway. That'll teach you.

(Reply to this) (Thread)


[info]kevandotorg
2003-08-26 09:53 pm UTC (link)
Actually, making it into an unstoppable Snake wouldn't be much of a change; just moving the "move the snake" code into the loop() function, and having the x and y differences being changed - and staying changed - when you press the keys.

I'd written it as Sokoban turn-based because that's how I'd imagined it working, is all, rather than it being particularly easier. I might faff around with it again tomorrow; it is rather a nice game idea.

(Reply to this) (Parent)(Thread)

I think this is the best site in the net I have ever visited!
(Anonymous)
2007-05-20 03:14 pm UTC (link)
how are you
good resource a colour gamut and pictures is class neat so all is good but as I looked for you problem with the spam of type of it
< a href= http://gratis-porn.premium10adult.info/free-homemade-porn.html >free homemade porn </a> all whole ? while

(Reply to this) (Parent)(Thread)

kwELlOeubyFQnzUZ
(Anonymous)
2008-09-17 02:54 am UTC (link)
fv3MLQ hf6Snb9Ula10Hdf74n

(Reply to this) (Parent)

Gold site
(Anonymous)
2007-06-27 11:42 pm UTC (link)
You like gold? You search for gold? Then you will like this site.
http://zborxs.info

(Reply to this) (Parent)

Hello.
(Anonymous)
2007-07-12 07:52 pm UTC (link)
Hi. Me very much to like here. I shall advise this site to the friends.
I am sorry for my English. I only learn this language.

(Reply to this) (Parent)

sprint ringtones
(Anonymous)
2007-08-15 08:45 am UTC (link)
Very informative site. Successful structure.






(Reply to this) (Parent)

Thank You for site
(Anonymous)
2007-08-27 08:44 am UTC (link)
Thank you for your site. I have found here much useful information.
Good site ! ;)

(Reply to this) (Parent)

new order pseudovnt supper disk
(Anonymous)
2007-12-11 07:58 pm UTC (link)
hay!!
good project :)
senks :)

(Reply to this) (Parent)


[info]antisynthesis
2003-08-26 10:14 pm UTC (link)
Aha, good job. Two suggestions, if you plan on doing any future changes. One, that the blocks not appear on the edges, since those are almost ungettable unless a hole happens to be on that edge as well. Two, that there be some kill button so you don't have to reload the page if the snake gets stuck behind its tail and wall and whatnot. But it's an entertaining and amusing game, as I thought it would be. I'll definitely have to learn processing soon if it can be used to make amusing colored block games like that, let alone various visual toys ala zombies or beach.

(Reply to this) (Parent)(Thread)


[info]kevandotorg
2003-08-27 08:52 am UTC (link)
Mm. First suggestion is fairly easy to implement - just replace "if (square[rx][ry] == 0)" with "if (square[rx][ry] == 0 && square[rx-1][ry-1] == 0 && square[rx][ry-1] == 0 && ...)" in the addBlock function, so that it only puts stuff in empty squares whose neighbours are also all empty.

And the second is even easier - I think you can just call "setup()" when your reset key of choice is pressed.

But yes, download Proce55ing and have a play around with it. The best way to learn is probably to start with something simple and comprehensible like Snakoban, and to try and add new features to it; hassle me online if you want some suggestions as to things you should be able to work out how to do simply by changing a couple of lines, or advice on how to do stuff you aren't sure how to approach. It'd be good to see you producing Java toys.

(Reply to this) (Parent)


[info]wadjet
2003-09-05 06:44 am UTC (link)
wow sokoban. brings back memories of the old 386.

(Reply to this)

Now those large cars is relevant again!
(Anonymous)
2007-01-30 03:51 am UTC (link)
MESSAGE

(Reply to this)

Who can help me with .httpaccess ?
(Anonymous)
2007-02-05 03:52 pm UTC (link)
Who can help me with .httpaccess ?
where i can fined full information about .httpaccess file syntaxis?

(Reply to this)

web dating
(Anonymous)
2007-02-14 09:42 pm UTC (link)
MESSAGE

(Reply to this)

healthinsurancetravel
(Anonymous)
2007-02-16 08:52 am UTC (link)
MESSAGE

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…