Game
Hensen Hopper
9 months ago

So I've spent an hour and a half accomplishing ultimately nothing today so far. I love programming, it's a life-long special interest of mine, but I also HATE it SO MUCH sometimes! (warning: this is a rant)


Since both the beetle's sheild and the beetle-shell equipped sprite over the player both dynamically update according to the value of an integer (the beetle's health and the damageAbsorption count on the Player respectively), I am TRYING to create a script that would read an arbitrary integer field's value and set the sprite of a sprite renderer component on the same game object to a sprite mapped to that integer value in a list of pre-defined pairings that I can modify from the inspector (basically a dictionary except as an array of structs with an integer and Sprite field because C# dictionaries, I discovered, cannot be seen from the inspector window, just the cherry on top of the mountain of things about this endeavor that are royally pissing me off)

Sounds fairly simple, right?

WRONG!

It turns out, this is, to an asinine, absurd, downright hilarious degree, WAY more convoluted to do this conceptually simple action than any reasonable human being would ever idly think about even fever-dreaming to be the case! The obstacle I'm running into is getting the "arbitrary integer field" part of this to actually work. YES, you CAN use system.reflection BUT then performance may take a hit because I need to regularly check the value in order to do this and I won't allow THAT to happen because of course I'm too damn stubborn for my own good and need my game to run well in order to be satisfied with my work as the developer. Stupid fricking...



1 comment

Loading...

Next up

THE SPIDER IS COMING

Four hours in, and my autistic hyperfixation of the year has already spawned. I'm planning on DIY-ing a tensegrity dining table this year thanks to a video by Steve Mould where he showcased a small one. Oh yeah, also, Hensen Hopper, I'll work on that too.

Okay so I've effectively phased out the profile selection menu, or, well, TECHNICALLY not. The profiles system is still there, it's just invisible now. There is only one profile that's either created or loaded on game start. No more profile choosing.

I made some updates to the hints system! Now it reads from the message hub to determine when to show hints and the hint texts now come from the lang system I wrote yesterday. This simplified my the hints handling algorithm A LOT from what it used to be!

Merry Christmas everyone!!!

Oh yeah, this is all I have properly added in the latest build haha.

Working on animating the spider! Like I did with Hensen and the other enemies, I'm doing it in layers, starting first with the web and now with the propeller thingy on the back.

Last post for today! Been getting some work done on the art for the spider, so far I've drawn a colored concept art (I know I completely messed up the web) and got started on the actual sprite, well, at least the layer that will be the spider's web.

Officially gotten started with the spider!!!!!!!!

AAAAAAA! The spider is coming along!!! I'm actually quite proud of the way this turned out! I'm planning to take a break for a bit but I am ALSO gonna add some more idle movements to the spider and then apply some drop shadows and it'll look a ton better.

Been working on the artwork for the spider enemy!!! This is a preview of what it'll look like in-game. I am gonna remove all of these drop shadows as I usually apply those to the spritesheets themselves once I've drawn the animations.