# maingame.c File Reference

`#include <allegro5/allegro5.h>`
`#include <allegro5/allegro_font.h>`
`#include <allegro5/allegro_primitives.h>`
`#include "chipmunk.h"`
`#include <stdio.h>`
`#include "../include/commons.h"`
`#include "../include/sprites.h"`
`#include "../include/render.h"`
`#include "../include/physcol.h"`
`#include "../include/progressbar.h"`
`#include "../include/options.h"`
`#include "../include/howtoplay.h"`
`#include "../include/highscores.h"`
`#include "../include/pause.h"`
`#include "../include/gameover.h"`
`#include "../include/enemystore.h"`
`#include "../include/maingame.h"`

Go to the source code of this file.

## Functions
void | update (void)
void | update_stickman (void)
void | update_lives (void)
void | update_score (ALLEGRO_BITMAP *image, float x, float y, int nflags, ALLEGRO_COLOR color)
void | collision_end_win (cpSpace *Space, void *obj, void *unused)
void | collision_end_lose (cpSpace *Space, void *obj, void *unused)
void | update_survivaltime (ALLEGRO_BITMAP *image, float x, float y, int nflags, ALLEGRO_COLOR color)
void | update_ameans (SPRITESPTR amean)
void | update_brickwall (SPRITESPTR brickwall)
void | update_clamp (SPRITESPTR clamp)
void | update_steelwall (SPRITESPTR steelwall)
void | update_fist (SPRITESPTR fist)
void | update_spikes (SPRITESPTR spikes)
void | update_raw (SPRITESPTR raw)
void | update_plant (SPRITESPTR plant)
void | update_clouds (void)
void | update_ground (void)
void | update_background (void)
void | update_sprites (void *ptr, void *unused)
void | logic (void)
void | maingame_cleanup (void)

## Detailed Description

Updates the game state every frame, performs all animations and game logic

Definition in file maingame.c.