The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
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.
20 lines
451 B
20 lines
451 B
1 year ago
|
#include "olcPixelGameEngine.h"
|
||
|
#pragma once
|
||
|
|
||
|
struct Emitter{
|
||
|
float frequency;
|
||
|
float timer;
|
||
|
float lastEmit=0;
|
||
|
Emitter(float frequency,float timer);
|
||
|
bool Update(float fElapsedTime);
|
||
|
virtual void Emit()=0;
|
||
|
};
|
||
|
|
||
|
class LightningBoltEmitter:public Emitter{
|
||
|
vf2d startPos,endPos;
|
||
|
bool upperLevel;
|
||
|
void DrawLightningBolt();
|
||
|
void Emit()override;
|
||
|
public:
|
||
|
LightningBoltEmitter(vf2d startPos,vf2d endPos,float frequency,float timer,bool upperLevel);
|
||
|
};
|