Just a quick thing
Jeremy Landry <[email protected]> Tue, 3 Apr 2018 10:47:33 -0700
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <CAMYa41kqEeyeQ1=Up7kO8PTbuKJ_DyHDyF8CkVr6HYc19KCwEA@mail.gmail.com> |
--===============3349624885147549673== Content-Type: multipart/alternative; boundary="089e08259aa81c92da0568f54ded" --089e08259aa81c92da0568f54ded Content-Type: text/plain; charset="UTF-8" A couple of friends of mine were kicking around an idea of a 'space golf' game and to encourage them to follow through, I kicked together this super quick demo. https://youtu.be/NMuJszOORqo LIkely this will also end up in Etoys Club. It creates a starfield by copying a prototype and basically the 'stars' will loop using built in Etoys commands like Wrap under the movement category. The playfield is in a book, so I can hide the edges of it where wrap isn't 'pretty'. Then for hte planets, I set it up so that if you click them, they memorize their 'home' location to reset the level and they don't wrap. They all respond to an event called 'ScrollSpace' which is broadcast by the 'player's' sphere in the center of the screen. Basically, the planets are free to move forever inside of the playfield but the stars repeat, giving the impression that space and these stars go on forever, but as you can see at the bottom of the screen, there's only a limited number of stars in the playfield. --089e08259aa81c92da0568f54ded Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">A couple of friends of mine were kicking around an idea of= a 'space golf' game and to encourage them to follow through, I kic= ked together this super quick demo.<div><br></div><div><a href=3D"https://y= outu.be/NMuJszOORqo">https://youtu.be/NMuJszOORqo</a><br></div><div><br></d= iv><div>LIkely this will also end up in Etoys Club.</div><div><br></div><di= v>It creates a starfield by copying a prototype and basically the 'star= s' will loop using built in Etoys commands like Wrap under the movement= category.=C2=A0 The playfield is in a book, so I can hide the edges of it = where wrap isn't 'pretty'. Then for hte planets, I set it up so= that if you click them, they memorize their 'home' location to res= et the level and they don't wrap. They all respond to an event called &= #39;ScrollSpace' which is broadcast by the 'player's' spher= e in the center of the screen.=C2=A0=C2=A0</div><div><br></div><div>Basical= ly, the planets are free to move forever inside of the playfield but the st= ars repeat, giving the impression that space and these stars go on forever,= but as you can see at the bottom of the screen, there's only a limited= number of stars in the playfield.</div><div><br></div></div> --089e08259aa81c92da0568f54ded-- --===============3349624885147549673== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc3F1ZWFrbGFu ZCBtYWlsaW5nIGxpc3QKc3F1ZWFrbGFuZEBsaXN0cy5zcXVlYWtsYW5kLm9yZwpodHRwOi8vbGlz dHMuc3F1ZWFrbGFuZC5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXVlYWtsYW5kCg== --===============3349624885147549673==--