Damocles wrote:Nice work. Especially the idea to have realistic celestrial sizes and temperatures.
I see that the way you create the connections between the stars are similar to the way I have implemented it.
In a second step I use a simple "floodfill" to mark all stars that are connected to each other, and remove the ones who are not connected to the "main grid",
eg, to let the player find a path from every star to any other star.
The stars are initially placed in several "star clusters" using a random Gaussian distribution, to give space some structure.
Now you need a simulation of gravity, and it would make a nice "swirling" galaxy.
Kepler orbital mechanics. They are a good cheat that prevents a TON of excess checks.
Though the generation of the wormhole links as time moves forward will be excessively heavy anyway.
With this galaxy generation, it's a simple approximate linear distribution. Not a real distribution. Then offset.
I have done, in the past, some quite complex spiral distributions, and will implement one of those after I get the motion working.
I haven't done a flood then clear specifically because the system generates links dynamically over time based on proximity. (eventually :3)
Have to say, having someone else coding the same sort of thing is fun. Gives me all sorts of inspiration.
Cha0zz wrote:JanB1 wrote:How do you all just put out these things? I wouldn't even know how and where to start! This thread makes me really sad...kinda...
I'm guessing a good but of coding knowledge and experience helps.
Cha0zz, that just means it gets done faster. I pull from previous implementations all the freaking time. :3
Jan. Start somewhere, anywhere.
You know what I did first?
A simple game, where you moved around with WASD and clicked to shoot a single pellet at incoming zombies.
The Zeds spawned outside of the screen, and walked towards the player at a constant speed. If they touched you you died.
I then added ammo, and multiple weapons. And expanded it.
I eventually started making star systems, simple things arranged on a perfect grid, with up to 5 planets of random color.
From there, I simple iterated over the space idea. Always been fascinated with space games. :V
All it takes is starting.
Grab Gamemaker, and figure out flow of commands.
Or come past the IRC while I am online and coding, and I can help you get started with simple PIXI.js. Or try any of the hundreds of other options for rendering. :3
Gamemaker is great because it has hard limitations, and is really quick and easy to start on.
The limitations force you to think about how you do things, the speed makes it easy to try new ideas.
<Cuisinart8> apparently without the demon driving him around Silver has the intelligence of a botched lobotomy patient ~ Mar 04 2020
console.log(`What's all ${this} ${Date.now()}`);