This entry is part 9 of 9 in the series Artificial Galaxies

OK, I made the repo for Artificial Galaxies and put it up. There’s a link for the Corona based versions and a plain vanilla version too. The Corona version demos the borders and a couple of ships grooving along from one star to another.

Repo is here.

I’ve blended some cool stuff into it, specifically the name generating library on GitHub from here.

But let’s start with the fun stuff. Here’s some tests for the plain vanilla Lua examples.

Sure, it’s nothing spectacular  BUT it does show it’s working. The ships’ destination and dockedAt stars are referencing the actual Star objects too, so you can get disco with their x and y locations or any other variables tied to the Star objects. Alter the ‘plain.lua’ file as needed to do your own custom things, and feel free to comment out the print statements in the Galaxy.lua file to get rid of all that junk, I should put a ‘debug’ option in there. Maybe next revision! That way you can see what’s going on. OH one other thing, I relaized the :Serialize functions are expecting Corona based file locations and not LFS locations, so that won’t work. I’ll fix that in the next rev too.

Now, on to the Corona version of the main.lua:

 

I ran it a couple of times so you could see the borders, the ships moving along, and the cool names of the empires courtesy of that namegen library!! Neat eh?

OK I’ll get to some minor revisions and continue to post when the latest version is up and going.

Series Navigation<< Deserialization