layout de TITOL
This commit is contained in:
@@ -33,8 +33,7 @@ class Nau {
|
||||
Punt get_velocitat_vector() const {
|
||||
return {
|
||||
velocitat_ * std::cos(angle_ - Constants::PI / 2.0f),
|
||||
velocitat_ * std::sin(angle_ - Constants::PI / 2.0f)
|
||||
};
|
||||
velocitat_ * std::sin(angle_ - Constants::PI / 2.0f)};
|
||||
}
|
||||
|
||||
// Setters
|
||||
@@ -55,7 +54,7 @@ class Nau {
|
||||
float angle_; // Angle d'orientació
|
||||
float velocitat_; // Velocitat (px/s)
|
||||
bool esta_tocada_;
|
||||
float brightness_; // Factor de brillantor (0.0-1.0)
|
||||
float brightness_; // Factor de brillantor (0.0-1.0)
|
||||
float invulnerable_timer_; // 0.0f = vulnerable, >0.0f = invulnerable
|
||||
|
||||
void aplicar_fisica(float delta_time);
|
||||
|
||||
Reference in New Issue
Block a user