4 ms·
Last Sunday I was messing around with Godot engine[0] doodling and I made a kind of "physics toy" (calling it a game would be too much, although it's a lot of f
by carapace 7y ago
Last Sunday I was messing around with Godot engine[0] doodling and I made
a kind of "physics toy" (calling it a game would be too much, although
it's a lot of fun.) I loaded a simple space ship model from a free game
assets site,[1] turned off gravity, and added some simple controls. I
found a cool background[2], also free, and put in some asteroids and a
little star.
And that's pretty much it.
All you can do is fly around and bounce off of things. I didn't implement
any collision logic, so everything is indestructable, but you can chase
and attempt to herd asteroids, or bounce off the sun! The physics of the ship mimic the real world: turning doesn't affect your velocity (no swooping.) But conservation of angular momentum was such a PITA that I made it so the ship automatically damps it. I also made a "magic" brake that just slows you down relative to the frame of the sun.
Godot is really tight. It has a
few weird glitches here and there but overall it's a joy to work with.
(As an aside, I was trying to make some meshes and things in Blender and
O how I hate that UI. I have a total love/hate thing with Blender. One
the one hand it's so good and powerful and has such a compelling life
story, on the other hand it literally gives me a headache when I use it.)
Anyhow, FWIW I just pushed the "game" to srht: https://git.sr.ht/~sforman/SpaceGame https://git.sr.ht/~sforman/SpaceGame
so y'all can take a look.
You should be able to load it into Godot 3.2 and run it or edit it. It's
a little messy, I apologize. It's only a week old and I haven't spent a
lot of time on it, but I'm learning techniques and adding little things
here and there.
There are soooo many possibilities... I didn't plan to make this, but I
imagine I'll keep messing with it. Scratching an itch. (In a world that
contains e.g. Kerbal Space Program and EVE Online do I really want to
spend a lot of time on this?) One thing I want to try is connecting to a Prolog server via websocket
and using it as the ship's computer.
BTW, the thought occurred to me the other day that, since Godot has HTML
as an export target, it's a valid front-end authoring tool, especially
if VR|AR takes off, eh?
[0] https://godotengine.org/ https://godotengine.org/
[1] Space Kit from Kenney.nl https://kenney.nl/assets/space-kit https://kenney.nl/assets/space-kit
[2] https://opengameart.org/content/ulukais-space-skyboxes https://opengameart.org/content/ulukais-space-skyboxes