Loading...
70
Game
One by one
28 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

13 yo me casually

i havent drawn anything in a bit so i was doodling this in school for two days

IT WORKS WOO--

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

small school doodles

the lights are almost working!

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

entities are well implemented thrown items as well

i removed one line that wasn't even mine

experimenting even more