added machine gun and pistol reload animations

This commit is contained in:
Ethan Adams 2024-08-20 13:43:52 -04:00
parent 846f85f1f6
commit d22757fd93
7 changed files with 8 additions and 4 deletions

View file

@ -5,6 +5,6 @@
</animation> </animation>
<animation name="machine_gun_reload_anim" type="reload"> <animation name="machine_gun_reload_anim" type="reload">
<FPS>2</FPS> <FPS>2</FPS>
<sprite path="sprites/pistolAtlas256.png" frameSize="256.0"/> <sprite path="sprites/machineGunAtlasReload256.png" frameSize="256.0"/>
</animation> </animation>
</animations> </animations>

View file

@ -3,4 +3,8 @@
<FPS>4</FPS> <FPS>4</FPS>
<sprite path="sprites/pistolAtlas256.png" frameSize="256.0"/> <sprite path="sprites/pistolAtlas256.png" frameSize="256.0"/>
</animation> </animation>
<animation name="pistol_reload_anim" type="reload">
<FPS>8</FPS>
<sprite path="sprites/pistolAtlasReload256.png" frameSize="256.0"/>
</animation>
</animations> </animations>

View file

@ -34,7 +34,7 @@
</spriteids> </spriteids>
</map> </map>
<entities> <entities>
<player x="7" y="5" weapon="shotGun"> <player x="7" y="5" weapon="pistolGun">
<animation name="player_anim"/> <animation name="player_anim"/>
</player> </player>
<entity x="10" y="3" weapon="pistolGun"> <entity x="10" y="3" weapon="pistolGun">

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

View file

@ -42,8 +42,8 @@
<weapon name="pistolGun" fireSpeed="750.0" maxAmmo="512" clipSize="21"> <weapon name="pistolGun" fireSpeed="750.0" maxAmmo="512" clipSize="21">
<animation name="pistol_anim"> <animation name="pistol_anim">
<size x="30.0" y="30.0"/> <size x="55.0" y="55.0"/>
<offset x="0.0" y="0.0"/> <offset x="-30.0" y="0.0"/>
</animation> </animation>
<bullet sprite="sprites/bullet.png"> <bullet sprite="sprites/bullet.png">
<spread>5.0</spread> <spread>5.0</spread>