Game
OSG Asteroids
8 years ago

Source Code Now Included!


The OSG Jam (see here) has finished and there are some amazing entries… who’d have thought so much could be done in a single script? So, with the Jam finished it means that I can now upload the game script to GameJolt for everyone to enjoy (or cry over)…

When you download the game, you’ll find that the ZIP now contains a “.gml” file with the entire source… some 1170 lines of code for you to peruse, learn from and edit or add to. The basic premise for the script is that a data structure is made on the first loop of the game (along with particles, sounds etc…), and then after that a basic FSM takes over to control the game state, reading and righting values to the main map as required (sometimes writing to other data structures and then writing them to the main map). Most of it is commented so you can see which bit does what, but be warned that it’s not the most elegant of code!

To run the game in GameMaker: Studio, create a new project, import the .gml file as a script resource then create a new object and a new room. Call the script with no arguments in the draw event of the object and drop the object into the room and run the game.

Have fun!



0 comments

Loading...

Next up

Woohoo! Microscope Madness is now available! :)

https://gamejolt.com/games/microscope_madness/453220

Short intro of us 💕✌️

We're an eletro duo based in Seoul 🇰🇷 Heavily influenced by the 90s.

Our new album #Xennials is all about the nostalgia of that era 💽 CD listenin 📟 beeper beepin 💾 floppy disks floppin days 😎

Stream now! 🎧

https://open.spotify.com/album/3YwWhnHWVy5cA8XOpbaGRA?si=8E9awqU…

Just as Pecaminosa's musicians #improvise this rendition of #LittleSunflower 🌻, so do we improvise with this post you're reading. 😂

What's coming out of your own improvs? 🤔

#Pecaminosa | #IndieDev | #OST | #Jazz

Smile! Here, take some happy pills! ✨💊 #Blender #3DModelling #3DArt Buy me a Ko-fi: https://ko-fi.com/barbarafb_

Finished a project I've been working on over the last few days!

Modeled and textured in Blender.

#3dart #lowpoly #npbr #fantasy #hut

I was bored, so... ManutKat.

Just a Pico sprite

Update 2.627

New challenges & new effects!

A house I've built a while ago. :)

It nicely separates the snowy biome from the grassy one.

It's built with painted Ebonstone.

a drawing I did because I was bored😪. But I love how it turned out.😊