Super Derpy: Muffin Attack
 All Classes Files Functions Variables Enumerations Macros
Public Attributes
Level Struct Reference

Resources used by Level state. More...

#include <main.h>

List of all members.

Public Attributes

int current_level
float speed
float speed_modifier
float bg_pos
float st_pos
float fg_pos
float cl_pos
float derpy_x
float derpy_y
float derpy_angle
float hp
bool handle_input
bool failed
float meter_alpha
int sheet_rows
int sheet_cols
int sheet_pos
int sheet_blanks
float sheet_tmp
float sheet_speed
float sheet_speed_modifier
float sheet_scale
ALLEGRO_FONT * letter_font
ALLEGRO_SAMPLE * sample
ALLEGRO_SAMPLE_INSTANCE * music
unsigned int music_pos
ALLEGRO_BITMAP * owl
ALLEGRO_BITMAP * background
ALLEGRO_BITMAP * stage
ALLEGRO_BITMAP * foreground
ALLEGRO_BITMAP * clouds
ALLEGRO_BITMAP * welcome
ALLEGRO_BITMAP ** derpy_sheet
ALLEGRO_BITMAP * derpy
ALLEGRO_BITMAP * meter_bmp
ALLEGRO_BITMAP * meter_image
ALLEGRO_BITMAP * letter
bool debug_show_sprite_frames
struct Spritesheetderpy_sheets
struct Spritesheetpony_sheets
struct {
   ALLEGRO_BITMAP *   pie1
   ALLEGRO_BITMAP *   pie2
   ALLEGRO_BITMAP *   muffin
   ALLEGRO_BITMAP *   badmuffin
   ALLEGRO_BITMAP *   cherry
   ALLEGRO_BITMAP *   pig
   ALLEGRO_BITMAP *   screwball
obst_bmps
struct Obstacleobstacles
struct Moonwalk moonwalk

Detailed Description

Resources used by Level state.


Member Data Documentation

ALLEGRO_BITMAP* Level::background

Bitmap of the background layer of the scene.

ALLEGRO_BITMAP* Level::badmuffin

Bad muffin bitmap.

float Level::bg_pos

Position of the background layer of the scene.

ALLEGRO_BITMAP* Level::cherry

Cherry bitmap.

float Level::cl_pos

Position of the clouds layer of the scene.

ALLEGRO_BITMAP* Level::clouds

Bitmap of the clouds layer of the scene.

int Level::current_level

Level number.

bool Level::debug_show_sprite_frames

When true, displays colorful borders around spritesheets and their active areas.

ALLEGRO_BITMAP* Level::derpy

Derpy sprite.

float Level::derpy_angle

Angle of Derpy sprite on screen (radians).

ALLEGRO_BITMAP** Level::derpy_sheet

Pointer to active Derpy sprite sheet.

struct Spritesheet* Level::derpy_sheets

List of sprite sheets of Derpy character.

float Level::derpy_x

Horizontal position of Derpy (0-1).

float Level::derpy_y

Vertical position of Derpy (0-1).

bool Level::failed

Indicates if player failed level.

float Level::fg_pos

Position of the foreground layer of the scene.

ALLEGRO_BITMAP* Level::foreground

Bitmap of the foreground layer of the scene.

bool Level::handle_input

When false, player looses control over Derpy.

float Level::hp

Player health points (0-1).

ALLEGRO_BITMAP* Level::letter

Bitmap with letter from Twilight.

ALLEGRO_FONT* Level::letter_font

Font used in letter from Twilight on first level.

float Level::meter_alpha

Alpha level of HP meter.

ALLEGRO_BITMAP* Level::meter_bmp

Bitmap of the HP meter.

ALLEGRO_BITMAP* Level::meter_image

Derpy image used in the HP meter.

struct Moonwalk Level::moonwalk

Moonwalk placeholder data.

ALLEGRO_BITMAP* Level::muffin

Good muffin bitmap.

ALLEGRO_SAMPLE_INSTANCE* Level::music

Sample instance with background music.

unsigned int Level::music_pos

Position of sample instance. Used when pausing game.

struct { ... } Level::obst_bmps

Obstacle bitmaps.

struct Obstacle* Level::obstacles

List of obstacles being currently rendered.

ALLEGRO_BITMAP* Level::owl

Owlicious bitmap.

ALLEGRO_BITMAP* Level::pie1

Pie bitmap.

ALLEGRO_BITMAP* Level::pie2

Pie bitmap (crossed).

ALLEGRO_BITMAP* Level::pig

Pig spritesheet bitmap.

struct Spritesheet* Level::pony_sheets

List of sprite sheets of character rescued by Derpy.

ALLEGRO_SAMPLE* Level::sample

Sample with background music.

ALLEGRO_BITMAP* Level::screwball

Screwball spritesheet bitmap.

int Level::sheet_blanks

Number of blank frames at the end of current spritesheet.

int Level::sheet_cols

Number of cols in current spritesheet.

int Level::sheet_pos

Frame position in current spritesheet.

int Level::sheet_rows

Number of rows in current spritesheet.

float Level::sheet_scale

Scale modifier of current spritesheet.

float Level::sheet_speed

Current speed of Derpy animation.

float Level::sheet_speed_modifier

Modifier of speed, specified by current spritesheet.

float Level::sheet_tmp

Temporary counter used to slow down spritesheet animation.

float Level::speed

Speed of the player.

float Level::speed_modifier

Modifier of the speed of the player.

float Level::st_pos

Position of the stage layer of the scene.

ALLEGRO_BITMAP* Level::stage

Bitmap of the stage layer of the scene.

ALLEGRO_BITMAP* Level::welcome

Bitmap of the welcome text (for instance "Level 1: Fluttershy").


The documentation for this struct was generated from the following file: