After a few months off where I took some time to focus on my personal life (moved house amongst others) it is now high time I return to game development. Over the past few weeks I have been experimenting and building a few prototypes around a new project that I want to build. This is going to be something way smaller than the proejct I was working in January. It will be more focused and hopefully...
I lied, there’s more physics
Last time we wrapped up the basic implementation of all the building blocks we need to be able to create a solar system and update it at a data layer level and then render it in Unity. This time we’ll start focusing on how we’re actually going to create these solar systems.The end goal is to be able to procedurally generate them from scratch. Before that though, we need to be able to...
Simulating the solar system #2
Now that we have the basis set up to start simulating the solar system it is time to get into more interesting bits.I’m going to write a quick updater that will update the positions of these bodies from their start one whenever the game is started. Very important here is to keep in mind that this updater will run in paralel in a different thread than the Unity one. This allows us to decuple...
Simulating the solar system #1
Last time we left off having figured out what the physics equations behind everything will look like. Now it is time to get to coding. First off, I like to keep my code separated into small classes/components each doing one very specific thing. It is suprising how many complex behaviours can be broken down into these very simplistic components. Let’s make sure we have a way to reference...
Newton was almost right
In this day and age it is clear that Newtonian physics works well at a small scale but not perfectly when trying to calculate trajectories of planets and such. Nonetheless, it is still a good enough aproximation for a game and as such that’s what I’ll be using for this next phase. Essentially, what I’ll talk about today amounts to creating a solar system replica in C#. For this...
A new dawn
For quite a while now I’ve had this idea of an open ended game. A game where the main point is to just play the game. There is no PvP, there is no end goal just pretty things to look at and a relaxing easy gameplay that you can go through whilst thinking about your day. In other words, imagine Civilizations but without the wars, without the religious victories, no turn based mechanic and an...
Stand Your Scope
Bad pun regarding the name of the game “Stand your ground” aside, I’m starting to develop a new game. Something simple I actually want to finish. In the past I’ve had huge issues with scope creep, starting a simple game only to have it spiral down into a MMORPG with millions of players within a few eeks of working on it. I’m now trying to get around that by setting...
Cubic Bézier spline
In the previous post we had a look at what Bézier curves are and how they can form a spline. In this post we will have a look at how the code storing such a spline is going to work. For this part I will be using C# and making use of Unity’s Vector2 classes. As I mentioned before, I will only need open paths. Moreover, I will only need 2D (horizontal plane) paths as the height will be given...
A new journey
I’ve been trying to make this game for about a year now and I’ve always ended up abandoning it. No more! The idea behind the game is simple enough, you have a car, some procedural terrain, an equally procedurally generated road and you need to get between points A and B within a given time.Why? That’s something I still have to figure out. I’ve been thinking about the main...