Overview
| Comment: | Add some starting for loading class files (not much yet) |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
e701e7c58fc171ddd4b9c9f305e226c8 |
| User & Date: | user on 2018-04-16 00:14:32.996 |
| Other Links: | manifest | tags |
Context
|
2018-04-20
| ||
| 05:04 | Add class.c and add more instruction names check-in: 06c8b2a469 user: user tags: trunk | |
|
2018-04-16
| ||
| 00:14 | Add some starting for loading class files (not much yet) check-in: e701e7c58f user: user tags: trunk | |
|
2018-04-13
| ||
| 23:26 | Correct the way that picture sizes are decided check-in: 764ce30c41 user: user tags: trunk | |
Changes
Modified heromesh.h
from [756faba25e]
to [f8e6ccfb6c].
| ︙ | ︙ | |||
81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
Uint8 cflags,shape,shovable,collisionLayers;
} Class;
extern Class*classes[0x4000]; // 0 isn't used
extern const char*messages[0x4000]; // index is 256 less than message number
extern int max_animation; // max steps in animation queue (default 32)
extern Sint32 max_volume; // max total volume to allow moving diagonally (default 10000)
// == bindings ==
typedef struct {
char cmd;
union {
int n;
| > > | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
Uint8 cflags,shape,shovable,collisionLayers;
} Class;
extern Class*classes[0x4000]; // 0 isn't used
extern const char*messages[0x4000]; // index is 256 less than message number
extern int max_animation; // max steps in animation queue (default 32)
extern Sint32 max_volume; // max total volume to allow moving diagonally (default 10000)
void load_classes(void);
// == bindings ==
typedef struct {
char cmd;
union {
int n;
|
| ︙ | ︙ |
Added instruc version [edebcdf7b1].
Added instruc.h version [6eea7d367d].
Added instruc.js version [781e18edec].
Modified main.c
from [e8db13f7e3]
to [752b28ab5b].
1 | #if 0 | | | 1 2 3 4 5 6 7 8 9 | #if 0 gcc -s -O2 -o ~/bin/heromesh main.c class.o picture.o bindings.o smallxrm.o sqlite3.o `sdl-config --cflags --libs` -ldl -lpthread exit #endif /* This program is part of Free Hero Mesh and is public domain. */ |
| ︙ | ︙ |
Modified names.js
from [1a4970b05a]
to [42af4f0845].
| ︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
15 = HITBY
16 = DESTROYED
17 = CREATED
18 = POSTINIT
19 = END_TURN
// New
20 = CLEANUP
`.split("\n").map(x=>/^ *([0-9]+) = ([^ ]*) *$/.exec(x)).filter(x=>x);
const standard_sound_names=[];
`
SPLASH
POUR
DOOR
GLASS
| > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
15 = HITBY
16 = DESTROYED
17 = CREATED
18 = POSTINIT
19 = END_TURN
// New
20 = CLEANUP
21 = COLLIDING
22 = COLLIDE
`.split("\n").map(x=>/^ *([0-9]+) = ([^ ]*) *$/.exec(x)).filter(x=>x);
const standard_sound_names=[];
`
SPLASH
POUR
DOOR
GLASS
|
| ︙ | ︙ |