Dragon Creek Update 8/8/2020


This week I added the dragon cleanliness system, the dragon fecal system, and the dragon sickness system. All three are tightly connected so it made sense to do them at the same time. The dragon gets sick if it sleeps near poo, and gets dirty if it is near poo. If it is very dirt it gets sick. There's also small stuff like the dragon getting slightly cleaner if it is in the rain. 


I think the trickiest thing this week was implementing the dragon shader. The dragon has a back wing web, a back wing, the body, a front wing, a front wing web, a face, a tail accessory, a unique accessory, claws, and horns. That is 10 things a dragon has to draw. Each piece has to go through a shader that draws a texture over that piece. When you draw a texture over something, GLSL (OpenGL Shader Language) needs to get the  coordinates of the sprite you are drawing and the coordinates of the texture to draw over it. It needs to know where in a texture page (a giant sheet where the game keeps all its sprite data) the sprite is from. This is made ever more complicated by that fact that every sprite is animated, so the UV coords are constantly changing. I got it to work by changing the coords everytime I draw an individual piece, but I'm pretty sure it is a very bad way to implement a shader. It works though, so I'm going to leave it. 


I needed the shader so I could show dirt and grime on the dragon, and make it pale when it got sick. Also eventually when I get the battle system working I need the shader to have a rainbow plasma effect for stat changes. 


I started using imgur recently, and I have to say I get way more interaction on it than any other platform. Which is great! Unfortunately a lot of that interaction is very negative, or plain ignorant. People are seeing the game for the first time and making wild accusations or assumptions. Then when I kindly inform them about my game I get downvote bombed by their followers. At the end of the day any attention at this stage in development is good. It's just a bit irritating when someone says something wrong and they get praised for it. 

Leave a comment

Log in with itch.io to leave a comment.