CSE2-tweaks/src/CommonDefines.h

46 lines
914 B
C

// THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK.
//
// The original code belongs to Daisuke "Pixel" Amaya.
//
// Modifications and custom code are under the MIT licence.
// See LICENCE.txt for details.
#pragma once
#ifdef _3DS
#define WINDOW_WIDTH 400
#define WINDOW_HEIGHT 240
#else
#define WINDOW_WIDTH 426
#define WINDOW_HEIGHT 240
#endif
#define SPRITE_SCALE 1 // Set to 2 for 2x sprites, 4 for 4x, etc. Must be a power of 2
enum Collisions
{
COLL_LEFT_WALL = 1, // Touching a left wall
COLL_CEILING = 2, // Touching a ceiling
COLL_RIGHT_WALL = 4, // Touching a right wall
COLL_GROUND = 8 // Touching the ground
// To be continued
};
enum Direction
{
DIR_LEFT = 0,
DIR_UP = 1,
DIR_RIGHT = 2,
DIR_DOWN = 3,
DIR_AUTO = 4,
DIR_OTHER = 5
};
struct OTHER_RECT // The original name for this struct is unknown
{
int front;
int top;
int back;
int bottom;
};