Seminar Computergrafik mit GameEngines: EventQueue (inspiriert von https://gameprogrammingpatterns.com/event-queue.html)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
280 B
18 lines
280 B
2 years ago
|
#pragma once
|
||
|
|
||
|
#include <QPainter>
|
||
|
#include <QVector2D>
|
||
|
|
||
|
class Wall {
|
||
|
float velocity = 300;
|
||
|
public:
|
||
|
bool jumped = false;
|
||
|
bool failed = false;
|
||
|
QVector2D pos;
|
||
|
QSize size;
|
||
|
bool isLost() const;
|
||
|
explicit Wall();
|
||
|
void draw(QPainter &painter) const;
|
||
|
void update(float dTime);
|
||
|
};
|