Out of orbit
When I first started creating the game, I chose to make x2-0 (the spaceship after which the game is named) a RigidBody2D. I had absolutely no experience with programming (my prior attempts on game making relied on RPGMaker 2000/2003 and GameMaker 2, which by the time were much more visual oriented than the current versions of these engines) and the idea of Godot taking care of all the physics for me was too tempting not to take it.
Even when I chose to play a bit with the traditional copter format by making the ship fly around a black hole, Godot's standard physics plus Area2D's gravity point were enough for a cool result.
However, for the following stage, I had something a little more challenging in mind: planets around which the ship could orbit and hop to other planets. And somehow I just couldn't make it work with proper Godot physics.
Don't get me wrong: everything worked as they should, it just wasn't what I wanted. The player might have been mesmerized by how realistic the ship would spin around planets, but they would surely have a really hard time playing the stage in any enjoyable manner. I didn't need real motion, I needed something the player would be able to control.
So, I decided it was finally time to attempt to do x2-0's movement by myself. And... it worked! And... it was quite easy too.
It was quite the journey, and I was frustrated happy to have reviewd sin, cos, vector projections and other math stuff I had never thought I'd actually put to use in my life.
But now I can have my ship happily rotating around the planets, but also leaving them and reverting back to "standard" movement.
Get X2-0
X2-0
Classic copter game with new ideas
Status | Released |
Author | gmourao |
Genre | Shooter |
Tags | 2D, High Score, Sci-fi, Singleplayer |
Languages | English, Spanish; Latin America, Portuguese (Brazil) |
More posts
- Source code addedOct 25, 2023
- Tutorials addedApr 07, 2023
- Updates for version 1.0.1Jul 19, 2022
- Release at last!Jul 08, 2022
- "Finished"!Jun 09, 2022
- Infinity mode highscore and controls explanationFeb 25, 2022
Leave a comment
Log in with itch.io to leave a comment.