Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Experimento con emscripten y SDL

1178 views
1
#ifndef BACKGROUND_ACTOR_H
2
#define BACKGROUND_ACTOR_H
3
#include "engine.h"
4
5
typedef struct background_actor background_actor;
6
7
struct background_actor {
8
actor a;
9
sprite background_sprite;
10
11
TTF_Font *font;
12
SDL_Texture *status_bar;
13
SDL_Texture *status_text;
14
};
15
16
background_actor *background_actor_init(background_actor *bg);
17
background_actor *background_actor_update_scoreboard(background_actor *bg);
18
#endif
19
20
21