You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
443 B
C++
21 lines
443 B
C++
#pragma once
|
|
#include "game_element.h"
|
|
#include <allegro5/allegro_primitives.h>
|
|
#include "enums.h"
|
|
|
|
//Background elements, used to salvage parallax scrolling attempts
|
|
class Star : public GameElement {
|
|
public:
|
|
BgLayer layer;
|
|
|
|
Star();
|
|
|
|
//Implement inhereted virtuals
|
|
void reset_pos(float x, float y);
|
|
void move(Direction dir);
|
|
void draw();
|
|
Hitbox get_hitbox();
|
|
|
|
//Unique to element
|
|
void set_layer(BgLayer _layer);
|
|
}; |