mirror of
https://github.com/Pixinn/rogue-like.git
synced 2024-09-23 18:55:44 +00:00
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
|
; Copyright (C) 2021 Christophe Meneboeuf <christophe@xtof.info>
|
||
|
;
|
||
|
; This program is free software: you can redistribute it and/or modify
|
||
|
; it under the terms of the GNU General Public License as published by
|
||
|
; the Free Software Foundation, either version 3 of the License, or
|
||
|
; (at your option) any later version.
|
||
|
;
|
||
|
; This program is distributed in the hope that it will be useful,
|
||
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
; GNU General Public License for more details.
|
||
|
;
|
||
|
; You should have received a copy of the GNU General Public License
|
||
|
; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; typedef struct
|
||
|
; {
|
||
|
; uint8_t level_nr;
|
||
|
; uint8_t is_built;
|
||
|
; uint8_t seed[4]; //< seed used to build the level
|
||
|
; uint8_t size; //< eLEVELSIZE
|
||
|
; coords_t pos_player_enter; //< position of player when entering the level (x,y)
|
||
|
; uint8_t actors[AA_NB]; //< number of reactive actors of each kind in the level
|
||
|
; }
|
||
|
; level_conf_t;
|
||
|
|
||
|
; BEWARE: NB_LEVELS * SIZEOF_CONF_LEVEL shall not be > 256
|
||
|
.define SIZEOF_CONF_LEVEL 12
|
||
|
.define NB_LEVELS 5
|
||
|
|
||
|
.enum LEVELSIZE
|
||
|
TINY = 20
|
||
|
SMALL = 24
|
||
|
NORMAL = 32
|
||
|
BIG = 48
|
||
|
HUGE = 64
|
||
|
.endenum
|
||
|
|
||
|
|