Loading...
53
Game
One by one
7 days ago

long time no see from this game, huh..
anyway, i added sunlight-


(it wont be this ugly blue forever, dw)

i finally figured out the system for the sun light! but it is not implemented completely. actually, for now, each time light updates in a chunk in this demo video, it scans the entire chunk for the highest placed solid tile for every x position.

why this was difficult is because the world in 1x1 is pretty much infinite, in all directions. the game suddenly needs to know if there isnt a tile covering another tile, anywhere in that infinite column.


a techical issue occured, and that was that the shader codes just werent valid for my main machine suddenly. i knew there was something with updates and whatnot happening, so i was working on it on my laptop and recorded it on it too.

but im actually impressed that the game is still pretty fast despite it not having optimized sun light yet, and while running on a windows laptop with integrated graphics. stressing it out to maximum dropped it to the lowest of 50 fps, but in the demo video the lowest was 100 fps (while placing tiles) and doing nothing its still 300 fps as before.


i found out longer time ago, but lights are pretty complicated. if i get to it, i think i could explain what i learned and how it all works.

sry if the post is unreadable, im just a little tired rn ¦‹



3 comments

Loading...

Next up

COLLISIONS

the lights are almost working!

so the player now doesn't fall through the floor. nice!

small school doodles

yes the gaem is still alive progress post soon (not today) ;p

experimenting even more

quickly made something

have another glowy

pff sprite batches are amaezing

got a little sidetracked after seeing @BenjiroBoi 's post, what do you think?