mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 23:08:49 -05:00
Add axe
This commit is contained in:
parent
21d0eec086
commit
331a5fe3b2
52
assets.h
52
assets.h
@ -591,7 +591,55 @@ uint8_t SFG_backgrounds[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] =
|
|||||||
SFG_PROGRAM_MEMORY
|
SFG_PROGRAM_MEMORY
|
||||||
uint8_t SFG_weaponImages[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] =
|
uint8_t SFG_weaponImages[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] =
|
||||||
{
|
{
|
||||||
{ // 0, shotgun
|
{ // 0, axe
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,1,1,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
1,1,2,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,1,1,2,3,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,0,0,6,0,175,175,175,175,175,175,175,175,175,1,48,2,3,2,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,0,0,6,6,6,0,175,175,175,175,175,175,
|
||||||
|
175,175,1,48,2,3,2,2,175,175,175,175,175,175,175,175,175,175,0,0,6,6,6,6,6,0,
|
||||||
|
175,175,175,175,175,175,175,1,48,2,3,2,2,48,175,175,175,175,175,175,175,175,0,0,
|
||||||
|
6,6,6,6,6,6,93,0,175,175,175,175,175,175,1,1,2,3,2,2,48,1,175,175,175,175,175,
|
||||||
|
175,175,0,6,6,6,6,6,6,93,93,93,0,175,175,175,175,175,1,52,6,1,2,48,1,1,175,175,
|
||||||
|
175,175,175,175,0,0,5,6,6,6,6,93,93,93,93,93,0,175,175,175,1,1,3,6,5,3,1,1,1,
|
||||||
|
175,175,175,175,175,175,0,5,5,5,6,6,6,93,93,93,93,93,93,0,175,175,1,2,4,6,4,3,
|
||||||
|
50,1,1,175,175,175,175,175,175,0,4,4,5,5,5,6,93,93,93,93,93,93,94,0,175,1,50,3,
|
||||||
|
5,4,3,50,1,175,175,175,175,175,175,175,0,4,4,4,4,4,173,173,93,93,93,93,93,94,94,
|
||||||
|
94,1,2,3,4,3,43,42,1,175,175,175,175,175,175,175,0,4,4,4,4,4,172,172,173,173,93,
|
||||||
|
93,93,94,94,93,93,33,2,4,3,2,2,1,175,175,175,175,175,175,175,0,6,5,5,4,4,172,
|
||||||
|
172,172,172,173,173,93,94,94,93,93,93,33,2,3,2,1,1,175,175,175,175,175,175,175,
|
||||||
|
175,175,0,0,6,6,93,172,172,172,172,172,173,94,94,93,93,93,93,94,1,2,1,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,0,0,94,94,172,172,172,172,93,94,93,
|
||||||
|
93,93,93,93,94,33,1,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,0,94,94,94,93,93,93,172,173,93,93,93,93,93,1,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,0,0,94,94,93,93,172,172,173,93,93,
|
||||||
|
172,172,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,0,94,94,94,172,172,172,172,172,172,172,93,0,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,170,170,94,172,172,
|
||||||
|
171,171,172,93,93,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,0,4,172,170,94,171,172,172,173,173,173,93,0,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,3,81,170,94,94,
|
||||||
|
170,172,172,172,172,171,171,0,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,0,0,0,94,94,93,170,172,172,170,170,170,0,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
0,94,94,93,170,170,170,170,0,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,0,94,94,170,170,170,0,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,0,94,170,170,0,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,0,175,175,
|
||||||
|
175,175,175,175,175,175,175,175,175,175,175
|
||||||
|
},
|
||||||
|
{ // 1, shotgun
|
||||||
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
175,175,175,175,175,175,175,175,1,1,1,1,175,175,175,175,175,175,175,175,175,175,
|
175,175,175,175,175,175,175,175,1,1,1,1,175,175,175,175,175,175,175,175,175,175,
|
||||||
175,175,175,175,175,175,175,175,175,175,175,175,175,175,1,1,1,1,17,100,100,100,
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,1,1,1,1,17,100,100,100,
|
||||||
@ -633,7 +681,7 @@ uint8_t SFG_weaponImages[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] =
|
|||||||
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
175,175
|
175,175
|
||||||
},
|
},
|
||||||
{ // 1, rocket launcher
|
{ // 2, rocket launcher
|
||||||
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
175,175,175,175,175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175,
|
175,175,175,175,175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175,
|
||||||
175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,0,0,5,4,2,2,0,175,175,
|
175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,0,0,5,4,2,2,0,175,175,
|
||||||
|
BIN
assets/weapon_axe.png
Normal file
BIN
assets/weapon_axe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 714 B |
2
main.c
2
main.c
@ -898,7 +898,7 @@ void SFG_init()
|
|||||||
void SFG_playerRotateWeapon(uint8_t next)
|
void SFG_playerRotateWeapon(uint8_t next)
|
||||||
{
|
{
|
||||||
SFG_player.weapon = (SFG_player.weapon + (next * 2 - 1));
|
SFG_player.weapon = (SFG_player.weapon + (next * 2 - 1));
|
||||||
SFG_player.weapon %= 2;
|
SFG_player.weapon %= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user