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.
33 lines
893 B
33 lines
893 B
#pragma once
|
|
#include "olcPixelGameEngine.h"
|
|
#include "Animation.h"
|
|
#include "olcUTIL_Animate2D.h"
|
|
#include "Monster.h"
|
|
#include "olcPGEX_TransformedView.h"
|
|
#include "Player.h"
|
|
#include "olcUTIL_Camera2D.h"
|
|
#include "Effect.h"
|
|
|
|
class Crawler : public olc::PixelGameEngine
|
|
{
|
|
const vi2d WORLD_SIZE={64,8};
|
|
Camera2D camera;
|
|
Player player;
|
|
Renderable GFX_Pl_Sheet,GFX_Slime_Sheet,GFX_Circle,
|
|
GFX_Effect_GroundSlam_Back,GFX_Effect_GroundSlam_Front;
|
|
std::vector<Effect>foregroundEffects,backgroundEffects;
|
|
|
|
public:
|
|
Crawler();
|
|
|
|
public:
|
|
TileTransformedView view;
|
|
bool OnUserCreate() override;
|
|
bool OnUserUpdate(float fElapsedTime) override;
|
|
void InitializeAnimations();
|
|
void HandleUserInput(float fElapsedTime);
|
|
void UpdateCamera(float fElapsedTime);
|
|
void UpdateEffects(float fElapsedTime);
|
|
void RenderWorld(float fElapsedTime);
|
|
void AddEffect(Effect foreground,Effect background);
|
|
}; |