This is a early attempt to get some of the drifting feeling right x is for the handbrake.
In the future there will hopefully be aspects to the game,
drifting through tunnels (off the map) to get seeds from the cosmos, then having a section of the city which you replant will seed that grow into flowers. once you have finished growing a section of the city. An arrow directs you to a shiny orb that lets you draw the next flower (16x16), which will then be planted in the next city district which appears. the goal of the game is to draw over the whole map.
this was an old prototype which is hopefully going to be salvaged for the overgrowing the city part. Z changes the mode, and hold x for action. Sampling mode, drawing mode, and watering mode. you can generate one colour at a time.
Okay here is an update after some time trying to get things to work. In order for the original garden idea to work as described above (its a very weird idea), tunnels would need to be generated for the player to attempt to drift through them.
the idea was to have a circle that the player would drift into which would initiate making a tunnel.
It turned out to be fairly difficult to make that tunnel. First step was finding out the trajectory the player was going on I found an algorithm online that finds a circle based on three points (https://www.geeksforgeeks.org/equation-of-circle-when-three-points-on-the-circle-are-given/) and used it here
When trying to put it all together however ... bug city. It was really hard to try and fix all the bugs because the code was so messy. The mess began after trying to tweak the drifting, instead of thinking about the physics or something smart like that I just added magic numbers everywhere. Then more and more magic numbers and its super spaggetti! Also since I worked on the drifting before having the obstacles to drift around, the drifting was tuned strangely. So lesson learn make the obstacles first, so you have something metric to compare your current performance to. (Also the code to find the circle doesn't work so well for big circles. Anyways all that to say 25th hour pivot to turn it into a toy to play with Cellular automaton.
Thanks for reading this very weird post.
Toy as a result of all of this:https://www.explainxkcd.com/wiki/index.php/2293:_RIP_John_Conway)
small update, so that when you press z you can change a rule
The cells die when their number of neighbors is less than 2 or more than x. when you press z you change the value of x
Oh yeah and cells spawn behind the car when you drift (you can use the handbrake (x key) to drift.
[Please log in to post a comment]