4 months ago

figured out something


what if i could put as much info as possible into the 4 numbers (rgb, and now alpha too)? each number has 256 different values (0 to 255). what if i would connect the 4 numbers into one and then break it down into as many as i want? so i did, and it gave me 32 bits to work with!

image.png

why? well, tiles could now change their propeties without completely swapping with another tile - "closed-doors" became open by replacing itself with the tile "open-doors", now it could just change the "solid" and "opaque" booleans and change the color to the color for open doors. properties can be changed dynamically.

this also allows for faster prerendering - i can make use of shaders and with that gpu's ability to speak colors and individual pixels

tiles in the tile atlas could hold the default values (when they are picked up for example), name, events and other stuff.

you can play with that project i have up there here
(chrome strongly recommended)

yappa yappa yappa

ill probably post some doodles later today



0 comments

Loading...

Next up

noodl

doodle paper

happy new year! :D

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

sleepy

made a phone case for @DarckyTheFrench :3

entities are well implemented thrown items as well

devo

Merry Christmas ;p Šťastné a veselé!

"strong wind" (experiment explained in article)