Log In  

19

Cart [#26039#] | Copy | Code | 2016-07-28 | Link
19


I did a spaceshooter and documented the process in 16 gifs.

See an overview of all 16 gifs at once. And start each gif as a step by step tutorial.




P#26040 2016-07-28 16:57

::

Nice, makes me think I'm over complicating things :-).

P#26041 2016-07-28 17:13

:: Video

Wow, this really was pretty cool! :D
Thanks for sharing, this is sure to help me (not only me) to learn more.

If you do not mind I joined the gifs in a video.
https://dl.dropboxusercontent.com/u/127041/ztiromoritz-spaceshooter-16gifs.mp4

Thanks again
(Sorry for the English and Hello from Brazil!)


P#26065 2016-07-29 01:44

::

This is a really cool way of providing a tutorial actually. Thanks for sharing!

P#26072 2016-07-29 05:11

::

Thank you all.

@erloncabral : This is cool. What would you like to do with it? We could add it to the page. Also feel free to use it under (CC BY-NC-SA 4.0) conditions.

P#26105 2016-07-29 17:39

::

ztiromoritz : Hi, I actually joined the gifs just to give pause in some parts, totally for personal use, it might be useful for some more, and put the link here :)

P#26224 2016-07-31 13:59

::

This was really helpful for me. As a pico-8/lua/gamedev noob, I decided to hand copy the code from the gifs, looking up stuff in the pico-8.txt doc as I went along. I learned a bunch, thanks!

I love how the overlay for each gif is each of the colors in the pico-8 palette.

P#26614 2016-08-07 00:10

::

Loving this, incredibly helpful, cool format. Did anyone else get a runtime error <EOF> "attempt to index local 's' (a nil value)" after doing collision 3? It references the 's' in the abs_box, coll, and _update functions. Having a hard time finding my mistake.

P#32740 2016-11-24 22:32

::

Really helpful, thanks! It would be nice if you could constrain the ship to the screen -- just unconventional to navigate outside the play field.

P#32999 2016-12-04 03:07

:: Restricting ship to screen area

This is some quick and dirty code to restrict ship to screen area

if btn(0) then if ship.x==0 then ship.x=128 else ship.x-=1 end end
if btn(1) then if ship.x==128 then ship.x=0 else ship.x+=1 end end
if btn(2) then if ship.y==0 then ship.y=0 else ship.y-=1 end end
if btn(3) then if ship.y==120 then ship.y=120 else ship.y+=1 end end


P#33409 2016-12-12 15:11

::

Thanks for sharing, I learned a lot with your tutorial !

P#33411 2016-12-12 15:14

::

@coureurdesmers
quick tricks:
--wrap around
if btn(0) then ship.x=(ship.x+127)%128 end
if btn(1) then ship.x=(ship.x+1)%128 end
more generally, ship.x=(ship.x+128+dx)%128

--walls
if btn(0) then ship.x=max(0,ship.x-1) end
if btn(1) then ship.x=min(ship.x+1,128) end
more generally ship.x=mid(0,ship.x+dx,128)


P#33413 2016-12-12 16:06

::

Thanks @ultrabrite, I've already put this into use

P#33424 2016-12-13 00:45

::

Thanks for the inspiration!

http://www.lexaloffle.com/bbs/?tid=28402



P#34755 2017-01-02 14:40

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:
Generated 2017-02-26 03:40 | 0.324s | 1835k