5 ms·
I have tried other shapes at the pixel level, but not at the sprite level. Example: I draw from the top left pixel, draw the whole row of pixels (use the run le
by ghub-mmulet 6y ago
I have tried other shapes at the pixel level, but not at the sprite level. Example: I draw from the top left pixel, draw the whole row of pixels (use the run length encoding), Then I draw the next row and so on. I haven't tried drawing the top left pixel and then drawing the to the bottom right corner, then moving up/down a diagonal row. You're right that might make it look a lot better, I will have to try it later. I stopped after I got it "good enough", because I wanted to finish the game.
- PufPufPuf 6y agoI was specifically referring to the "sub-pixel" level: https://github.com/mmulet/code-relay/blob/main/markdown/HowIDidIt.md#q-how-do-you-get-color https://github.com/mmulet/code-relay/blob/main/markdown/HowI...
- ghub-mmulet 6y agoOh yeah. In that case, I did try that, but for whatever reason it didn't perform well or I wasn't happy with the look. (It was probably performance). You can play around with the sprite rendering in the code. This [0] is the line for each individual pixel. And this[1] is where I generate the repeated pixel subroutines. 0: https://github.com/mmulet/font-game-engine/blob/e92a97ecbf8cf5c2b35b6a68580098198eb1c22c/blender/fontemon_blender_addon/assets/SourceFont.ttx#L857 https://github.com/mmulet/font-game-engine/blob/e92a97ecbf8c... 1: https://github.com/mmulet/font-game-engine/blob/e92a97ecbf8cf5c2b35b6a68580098198eb1c22c/blender/fontemon_blender_addon/GameToFont/addRepeatedPixelSubroutines.py#L23 https://github.com/mmulet/font-game-engine/blob/e92a97ecbf8c...