Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum HUDTextureIndex
- {
- HUD_gauge, HUD_rings, HUD_lives, HUD_score, HUD_timer, HUD_sonic_lv1, HUD_sonic_lv2, HUD_sonic_lv3, HUD_shadow_lv1, HUD_shadow_lv2, HUD_shadow_lv3,
- HUD_metal_lv1, HUD_metal_lv2, HUD_metal_lv3, HUD_sonic_life, HUD_tails_life, HUD_knuckles_life, HUD_shadow_life, HUD_amy_life, HUD_gamma_life,
- HUD_metalsonic_life, HUD_tailsdoll_life, HUD_metalknuckles_life, HUD_0, HUD_1, HUD_2, HUD_3, HUD_4, HUD_5, HUD_6, HUD_7, HUD_8, HUD_9
- };
- static NJS_TEXNAME HUD_TEXNAME[8];
- static NJS_TEXLIST HUD_TEXLIST = { arrayptrandlength(HUD_TEXNAME) }; //MY OWN HUD STUFF
- static NJS_TEXANIM HUD_TEXANIM[] = {
- // w, h, cx, cy, u1, v1, u2, v2, texid, attr
- // u2 and v2 must be 0xFF
- { 375, 85, -810, -660, 0, 0, 0xFF, 0xFF, HUD_gauge, 0 },//width and height must be the texture's size
- { 314, 55, 44, -170, 0, 0, 0xFF, 0xFF, HUD_rings, 0 },//cx and cy are the position on the screen cx => + or - to go left or right; cy => + or - to go up or down
- { 314, 55, 44, -220, 0, 0, 0xFF, 0xFF, HUD_lives, 0 },
- { 394, 55, 44, -70, 0, 0, 0xFF, 0xFF, HUD_score, 0 },
- { 394, 55, 44, -120, 0, 0, 0xFF, 0xFF, HUD_timer, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_sonic_lv1, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_sonic_lv2, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_sonic_lv3, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_shadow_lv1, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_shadow_lv2, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_shadow_lv3, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_metal_lv1, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_metal_lv2, 0 },
- { 75, 25, -1104, -700, 0, 0, 0xFF, 0xFF, HUD_metal_lv3, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_sonic_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_tails_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_knuckles_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_shadow_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_amy_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_gamma_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_metalsonic_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_tailsdoll_life, 0 },
- { 75, 75, -110, -205, 0, 0, 0xFF, 0xFF, HUD_metalknuckles_life, 0 },
- { 40, 40, -149, -124, 0, 0, 0xFF, 0xFF, HUD_0, 0 },
- { 40, 40, -203, -72, 0, 0, 0xFF, 0xFF, HUD_1, 0 },
- { 40, 40, -190, -173, 0, 0, 0xFF, 0xFF, HUD_2, 0 },
- { 40, 40, -257, -72, 0, 0, 0xFF, 0xFF, HUD_3, 0 },
- { 40, 40, -202, -124, 0, 0, 0xFF, 0xFF, HUD_4, 0 },
- { 40, 40, -184, -124, 0, 0, 0xFF, 0xFF, HUD_5, 0 }, //18 between 2 numbers
- { 40, 40, -275, -124, 0, 0, 0xFF, 0xFF, HUD_6, 0 }, //37 between the doublecoma numbers
- { 40, 40, -190, -173, 0, 0, 0xFF, 0xFF, HUD_7, 0 }, //35 between the coma numbers
- { 40, 40, -131, -124, 0, 0, 0xFF, 0xFF, HUD_8, 0 },
- { 40, 40, -239, -124, 0, 0, 0xFF, 0xFF, HUD_9, 0 }, //-158 for ring digit 1; -18 for 2; -18 for 3
- };
- static NJS_TEXANIM HUD_TEXANIM_NUMBERS[] = {
- // w, h, cx, cy, u1, v1, u2, v2, texid, attr
- // u2 and v2 must be 0xFF
- { 40, 40, -149, -124, 0, 0, 0xFF, 0xFF, HUD_0, 0 },
- { 40, 40, -203, -72, 0, 0, 0xFF, 0xFF, HUD_1, 0 },
- { 40, 40, -190, -173, 0, 0, 0xFF, 0xFF, HUD_2, 0 },
- { 40, 40, -257, -72, 0, 0, 0xFF, 0xFF, HUD_3, 0 },
- { 40, 40, -202, -124, 0, 0, 0xFF, 0xFF, HUD_4, 0 },
- { 40, 40, -184, -124, 0, 0, 0xFF, 0xFF, HUD_5, 0 }, //18 between 2 numbers
- { 40, 40, -275, -124, 0, 0, 0xFF, 0xFF, HUD_6, 0 }, //37 between the doublecoma numbers
- { 40, 40, -190, -173, 0, 0, 0xFF, 0xFF, HUD_7, 0 }, //35 between the coma numbers
- { 40, 40, -131, -124, 0, 0, 0xFF, 0xFF, HUD_8, 0 },
- { 40, 40, -239, -124, 0, 0, 0xFF, 0xFF, HUD_9, 0 }, //-158 for ring digit 1; -18 for 2; -18 for 3
- };
- NJS_SPRITE HUD_SPRITE = { { 0.0f, 0.0f, 0.0f }, 1.3f, 1.3f, 0, &HUD_TEXLIST, HUD_TEXANIM };//the three numbers in the brackets are X, Y, and Z position, then X and Y scaling, rotation, texlist, and texanim
- NJS_SPRITE HUD_SPRITE2 = { { 0.0f, 0.0f, 0.0f }, 1.0f, 1.0f, 0, &HUD_TEXLIST, HUD_TEXANIM };
- NJS_SPRITE HUD_SPRITE_NUMBERS = { { 0.0f, 0.0f, 0.0f }, 1.0f, 1.0f, 0, &HUD_TEXLIST, HUD_TEXANIM_NUMBERS };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement