More moving stuff around
git-svn-id: https://aklabs.dyndns.org/svn/aklabs/trunk/games/spaceshooter@52 eb184899-6090-47d4-a65b-558f62f6ea1c
This commit is contained in:
25
cpp/StarfieldBackground.h
Normal file
25
cpp/StarfieldBackground.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#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__
|
||||
Reference in New Issue
Block a user