Saturday, December 8, 2018

mechanics that actually make sense

while fucking around with playtesting the new release, i thought about all the weird things that were in the game. the floating shit stains left behind after deleting structures without cleaning them didn't bother me too much, and i know exactly how i could fix them, but something that significantly affected gameplay was building. in casual fluffies v0.2 and below, building mode is completely separate from the game's other modes of interaction, and not just because of the fact that it's toggled with the b key when everything else is toggled with buttons. building mode doesn't even use the same internal system as the other six modes, and honestly, i'm not sure what the hell i was thinking when i programmed it in.

while my alicorns desperately chase non-alicorn pussy in the compiled game, i'll fix problems. while the transition from v0.1 to v0.2 was mostly about making the game less of a piece of shit, v0.3 is... still about that, but i'll be focusing on little things like the floating splatters instead of dumping a whole bunch of brand new features on a game full of well-known issues without even bothering to fix half of them.

the mess fix was easy. all i had to do was make build mode target the splatter layer in addition to the actual building layer when destroying tiles. build mode was the one i hadn't really been looking forward to, because i actually had to draw something before i could start. one painfully half-assed blueprint icon for the tray later, i was ready to begin.


naturally, the first thing i had to do was add functionality to the button itself, which was easy. with the build button firmly programmed in, i had a blueprint that lit up when clicked and did absolutely fucking nothing otherwise. from that point, i just had to rewrite some of my code to connect the building function to the new mode, and i was done.

but then i ran into what could have been a justification for my sleep-deprived ass to implement such a critically awful system. changing to another mode would place a block behind the button. it was at this point that i just went 'fuck it' and made it work by shift-clicking instead of just regular clicking. the new system would take a little getting used to, but it would also lead to less accidental building and/or crushing between walls if i ever add that.


while i was at it, i made an inventory button, because why the hell not, but then i decided that making the fluffy ai less retarded was more important than that. thanks, sneakingtail!

fluffies are mostly fine. it's just that they can see through walls. it should be an easy fix. i'll have the fluffy ai draw a line between the fluffy and the thing it's considering seeking out, and if that line hits part of the map, even if the thing is otherwise valid for targeting, the fluffy won't try to move towards it. let's implement it!

the fix itself was easy, but i ended up finding yet another example of why you shouldn't code while sleep-deprived. in the changelog for v0.2, i mentioned that female fluffies will talk about wanting to have babies when their sex drive is high. well... turns out they'll only do that if they're pregnant as well as horny, and it seems like i decided that deleting the mummah song entirely was a good idea. fucking whoops! i knew something was weird while i was testing the build.

after fixing that, i also made fluffies eat food that's already touching them instead of going through the whole seeking thing, which allows them to not starve to death out of stupidity. the thing about seeking is that a fluffy will only perform an action on the thing it's seeking if it begins touching it, not if it's already touching it. same for special huggies. this fixes that and allows fluffies to function in extremely cramped spaces. yay!

1 comment:

  1. (Almost missed this post) You're welcome~
    Soon, my breeding farms will be as tiny as I can manage!

    Btw, good call on focusing more on little fixes over the extremely tantalizing feature creep. Less flashy for news posts, but something that'll pay off later.

    ReplyDelete