Log In  

Cart #piwogifafa-0 | 2020-04-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

This is a early attempt to get some of the drifting feeling right x is for the handbrake.
dev log:
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.

Cart #bopuditiju-0 | 2020-04-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

Cart #piwogifafa-1 | 2020-05-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

. Then another program would make the tunnel for the player to follow shown here
Cart #ngenatj-0 | 2020-05-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


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:

Cart #zomuwinora-0 | 2020-05-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Rest in peace John Conway (https://www.explainxkcd.com/wiki/index.php/2293:_RIP_John_Conway)

P#75448 2020-04-26 21:24 ( Edited 2020-05-03 01:28)

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

Cart #nerubufudu-0 | 2020-05-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Oh yeah and cells spawn behind the car when you drift (you can use the handbrake (x key) to drift.

P#75746 2020-05-02 17:14 ( Edited 2020-05-02 20:23)

[Please log in to post a comment]