Homework lesson 1
hi! I just did Spawnpoint lesson 1. I decided to change the ship into something resembling Twinbee! and yes I realize I just aged myself lmao. Also, I looked at the code, and I decided I wanted to snazz up the stars background. By experimenting, I discovered the following:
in the --draw stars segment, the 7 in 'pset(s.x,s.y,7) determined the color of the star pixel. In the button code above there's an example of randomization x=rnd(128) . I changed the 7 in the draw stars segment to rnd(10) and now I have cool sparkly stars! the relevant part now looks like this:
--draw stars
for s in all(stars) do
pset(s.x,s.y,rnd(10))
end
0:16
1
1 comment
Sander van Leth
2
Homework lesson 1
powered by
SpaceCat's Game Dev Skool
skool.com/game-development-skool-5007
Learn to make VIDEO GAMES! We make it simple to learn to make your first video game, get good at pixel art, and start your journey into GAME DEV!
Build your own community
Bring people together around your passion and get paid.
Powered by