5 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

very big tail

entities are well implemented thrown items as well

doodle paper

IT WORKS WOO--

the lights are almost working!

"strong wind" (experiment explained in article)

devo

few doodles

i got sick and i haven't been feeling exactly the best for the last week, but things are getting better. i should be back on track very soon.

my part of arttrade with @heartsandhearts ! ;p