Overview
Comment: | Add game.c file (not implemented much) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9d982f06554c0889e750465fa73e1c2f |
User & Date: | user on 2020-10-20 23:21:48 |
Other Links: | manifest | tags |
Context
2020-11-16
| ||
04:51 | Implement properly (hopefully) the mouse button down event in edit.c and game.c check-in: 8119f365c2 user: user tags: trunk | |
2020-10-20
| ||
23:21 | Add game.c file (not implemented much) check-in: 9d982f0655 user: user tags: trunk | |
2019-07-15
| ||
03:27 | Add gameover,key_ignored,changed variables for future use check-in: b39ff189b9 user: user tags: trunk | |
Changes
Modified compile from [076c585a54] to [9cfb5e24a6].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 | - + | #!/bin/bash -- set -e test -f CFLAGS || echo xxx > CFLAGS |
︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | + + | test class.c -nt class.o && bash class.c echo '* function' test function.c -nt function.o && bash function.c echo '* picture' test picture.c -nt picture.o && bash picture.c echo '* exec' test exec.c -nt exec.o && bash exec.c echo '* game' test game.c -nt game.o && bash game.c echo '* edit' test edit.c -nt edit.o && bash edit.c echo '* main' bash main.c echo 'DONE' |
Modified edit.c from [edf43e2b05] to [3d325ead70].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | + + + + | #if 0 gcc ${CFLAGS:--s -O2} -c -Wno-multichar edit.c `sdl-config --cflags` exit #endif /* This program is part of Free Hero Mesh and is public domain. */ #include "SDL.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sqlite3.h" #include "smallxrm.h" |
︙ |
Modified exec.c from [4a41b22985] to [5cd8b5f27b].
︙ | |||
222 223 224 225 226 227 228 229 230 | 222 223 224 225 226 227 228 229 230 231 232 233 | + + + | const char*execute_turn(int key) { if(setjmp(my_env)) return my_error; changed=0; key_ignored=0; lastimage_processing=0; vstackptr=0; if(key_ignored && changed) return "Invalid use of IgnoreKey"; if(key_ignored && changed) return "Invalid use of IgnoreKey"; return 0; } |
Added game.c version [39a9a6de05].