diff options
author | rodri <rgl@antares-labs.eu> | 2023-03-04 23:32:47 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-03-04 23:32:47 +0000 |
commit | 941d146cea7d0c2ce872e599622a5c9e01d37fe2 (patch) | |
tree | 0fe67a2d7f4f906b1e33acee2b1d70d2e03e1fa5 /dat.h | |
parent | 9712ec712cc6a57d416ef2b1e86d15ef161016df (diff) | |
download | musw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.tar.gz musw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.tar.bz2 musw-941d146cea7d0c2ce872e599622a5c9e01d37fe2.zip |
implemented client reconnection loop.
currently not working. there seems to be a problem with 9front's udp stack. needs investigation.
Diffstat (limited to 'dat.h')
-rw-r--r-- | dat.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -57,6 +57,8 @@ enum { typedef struct VModel VModel; typedef struct Sprite Sprite; +typedef struct Keymap Keymap; +typedef struct Scene Scene; typedef struct Particle Particle; typedef struct Bullet Bullet; typedef struct Ship Ship; @@ -99,6 +101,22 @@ struct Sprite void (*draw)(Sprite*, Image*, Point); }; +struct Keymap +{ + Rune key; + KeyOp op; +}; + +struct Scene +{ + char *title; + int state; + + Scene *(*δ)(Scene*); + void (*step)(Scene*); + void (*draw)(Scene*); +}; + struct Particle { Point2 p, v; |