cat in snow

Publicado 2023-06-12


a cozy lill' walk through some snowy woods
this game is mostly about atmosphere, so no objectives here. just walk around till you feel done :)

i'm real happy about how natural the tree generation feels so i figured i'd talk about it.
the trees start out like this.

the main thing that helps sell the forest is the random tree placement. but if we just did something like..

..then each time we re-spawn the trees for a area they would be in different spots then before. basically we need a function that returns a sudo random value y from value x. thats were this function comes in...

here's a part of the function on desmos..

so while not totally random, it looks random enough :)
so instead we do something like this

the reversal of x and y is important, otherwise we get this banding effect..

beyond that, its just a matter of scaling the top of the tree with SSPR, placing some random sets of branches, and doing some random flipping of the tiles.

an archive of the dev files can be found on the itch.io page
was made as part of the 2023 Secret Santa game jam