fixed much stuff with bad usage of constructor mixed with virtual functions in gl stuff. added model loading with assimp.
This commit is contained in:
parent
aedda9d48e
commit
0105bfe430
17 changed files with 402 additions and 175 deletions
|
|
@ -13,7 +13,9 @@ namespace game {
|
|||
// TODO: idea
|
||||
// shoot multiple rockets at once or from different positions after
|
||||
// level up / upgrade ...
|
||||
Missile *missile = new Missile(player, player->ship->position, util::deg2rad(m_angle), player->speed);
|
||||
|
||||
// angles are supplied in degrees and are CCW
|
||||
Missile *missile = new Missile(player, player->ship->position, -util::deg2rad(m_angle), player->speed);
|
||||
|
||||
Trace *trace = new Trace(missile);
|
||||
missile->trace = trace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue