diff options
author | Logan Hunt <loganthebean222@gmail.com> | 2020-08-10 14:04:44 -0600 |
---|---|---|
committer | Logan Hunt <loganthebean222@gmail.com> | 2020-08-10 14:04:44 -0600 |
commit | e09a23f0a4f342aa83854ce8cc11aacc09e350fd (patch) | |
tree | 07e8b8365705d9df134e59fa2a0215ba1d902c35 /sprites | |
parent | 7f856467a086ec9a3ebd1ccdf12e578dffb9c98b (diff) | |
download | geometry-dash-gba-e09a23f0a4f342aa83854ce8cc11aacc09e350fd.tar.gz geometry-dash-gba-e09a23f0a4f342aa83854ce8cc11aacc09e350fd.zip |
Added rotation
Diffstat (limited to 'sprites')
-rw-r--r-- | sprites/toolbox.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/sprites/toolbox.c b/sprites/toolbox.c deleted file mode 100644 index e58687c..0000000 --- a/sprites/toolbox.c +++ /dev/null @@ -1,65 +0,0 @@ -// -// toolbox.c -// -// Tools source for obj_demo -// -// (20060922-20060924, cearn) -// -// === NOTES === -// * This is a _small_ set of typedefs, #defines and inlines that can -// be found in tonclib, and might not represent the -// final forms. - -#include "../include/toolbox.h" - -// === (tonc_core.c) ================================================== - -u16 __key_curr= 0, __key_prev= 0; - -// === (tonc_oam.c) =================================================== - -void oam_init(OBJ_ATTR *obj, u32 count) -{ - u32 nn= count; - u32 *dst= (u32*)obj; - - // Hide each object - while(nn--) - { - *dst++= ATTR0_HIDE; - *dst++= 0; - } - // init oam - oam_copy(oam_mem, obj, count); -} - -void oam_copy(OBJ_ATTR *dst, const OBJ_ATTR *src, u32 count) -{ - -// NOTE: while struct-copying is the Right Thing to do here, -// there's a strange bug in DKP that sometimes makes it not work -// If you see problems, just use the word-copy version. -#if 1 - while(count--) - *dst++ = *src++; -#else - u32 *dstw= (u32*)dst, *srcw= (u32*)src; - while(count--) - { - *dstw++ = *srcw++; - *dstw++ = *srcw++; - } -#endif - -} - -void obj_copy(OBJ_ATTR *dst, const OBJ_ATTR *src, u32 count) -{ - int ii; - for(ii=0; ii<count; ii++) - { - dst[ii].attr0= src[ii].attr0; - dst[ii].attr1= src[ii].attr1; - dst[ii].attr2= src[ii].attr2; - } -} |