mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-24 18:02:22 -05:00
Add plasma
This commit is contained in:
parent
7e1f6bcf61
commit
efc467b77c
21
assets.h
21
assets.h
@ -477,6 +477,27 @@ SFG_PROGRAM_MEMORY uint8_t SFG_weaponImages[][SFG_TEXTURE_STORE_SIZE] =
|
|||||||
235,168,0,0,0,0,0,34,34,0,0,0,2,34,47,22,229,168,0,0,0,0,0,0,0,0,0,0,0,0,2,34,
|
235,168,0,0,0,0,0,34,34,0,0,0,2,34,47,22,229,168,0,0,0,0,0,0,0,0,0,0,0,0,2,34,
|
||||||
234,168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,53,0,
|
234,168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,168,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,53,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,2,227,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34
|
0,0,0,0,0,0,0,0,0,0,0,0,0,2,227,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34
|
||||||
|
},
|
||||||
|
{ // 4, plasma gun
|
||||||
|
175,4,6,0,50,5,187,17,7,190,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,51,0,0,0,0,0,0,0,0,0,3,51,0,0,3,51,136,0,0,0,0,0,0,0,51,
|
||||||
|
48,3,68,48,51,56,130,34,0,0,0,0,0,0,0,52,67,3,71,51,136,136,34,34,0,0,0,0,0,0,3,
|
||||||
|
68,71,51,120,136,130,34,34,68,0,0,0,0,0,0,3,71,119,136,88,34,34,68,68,17,0,0,0,
|
||||||
|
0,0,0,51,120,136,130,82,34,36,17,17,17,0,0,0,0,0,51,88,133,34,37,34,34,65,17,17,
|
||||||
|
17,0,0,0,0,51,136,82,34,85,82,34,34,113,17,17,17,0,0,0,51,136,85,34,34,34,34,34,
|
||||||
|
39,17,17,85,85,0,0,3,136,130,34,34,68,68,116,119,113,17,85,86,102,0,0,52,68,68,
|
||||||
|
68,68,17,17,17,17,17,21,86,153,153,0,0,49,17,17,17,17,17,17,17,17,17,85,105,103,
|
||||||
|
119,0,0,3,55,116,65,21,85,85,85,85,85,86,150,114,34,0,0,0,3,102,102,102,102,102,
|
||||||
|
102,102,102,102,151,34,85,0,0,0,3,150,150,150,150,153,105,150,153,150,151,37,85,
|
||||||
|
0,0,0,3,102,102,102,102,102,102,102,102,102,151,85,85,0,0,3,55,116,65,21,85,85,
|
||||||
|
85,85,85,86,150,113,17,0,0,50,34,34,34,34,34,34,34,34,34,85,105,103,119,0,0,52,
|
||||||
|
68,68,68,68,34,34,34,34,34,37,86,153,153,0,0,3,17,17,17,17,68,71,71,119,114,34,
|
||||||
|
85,86,102,0,0,0,51,17,68,17,17,17,17,17,23,34,34,85,85,0,0,0,0,51,17,65,17,68,
|
||||||
|
65,17,17,114,34,34,34,0,0,0,0,0,51,65,20,17,20,17,17,66,34,34,34,0,0,0,0,0,0,51,
|
||||||
|
113,17,17,65,17,20,34,34,34,0,0,0,0,0,0,3,119,119,17,65,17,17,68,68,34,0,0,0,0,
|
||||||
|
0,0,3,119,119,51,113,17,17,17,17,68,0,0,0,0,0,0,0,55,115,3,119,51,17,17,17,17,0,
|
||||||
|
0,0,0,0,0,0,51,48,3,119,48,51,49,17,17,0,0,0,0,0,0,0,0,0,3,51,0,0,3,51,17,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,51
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BIN
assets/weapon_plasmagun.png
Normal file
BIN
assets/weapon_plasmagun.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 711 B |
5
main.c
5
main.c
@ -111,8 +111,9 @@ void SFG_init();
|
|||||||
#define SFG_WEAPON_SHOTGUN 1
|
#define SFG_WEAPON_SHOTGUN 1
|
||||||
#define SFG_WEAPON_MACHINE_GUN 2
|
#define SFG_WEAPON_MACHINE_GUN 2
|
||||||
#define SFG_WEAPON_ROCKER_LAUNCHER 3
|
#define SFG_WEAPON_ROCKER_LAUNCHER 3
|
||||||
|
#define SFG_WEAPON_PLASMAGUN 4
|
||||||
|
|
||||||
#define SFG_WEAPONS_TOTAL 4
|
#define SFG_WEAPONS_TOTAL 5
|
||||||
|
|
||||||
#define SFG_GAME_RESOLUTION_X \
|
#define SFG_GAME_RESOLUTION_X \
|
||||||
(SFG_SCREEN_RESOLUTION_X / SFG_RESOLUTION_SCALEDOWN)
|
(SFG_SCREEN_RESOLUTION_X / SFG_RESOLUTION_SCALEDOWN)
|
||||||
@ -2334,7 +2335,7 @@ void SFG_drawWeapon(int16_t bobOffset)
|
|||||||
|
|
||||||
SFG_blitImage(SFG_weaponImages[SFG_player.weapon],
|
SFG_blitImage(SFG_weaponImages[SFG_player.weapon],
|
||||||
SFG_WEAPON_IMAGE_POSITION_X,
|
SFG_WEAPON_IMAGE_POSITION_X,
|
||||||
SFG_WEAPON_IMAGE_POSITION_Y + bobOffset,
|
SFG_WEAPON_IMAGE_POSITION_Y + bobOffset - 1,
|
||||||
SFG_WEAPON_IMAGE_SCALE);
|
SFG_WEAPON_IMAGE_SCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user