diff options
author | tcsullivan <tullivan99@gmail.com> | 2018-12-31 18:00:17 -0500 |
---|---|---|
committer | tcsullivan <tullivan99@gmail.com> | 2018-12-31 18:00:17 -0500 |
commit | 22bf0a105e18a0e4541de6f5742f2c8547791bbe (patch) | |
tree | f3339b1e2bde2f8991aec59ae9f8fadc6b88d5b9 | |
parent | 3ef0e74749373d4cfa2a9f8cda9b536b77d8b4cd (diff) |
changes
-rw-r--r-- | assets/NPC.png | bin | 555 -> 0 bytes | |||
-rw-r--r-- | assets/NPC.png.bak | bin | 473 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk.png | bin | 487 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk0.png | bin | 447 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk2.png | bin | 493 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk3.png | bin | 487 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk4.png | bin | 462 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk5.png | bin | 490 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk6.png | bin | 476 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk7.png | bin | 466 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk8.png | bin | 468 -> 0 bytes | |||
-rw-r--r-- | assets/NPC_Walk9.png | bin | 468 -> 0 bytes | |||
-rw-r--r-- | assets/bgTrashWaves.png | bin | 1454217 -> 0 bytes | |||
-rw-r--r-- | assets/bgWoodTile.png | bin | 75181 -> 0 bytes | |||
-rw-r--r-- | assets/blankNormal.png | bin | 172 -> 0 bytes | |||
-rw-r--r-- | assets/cat_normal.png | bin | 820 -> 0 bytes | |||
-rw-r--r-- | assets/cat_normal_old.png | bin | 684 -> 0 bytes | |||
-rw-r--r-- | assets/effects/bowhit.gif | bin | 0 -> 494 bytes | |||
-rw-r--r-- | assets/mountain.png | bin | 2197 -> 0 bytes | |||
-rw-r--r-- | assets/music/embark_bits.wav | bin | 0 -> 7112794 bytes | |||
-rw-r--r-- | assets/nug.png | bin | 20875 -> 0 bytes | |||
-rw-r--r-- | assets/skirl.png | bin | 436 -> 478 bytes | |||
-rw-r--r-- | config/items.xml | 2 | ||||
-rw-r--r-- | include/systems/lua.hpp | 2 | ||||
-rw-r--r-- | src/attack.cpp | 4 | ||||
-rw-r--r-- | xcf/bowhit.xcf | bin | 0 -> 3028 bytes | |||
-rw-r--r-- | xcf/skirl.xcf | bin | 0 -> 1759 bytes |
27 files changed, 4 insertions, 4 deletions
diff --git a/assets/NPC.png b/assets/NPC.png Binary files differdeleted file mode 100644 index 7c46dce..0000000 --- a/assets/NPC.png +++ /dev/null diff --git a/assets/NPC.png.bak b/assets/NPC.png.bak Binary files differdeleted file mode 100644 index fdebfa9..0000000 --- a/assets/NPC.png.bak +++ /dev/null diff --git a/assets/NPC_Walk.png b/assets/NPC_Walk.png Binary files differdeleted file mode 100644 index c342ec3..0000000 --- a/assets/NPC_Walk.png +++ /dev/null diff --git a/assets/NPC_Walk0.png b/assets/NPC_Walk0.png Binary files differdeleted file mode 100644 index 087ff25..0000000 --- a/assets/NPC_Walk0.png +++ /dev/null diff --git a/assets/NPC_Walk2.png b/assets/NPC_Walk2.png Binary files differdeleted file mode 100644 index 37273cc..0000000 --- a/assets/NPC_Walk2.png +++ /dev/null diff --git a/assets/NPC_Walk3.png b/assets/NPC_Walk3.png Binary files differdeleted file mode 100644 index 79c8401..0000000 --- a/assets/NPC_Walk3.png +++ /dev/null diff --git a/assets/NPC_Walk4.png b/assets/NPC_Walk4.png Binary files differdeleted file mode 100644 index 8de788f..0000000 --- a/assets/NPC_Walk4.png +++ /dev/null diff --git a/assets/NPC_Walk5.png b/assets/NPC_Walk5.png Binary files differdeleted file mode 100644 index a2fc130..0000000 --- a/assets/NPC_Walk5.png +++ /dev/null diff --git a/assets/NPC_Walk6.png b/assets/NPC_Walk6.png Binary files differdeleted file mode 100644 index 05e65d9..0000000 --- a/assets/NPC_Walk6.png +++ /dev/null diff --git a/assets/NPC_Walk7.png b/assets/NPC_Walk7.png Binary files differdeleted file mode 100644 index 20baa62..0000000 --- a/assets/NPC_Walk7.png +++ /dev/null diff --git a/assets/NPC_Walk8.png b/assets/NPC_Walk8.png Binary files differdeleted file mode 100644 index 42e4750..0000000 --- a/assets/NPC_Walk8.png +++ /dev/null diff --git a/assets/NPC_Walk9.png b/assets/NPC_Walk9.png Binary files differdeleted file mode 100644 index 01a1bf7..0000000 --- a/assets/NPC_Walk9.png +++ /dev/null diff --git a/assets/bgTrashWaves.png b/assets/bgTrashWaves.png Binary files differdeleted file mode 100644 index 6a177cd..0000000 --- a/assets/bgTrashWaves.png +++ /dev/null diff --git a/assets/bgWoodTile.png b/assets/bgWoodTile.png Binary files differdeleted file mode 100644 index 5b631bf..0000000 --- a/assets/bgWoodTile.png +++ /dev/null diff --git a/assets/blankNormal.png b/assets/blankNormal.png Binary files differdeleted file mode 100644 index cff3ee7..0000000 --- a/assets/blankNormal.png +++ /dev/null diff --git a/assets/cat_normal.png b/assets/cat_normal.png Binary files differdeleted file mode 100644 index 59aaee8..0000000 --- a/assets/cat_normal.png +++ /dev/null diff --git a/assets/cat_normal_old.png b/assets/cat_normal_old.png Binary files differdeleted file mode 100644 index c3ed4aa..0000000 --- a/assets/cat_normal_old.png +++ /dev/null diff --git a/assets/effects/bowhit.gif b/assets/effects/bowhit.gif Binary files differnew file mode 100644 index 0000000..0afa420 --- /dev/null +++ b/assets/effects/bowhit.gif diff --git a/assets/mountain.png b/assets/mountain.png Binary files differdeleted file mode 100644 index 7039174..0000000 --- a/assets/mountain.png +++ /dev/null diff --git a/assets/music/embark_bits.wav b/assets/music/embark_bits.wav Binary files differnew file mode 100644 index 0000000..75ad5f2 --- /dev/null +++ b/assets/music/embark_bits.wav diff --git a/assets/nug.png b/assets/nug.png Binary files differdeleted file mode 100644 index 3bcf1ed..0000000 --- a/assets/nug.png +++ /dev/null diff --git a/assets/skirl.png b/assets/skirl.png Binary files differindex 263607b..d31e15f 100644 --- a/assets/skirl.png +++ b/assets/skirl.png diff --git a/config/items.xml b/config/items.xml index c613c4e..3819b1e 100644 --- a/config/items.xml +++ b/config/items.xml @@ -37,7 +37,7 @@ </attack> </item> <item name="Hunters Bow" type="Bow" drawOffset="5,16" maxStackSize="1" sound="assets/sounds/shortSwing.wav" sprite="assets/items/bow.png" cooldown="600"> - <attack effect="assets/effects/starAttack.gif"> + <attack effect="assets/effects/bowhit.gif"> effect = function() flash(255, 0, 255) damage(4) diff --git a/include/systems/lua.hpp b/include/systems/lua.hpp index cb859ad..b9fa684 100644 --- a/include/systems/lua.hpp +++ b/include/systems/lua.hpp @@ -2,7 +2,7 @@ #define SYSTEMS_LUA_HPP_ #include <string> -#include <lua.hpp> +#include <lua5.3/lua.hpp> #include <tuple> #include <vector> diff --git a/src/attack.cpp b/src/attack.cpp index 41fb77c..fe32dad 100644 --- a/src/attack.cpp +++ b/src/attack.cpp @@ -54,7 +54,7 @@ namespace lua { auto h = entity->component<Health>(); h->health -= d; if (h->ouch != nullptr) - Mix_PlayChannel(0, h->ouch, 0); + Mix_PlayChannel(1, h->ouch, 0); return 0; } } @@ -140,7 +140,7 @@ void AttackSystem::render(void) Render::worldShader.enable(); for (auto& ae : effects) { ae.effect(ae.counter / RATE); // bind current frame - auto dim = ae.effect.getTextureDim(); + auto dim = ae.effect.getTextureDim() * game::HLINE; auto s = ae.pos - (dim / 2); GLfloat verts[] = { s.x, s.y, z, 0, 0, diff --git a/xcf/bowhit.xcf b/xcf/bowhit.xcf Binary files differnew file mode 100644 index 0000000..0e6d926 --- /dev/null +++ b/xcf/bowhit.xcf diff --git a/xcf/skirl.xcf b/xcf/skirl.xcf Binary files differnew file mode 100644 index 0000000..eefbb80 --- /dev/null +++ b/xcf/skirl.xcf |