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:
andrew
2010-07-29 01:46:34 +00:00
commit 6a0f35c88a
110 changed files with 24350 additions and 0 deletions

25
cpp/StarfieldBackground.h Normal file
View 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__