• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Diminishing sprite size to 16x16px.

Slime

Active Member
Joined
Jan 25, 2014
Messages
115
Reaction score
33
How hard would it be and where should I look for the code? I know most people want to resize to 64x64 or more to have HD Tibia, but I want to recreate the 8bit console feel as well as possible. My goal is to display 16x14sqms that are 16x16px each. I don't care about tools for now, I could probably just use separate tibia.spr that is 32x32 for tools like mapeditor and make OTC read 16x16 sprites.
 
If you want easy way (almost no codding), just use 32x32 sprites, but resize your 16x16 sprites in paint 2x for example:
2FFH8Di.png

Add those resized sprites to .spr file and in OTC shrink mapview 2x.
 
I did it like that in my previous project. Stuff like text, bullets or sprites still moves by 1px distance and that's something I do not want. I'll probably look for a way to make sprites move 2px per frame and resize all the stuff 2x.
 
edubart/otclient
Here you can change the size of tile, but you will have errors - uncompatible spr and dat - probably, didn't tested.
 
Tried that, OTC crashes on login. I can't really experiment with all that stuff for now because I'm not able to compile the latest OTC without getting 999999 errors, tried both vs13 and vs17 but I get graphical bugs ingame. My other idea would be to leave .spr and .dat as it is, use only upper left 16x16 for a sprite and leave the rest transparent, then modify OTC to display everything correctly. That wouldn't require modifying tools like mapeditor, I'd just use separate 2x resized .spr for tools.
By the way, if I wanted the game size screen to be resized only 0.5, 2x and 4x and not anything in between, should I look for it in modules or source?
 
Back
Top