This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
spaceshooter/cpp/StarfieldBackground.h
2010-07-29 01:46:34 +00:00

26 lines
573 B
C++

#ifndef __STARFIELDBACKGROUND_H__
#define __STARFIELDBACKGROUND_H__
#include <libgame/libgame.h>
class StarfieldBackground : public Actor
{
protected:
SDL_Surface *canvas;
unsigned int lockedFPS;
unsigned int lastTime;
std::vector<Vector> starpoints;
std::vector<Vector> starvelocities;
std::vector<SDL_Color> starcolors;
public:
StarfieldBackground();
~StarfieldBackground();
SDL_Surface *nextFrame();
void lockFPS(unsigned int fps);
void initStarfield(int w, int h);
void update();
};
#endif // __STARFIELDBACKGROUND_H__