philstrahl 2015-04-20 18:49
Can you post a compiled version please? I don't have a C++ build-system set up ;)
Foon → Ludum Dare Explorer → LD32 → Chair Legacy
By rtmrn
| Category | Rank | Score | Count | |
|---|---|---|---|---|
| Coolness | 2387 | 10 |
Can you post a compiled version please? I don't have a C++ build-system set up ;)
Unfortunately did not compile with my Box2D 2.2.1-5.fc20:
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
Cool graphics! :3
The controls are strange but the graphics are nice. You should really wrap it up (link the libraries statically) and upload a zip.
Looks like it was your first LD so be proud on your result and learn from your mistakes for the next time.