
MusicPhotographyGame developmentBakingWritingBooks Hello! My name is Max!I needed to make this account for a few reasons, to share photos, for posting dev logs, and whatever else I find interesting.
49 posts
Game Development Adventures 5
Game Development Adventures 5
I'M ALIVE!
I got sick yesterday and keystones are this week
damn standardized tests
I've actually made progress on my WFC algorithm
I've rewritten this thing like 3? 4? times now, and I've started leaving funny comments around my code, I'll show you a few but you'll have to find the rest
The movement script is now l o n g e r and contains a roll, which I fixed the bar rolling with the character and also made it roll exactly 360deg
Now back to my code

It's back, ono

This is the _ready() function
randomize() sets a random seed
$TileMap.clear() clears the playfield of any and all tiles that were pre placed on it
the next three lines just make an array that has 0 through 26 (currently)
the next 6 lines initialize the map, a multidimensional array that has the tileIndex array for each coordinate (0, 0) through (16, 16)
the next three lines place the first tile
I need to comment those

Functions are in order of what I made
I made this one with the intention that I could continue to use it even after the first tile was placed
If you see an error in my code, don't hesitate to tell me, I haven't debugged yet
This function takes a tile as a parameter and then picks a random tile from those available
If this is broken please tell me, I wrote it after my adhd meds had worn off so I was falling asleep in my chair, and I'm writing this after my adhd meds have worn off too, so...
Now we get into the real dubious code

This is really hard to understand without seeing entropy(), but it just runs entropy() for each tile as long as it hasn't already collapsed

Here we are
still #Not quite sure how to describe this yet
Remember when I said I thought of a better way to check the surrounding tiles, this was it, I have no Idea if it works, but I think it does
Next I have to comment this stuff and make a sorting algorithm, if Godot doesn't have one built in
If my tags keep changing it's because I keep forgetting what I put last time
o7 cmdr
-
nokti-jpeg liked this · 2 years ago
-
lordsillybutton liked this · 2 years ago
-
ahoyitsphil liked this · 2 years ago
-
coffeeandkinksandstuff liked this · 2 years ago
-
musicvsartstuff liked this · 2 years ago
-
crackaddict55 liked this · 2 years ago
-
no-semicolons liked this · 2 years ago
-
no-semicolons reblogged this · 2 years ago
More Posts from No-semicolons
Game Development Adventures 4
fixed the red squiggle
by installing a new OS
I took way to long didn't I
Well, My partner finally started working, and he made our movement script

this code , of course, allows the character to move, but it also makes the character point towards the mouse
I'm not entirely sure how this works, you'd have to ask my partner
I feel the need to show that that is all he's done while I've done this

This is the Mini-map of my code because there's too much to get in one shot
so let me see what I did this time
well as it seems I've showed you about none of my code so here we go!

Here I declare the size of the map, I'm fairly sure I've told you what the export does
I call the Tilemap
onready, I believe, just calls it before it's called
so less problems

This just lets me easily know where each tile is on the tilemap atlas
It's not actually used yet
The big dictionary is still here, I'm just not going to show it to you

Here I just initialize a couple things
We'll get to entropy in a bit

This just takes the location of a tile or cell and returns it's neighbors
there is a better way to do this that I just thought of, I'm gonna write more of this then figure that out

This is the entropy func, it's supposed to make an array/grid that contains each possible tile that could be in that cell
unfortunately i have no idea how to do this
please help me
or at least help me find a different algorithm to use
I am no quantum physicist, I'm just a high school kid
It's 9 (21) and I have a math test tomorrow
o7 cmdr
Game development adventures 3
Sorry i took so long
please forgive me
Our artist has been hard at work, and I completely rewrote the wave function collapse algorithm

I don't know where that red squiggle came from
This is a dict that contains all the data for our new tile set, and I have have to set it up again for the , hopefully, final time
The original script was made in GDscript v1, I'm using GDscript v2
It was also made in 3d, I'm doing 2d
So most of the original has to be changed and I'm not finished with that yet
I've started to work on the actual story! so far your ship crash lands on a random planet, when you go looking for someone to fix it, you come across a fledgling resistance. They agree to fix your ship if you join them
Hopefully I can do more this week
I might open a ko-fi to pay for the few things I do need to do this like fl studio
I may change the algorithm, it all depends on what works
anyways
o7 cmdr
I’ve been taking so many pictures I’ll finally be able to post some