]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
animation fixed and sprite rendering is more flexible with overdraww and overdrawh
[16.git] / src / lib / 16_tdef.h
index d45433ac7bfd4e1f5c3dfe4d7d42682160c8ec68..9ddb45816dd527b5512b77d0f33d84f55a8de573 100755 (executable)
@@ -146,6 +146,8 @@ typedef     struct
        word spt;               //speed per tile\r
        struct sprite *spri; // sprite used by entity\r
        sword hp; //hitpoints of the entity\r
+       nibble overdraww, overdrawh;    // how many pixels to "overdraw" so that moving sprites with edge pixels don't leave streaks.\r
+                                               // if the sprite's edge pixels are clear anyway, you can set this to 0.\r
        int persist_aniframe;    // gonna be increased to 1 before being used, so 0 is ok for default\r
 } entity_t;\r
 \r