46 lines
901 B
C++
46 lines
901 B
C++
#include <iostream>
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
#include <vector>
|
|
#include <array>
|
|
#include <list>
|
|
#include <cstdlib>
|
|
#include <algorithm>
|
|
#include <string>
|
|
|
|
#include <SDL_image.h>
|
|
#include "sdl2-gfx/SDL2_gfxPrimitives.h"
|
|
#include "sdl2-gfx/SDL2_rotozoom.h"
|
|
|
|
// #if defined(__LINUX__) or defined(__MINGW32__)
|
|
// #define GL_GLEXT_PROTOTYPES
|
|
// #include <GL/gl.h>
|
|
// #elif defined(__ANDROID__)
|
|
// #include <GLES/gl.h>
|
|
// #elif defined(__EMSCRIPTEN__)
|
|
// #include <GLES2/gl2.h>
|
|
// #elif defined(__APPLE__)
|
|
// #include <OpenGL/gl3.h>
|
|
// #endif
|
|
|
|
#define GLM_ENABLE_EXPERIMENTAL
|
|
#include "glm/gtx/string_cast.hpp"
|
|
#include "glm/gtx/transform.hpp"
|
|
#include "glm/gtc/matrix_transform.hpp"
|
|
|
|
#include "filesystem.hpp"
|
|
#include "Game.hpp"
|
|
#include "Node.hpp"
|
|
#include "Location.hpp"
|
|
#include "Sprite.hpp"
|
|
|
|
struct Mushroom : Sprite
|
|
{
|
|
|
|
int direction = 1;
|
|
|
|
Mushroom (Node*);
|
|
void update();
|
|
|
|
};
|