Chair Legacy by rtmrn
In Chair Legacy you play an old chair maker, that has made some enemys. Defeat your enemys by hitting them with your chair.
Controls:
Wasd / arrow keys for movement
Space for hitting
Linux only so far, you will need to build from source and have the sfml and box2d libraries.
Controls:
Wasd / arrow keys for movement
Space for hitting
Linux only so far, you will need to build from source and have the sfml and box2d libraries.
| Source | https://github.com/raatmarien/LudumDare32 |
| Original URL | https://ludumdare.com/compo/ludum-dare-32/?action=preview&uid=47465 |
g++ -c -o player.o player.cpp
player.cpp: In member function ‘void Player::move(bool)’:
player.cpp:125:52: error: no matching function for call to ‘b2Body::ApplyForce(b2Vec2&, const b2Vec2&, bool)’
, body->GetWorldCenter(), true);
^
player.cpp:125:52: note: candidate is:
In file included from /usr/include/Box2D/Box2D.h:48:0,
from player.h:20,
from player.cpp:19:
/usr/include/Box2D/Dynamics/b2Body.h:745:13: note: void b2Body::ApplyForce(const b2Vec2&, const b2Vec2&)
inline void b2Body::ApplyForce(const b2Vec2& force, const b2Vec2& point)
^
/usr/include/Box2D/Dynamics/b2Body.h:745:13: note: candidate expects 2 arguments, 3 provided
player.cpp: In member function ‘void Player::turn(bool)’:
player.cpp:132:50: error: no matching function for call to ‘b2Body::ApplyTorque(float, bool)’
* directionMultiplier, true);
^
player.cpp:132:50: note: candidate is:
In file included from /usr/include/Box2D/Box2D.h:48:0,
from player.h:20,
from player.cpp:19:
/usr/include/Box2D/Dynamics/b2Body.h:776:13: note: void b2Body::ApplyTorque(float32)
inline void b2Body::ApplyTorque(float32 torque)
^
/usr/include/Box2D/Dynamics/b2Body.h:776:13: note: candidate expects 1 argument, 2 provided
make: *** [player.o] Error 1
Looks like it was your first LD so be proud on your result and learn from your mistakes for the next time.