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

Game Development Adventures 5

It's back, ono

Game Development Adventures 5

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

Game Development Adventures 5

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

Game Development Adventures 5

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

Game Development Adventures 5

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
    nokti-jpeg liked this · 2 years ago
  • lordsillybutton
    lordsillybutton liked this · 2 years ago
  • ahoyitsphil
    ahoyitsphil liked this · 2 years ago
  • coffeeandkinksandstuff
    coffeeandkinksandstuff liked this · 2 years ago
  • musicvsartstuff
    musicvsartstuff liked this · 2 years ago
  • crackaddict55
    crackaddict55 liked this · 2 years ago
  • no-semicolons
    no-semicolons liked this · 2 years ago
  • no-semicolons
    no-semicolons reblogged this · 2 years ago

More Posts from No-semicolons

2 years ago

Game Development Adventure II

Unfortunately, I lost a ton of my data and files, so there's not much to say today.

the upload schedule is every other Monday starting today.


Tags :
2 years ago

IT HAS BEGUN

IT HAS BEGUN

Tags :
2 years ago

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

Game Development Adventures 4

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

Game Development Adventures 4

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!

Game Development Adventures 4

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

Game Development Adventures 4

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

Game Development Adventures 4

Here I just initialize a couple things

We'll get to entropy in a bit

Game Development Adventures 4

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

Game Development Adventures 4

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


Tags :
2 years ago

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

Game Development Adventures 3

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

2 years ago

I’ve been taking so many pictures I’ll finally be able to post some


Tags :