diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-08 02:28:01 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-08 02:28:01 -0600 |
commit | 2a4c15c26780d2cb55906a15ec0f79fe4b36586e (patch) | |
tree | 577b27fbadbe9f039d9db8daa034174fd1d158e9 /blog/src/g | |
parent | 02f7cb79bd11b8ad5ba98afe8fc4e5d8ea8e67ef (diff) |
fix minor issues on images
Diffstat (limited to 'blog/src/g')
-rw-r--r-- | blog/src/g/gogodot_jam3_devlog_1.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/blog/src/g/gogodot_jam3_devlog_1.md b/blog/src/g/gogodot_jam3_devlog_1.md index 1751c45..6d6d13a 100644 --- a/blog/src/g/gogodot_jam3_devlog_1.md +++ b/blog/src/g/gogodot_jam3_devlog_1.md @@ -310,7 +310,11 @@ And this is used in `_process` to place new food whenever needed. For now I adde It just happend that I saw a video to create random maps by using a method called [random walks](https://www.mit.edu/~kardar/teaching/projects/chemotaxis(AndreaSchmidt)/random.htm), this video was made by [NAD LABS](https://www.youtube.com/c/NADLABS): [Nuclear Throne Like Map Generation In Godot](https://www.youtube.com/watch?v=ppP2Doq3p7s). It's a pretty simple but powerful script, he provided the source code from which I based my random walker, just tweaked a few things and added others. Some of the maps than can be generated with this method (already aded some random sprites): -![World map generator - Random map 1](static/images/g/gogodot_jam3/world_generator_1.png "World map generator - Random map 1") ![World map generator - Random map 2](static/images/g/gogodot_jam3/world_generator_2.png "World map generator - Random map 2") ![World map generator - Random map 3](static/images/g/gogodot_jam3/world_generator_3.png "World map generator - Random map 3") +![World map generator - Random map 1](images/g/gogodot_jam3/world_generator_1.png "World map generator - Random map 1") + +![World map generator - Random map 2](images/g/gogodot_jam3/world_generator_2.png "World map generator - Random map 2") + +![World map generator - Random map 3](images/g/gogodot_jam3/world_generator_3.png "World map generator - Random map 3") It started with just black and white tiles, but I ended up adding some sprites as it was really harsh to the eyes. My implementation is basically the same as *NAD LABS*' with few changes, most importantly: I separated the generation in 2 diferent tilemaps (floor and wall) to have better control as well as wrapped everything in a single scene with a "main" script with the following important functions: |