-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapi.h
29 lines (23 loc) · 1005 Bytes
/
api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef L8_API_H_
#define L8_API_H_
#include "s7.h"
//Screen dimension constants
#define L8_WIDTH 320
#define L8_HEIGHT 200
#define SCREEN_WIDTH (L8_WIDTH * 2)
#define SCREEN_HEIGHT (L8_HEIGHT * 2)
#define SCREEN_FPS 60
#define SCREEN_TICKS_PER_FRAME (1000 / SCREEN_FPS)
extern s7_pointer l8_time(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_pix(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_spr(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_printxy(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_define_sprite(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_define_sfx(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_sfx(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_rect(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_rectb(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_line(s7_scheme *sc, s7_pointer args);
extern s7_pointer l8_cls(s7_scheme *sc, s7_pointer args);
extern void initMachineLisp(s7_scheme *s7);
#endif // L8_API_H_