Sunday update - testing out realtime_interval

151 views
Skip to first unread message

Stephen Lavelle

unread,
Oct 13, 2013, 12:27:31 PM10/13/13
to puzzle...@googlegroups.com
Hey all -

new prelude switch in the works

realtime_interval 0.2

Basically all i've added today - i'm just testing the waters, to see what people make of it - it's markedly BETA (games that use it have a warning on their play page), and I'll change it depending on how people use it, or remove it if ye don't use it at all.

http://www.puzzlescript.net/play.html?p=6964096

I haven't documented it yet, but it should be pretty clear what it does?

Sorry about the crap demo.

Peace,

S

* actually the switch was there all along O_O

Kevin Henke

unread,
Oct 13, 2013, 1:47:26 PM10/13/13
to puzzle...@googlegroups.com
Reveal your secrets!  What other hidden goodies have been "there all along O_O"?

I look forward to getting into this.  Thanks for the reveal Stephen.

Boa Heck

unread,
Oct 13, 2013, 3:37:26 PM10/13/13
to puzzle...@googlegroups.com
I Have noticed in the demo that the flame also moves when you move and this causes it to move extra fast. Perhaps the realtime_interval should also set the key_repeat_interval automatically unless otherwise stated.

rlope...@gmail.com

unread,
Oct 14, 2013, 5:39:49 AM10/14/13
to puzzle...@googlegroups.com
¡¡Genial!!

¿El Intervalo es siempre el mismo? ¿O se puede cambiar?

Stephen Lavelle

unread,
Oct 14, 2013, 6:45:35 AM10/14/13
to Rafael L. Rego, puzzle...@googlegroups.com
you can change the number 

(please consider using google translate to translate your emails before sending - this is an english language list, and people are less likely to read them if you don't post in english)


--
You received this message because you are subscribed to the Google Groups "PuzzleScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puzzlescript...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

coolg...@gmail.com

unread,
Oct 15, 2013, 5:09:37 AM10/15/13
to puzzle...@googlegroups.com
I made Snake :D

http://www.puzzlescript.net/play.html?p=6988813

For this example I'd prefer it if the next turn is only triggered by the timer, and not by pressing a key - pressing a key just sets the player movement for the next turn without triggering the next turn. But there might be some use case for the current behaviour.

coolg...@gmail.com

unread,
Oct 15, 2013, 5:13:22 AM10/15/13
to puzzle...@googlegroups.com

Huh, I just noticed that the random fruit spawning isn't working at all; it just picks the first free space going left-to-right, top-to-bottom. Am I using random wrong?

coolg...@gmail.com

unread,
Oct 15, 2013, 5:17:03 AM10/15/13
to puzzle...@googlegroups.com, coolg...@gmail.com

http://www.puzzlescript.net/play.html?p=6988893

Moving the random to the front of the rule fixed it. I guess the one with the random in the middle of the rule should be a compile error?

Baconaro

unread,
Oct 15, 2013, 5:44:51 AM10/15/13
to puzzle...@googlegroups.com, coolg...@gmail.com
 I also made a snake :D
but it is a bit more complicated...
Also, he have differents sprites for all the differents snake positions :p

Baconaro

unread,
Oct 15, 2013, 6:00:56 AM10/15/13
to puzzle...@googlegroups.com, coolg...@gmail.com

Stephen Lavelle

unread,
Oct 15, 2013, 7:07:45 AM10/15/13
to coolg...@gmail.com, puzzle...@googlegroups.com, coolg...@gmail.com
Noted as a bug. Thanks for reporting it :)

trig...@gmail.com

unread,
Oct 15, 2013, 8:06:50 AM10/15/13
to puzzle...@googlegroups.com, coolg...@gmail.com
Tested on my Pacman demo

http://www.puzzlescript.net/play.html?p=6990543

Works great!

Reply all
Reply to author
Forward
0 new messages