#include "libgame/libgame.h"
+#include "conf_gfx.h"
+#include "conf_snd.h"
+
+
#define WIN_XSIZE 672
#define WIN_YSIZE 560
#define EL_WALL 2
#define EL_WALL_CRUMBLED 3
#define EL_ROCK 4
-
-#define EL_UNUSED_5 5
-
+#define EL_KEY_OBSOLETE 5 /* obsolete; mapped to EL_KEY1 */
#define EL_EMERALD 6
#define EL_EXIT_CLOSED 7
-#define EL_PLAYER 8
+#define EL_PLAYER_OBSOLETE 8 /* obsolete; mapped to EL_PLAYER1 */
#define EL_BUG 9
#define EL_SPACESHIP 10
#define EL_YAMYAM 11
#define EL_EM_KEY2 (EL_FIRST_RUNTIME_REAL + 10)
#define EL_EM_KEY3 (EL_FIRST_RUNTIME_REAL + 11)
#define EL_EM_KEY4 (EL_FIRST_RUNTIME_REAL + 12)
-#define EL_DYNABOMB_ACTIVE_1 (EL_FIRST_RUNTIME_REAL + 13)
-#define EL_DYNABOMB_ACTIVE_2 (EL_FIRST_RUNTIME_REAL + 14)
-#define EL_DYNABOMB_ACTIVE_3 (EL_FIRST_RUNTIME_REAL + 15)
-#define EL_DYNABOMB_ACTIVE_4 (EL_FIRST_RUNTIME_REAL + 16)
+#define EL_DYNABOMB_PLAYER1_ACTIVE (EL_FIRST_RUNTIME_REAL + 13)
+#define EL_DYNABOMB_PLAYER2_ACTIVE (EL_FIRST_RUNTIME_REAL + 14)
+#define EL_DYNABOMB_PLAYER3_ACTIVE (EL_FIRST_RUNTIME_REAL + 15)
+#define EL_DYNABOMB_PLAYER4_ACTIVE (EL_FIRST_RUNTIME_REAL + 16)
#define EL_SWITCHGATE_OPENING (EL_FIRST_RUNTIME_REAL + 17)
#define EL_SWITCHGATE_CLOSING (EL_FIRST_RUNTIME_REAL + 18)
#define EL_TIMEGATE_OPENING (EL_FIRST_RUNTIME_REAL + 19)
#define EL_AMOEBA_CREATING (EL_FIRST_RUNTIME_UNREAL + 5)
#define EL_AMOEBA_SHRINKING (EL_FIRST_RUNTIME_UNREAL + 6)
#define EL_WALL_GROWING_ACTIVE (EL_FIRST_RUNTIME_UNREAL + 7)
-#define EL_DRAGON_FIRE (EL_FIRST_RUNTIME_UNREAL + 8)
+#define EL_FLAMES (EL_FIRST_RUNTIME_UNREAL + 8)
#define EL_PLAYER_IS_LEAVING (EL_FIRST_RUNTIME_UNREAL + 9)
#define EL_QUICKSAND_FILLING (EL_FIRST_RUNTIME_UNREAL + 10)
#define EL_MAGIC_WALL_FILLING (EL_FIRST_RUNTIME_UNREAL + 11)
/* values for animation action types */
-#define GFX_ACTION_UNKNOWN 0
-#define GFX_ACTION_DEFAULT 1
-#define GFX_ACTION_WAITING 2
-#define GFX_ACTION_FALLING 3
-#define GFX_ACTION_MOVING 4
-#define GFX_ACTION_DIGGING 5
+#define GFX_ACTION_DEFAULT 0
+#define GFX_ACTION_WAITING 1
+#define GFX_ACTION_FALLING 2
+#define GFX_ACTION_MOVING 3
+#define GFX_ACTION_DIGGING 4
+#define GFX_ACTION_SNAPPING 5
#define GFX_ACTION_COLLECTING 6
#define GFX_ACTION_PUSHING 7
#define GFX_ACTION_PASSING 8
#define GFX_ACTION_CRACKING 10
#define GFX_ACTION_ACTIVATING 11
#define GFX_ACTION_EATING 12
-#define GFX_ACTION_OTHER 13
+#define GFX_ACTION_ATTACKING 13
+#define GFX_ACTION_GROWING 14
+#define GFX_ACTION_OTHER 15
-#define NUM_GFX_ACTIONS 14
-#define NUM_GFX_ACTIONS_MAPPED 7
+#define NUM_GFX_ACTIONS 16
+#define NUM_GFX_ACTIONS_MAPPED 8
/* values for image configuration suffixes */
#define GFX_ARG_YPOS 1
#define GFX_ARG_FRAMES 2
#define GFX_ARG_DELAY 3
-#define GFX_ARG_PINGPONG 4
-#define GFX_ARG_PINGPONG2 5
-#define GFX_ARG_REVERSE 6
-#define GFX_ARG_GLOBAL_SYNC 7
-#define GFX_ARG_VERTICAL 8
-
-/* values for image configuration */
-#define IMG_EMPTY_SPACE 0
-#define IMG_SAND 1
-#define IMG_SAND_CRUMBLED 2
-#define IMG_QUICKSAND_EMPTY 3
-#define IMG_QUICKSAND_FILLING 4
-#define IMG_QUICKSAND_FULL 5
-#define IMG_QUICKSAND_EMPTYING 6
-#define IMG_STEELWALL 7
-#define IMG_WALL 8
-#define IMG_WALL_CRUMBLED 9
-#define IMG_EMERALD 10
-#define IMG_EMERALD_FALLING 11
-#define IMG_DIAMOND 12
-#define IMG_DIAMOND_FALLING 13
-#define IMG_ROCK 14
-#define IMG_ROCK_FALLING 15
-#define IMG_ROCK_PUSHING 16
-#define IMG_ACIDPOOL_TOPLEFT 17
-#define IMG_ACIDPOOL_TOPRIGHT 18
-#define IMG_ACIDPOOL_BOTTOMLEFT 19
-#define IMG_ACIDPOOL_BOTTOM 20
-#define IMG_ACIDPOOL_BOTTOMRIGHT 21
-#define IMG_ACID 22
-#define IMG_KEY1 23
-#define IMG_KEY2 24
-#define IMG_KEY3 25
-#define IMG_KEY4 26
-#define IMG_GAMEOFLIFE 27
-#define IMG_BIOMAZE 28
-#define IMG_BOMB 29
-#define IMG_NUT 30
-#define IMG_NUT_CRACKING 31
-#define IMG_GATE1 32
-#define IMG_GATE2 33
-#define IMG_GATE3 34
-#define IMG_GATE4 35
-#define IMG_GATE1_GRAY 36
-#define IMG_GATE2_GRAY 37
-#define IMG_GATE3_GRAY 38
-#define IMG_GATE4_GRAY 39
-#define IMG_DYNAMITE 40
-#define IMG_DYNAMITE_ACTIVE 41
-#define IMG_SPACESHIP_RIGHT 42
-#define IMG_SPACESHIP_UP 43
-#define IMG_SPACESHIP_LEFT 44
-#define IMG_SPACESHIP_DOWN 45
-#define IMG_BUG_RIGHT 46
-#define IMG_BUG_UP 47
-#define IMG_BUG_LEFT 48
-#define IMG_BUG_DOWN 49
-#define IMG_PACMAN_RIGHT 50
-#define IMG_PACMAN_UP 51
-#define IMG_PACMAN_LEFT 52
-#define IMG_PACMAN_DOWN 53
-#define IMG_EXPLOSION 54
-#define IMG_YAMYAM 55
-#define IMG_YAMYAM_MOVING 56
-#define IMG_ROBOT 57
-#define IMG_ROBOT_WHEEL 58
-#define IMG_ROBOT_WHEEL_ACTIVE 59
-#define IMG_AMOEBA_DROP 60
-#define IMG_AMOEBA_CREATING 61
-#define IMG_AMOEBA_PART1 62
-#define IMG_AMOEBA_PART2 63
-#define IMG_AMOEBA_PART3 64
-#define IMG_AMOEBA_PART4 65
-#define IMG_AMOEBA_DEAD_PART1 66
-#define IMG_AMOEBA_DEAD_PART2 67
-#define IMG_AMOEBA_DEAD_PART3 68
-#define IMG_AMOEBA_DEAD_PART4 69
-#define IMG_LAMP 70
-#define IMG_LAMP_ACTIVE 71
-#define IMG_TIME_ORB_FULL 72
-#define IMG_TIME_ORB_EMPTY 73
-#define IMG_BD_AMOEBA 74
-#define IMG_BD_AMOEBA_PART1 75
-#define IMG_BD_AMOEBA_PART2 76
-#define IMG_BD_AMOEBA_PART3 77
-#define IMG_BD_AMOEBA_PART4 78
-#define IMG_SOKOBAN_OBJECT 79
-#define IMG_SOKOBAN_FIELD_EMPTY 80
-#define IMG_SOKOBAN_FIELD_FULL 81
-#define IMG_MAGIC_WALL 82
-#define IMG_MAGIC_WALL_ACTIVE 83
-#define IMG_MAGIC_WALL_FILLING 84
-#define IMG_MAGIC_WALL_FULL 85
-#define IMG_MAGIC_WALL_EMPTYING 86
-#define IMG_MAGIC_WALL_DEAD 87
-#define IMG_BD_MAGIC_WALL 88
-#define IMG_BD_MAGIC_WALL_ACTIVE 89
-#define IMG_BD_MAGIC_WALL_FILLING 90
-#define IMG_BD_MAGIC_WALL_FULL 91
-#define IMG_BD_MAGIC_WALL_EMPTYING 92
-#define IMG_BD_MAGIC_WALL_DEAD 93
-#define IMG_WALL_EMERALD 94
-#define IMG_WALL_DIAMOND 95
-#define IMG_WALL_EMERALD_RED 96
-#define IMG_WALL_EMERALD_PURPLE 97
-#define IMG_WALL_EMERALD_YELLOW 98
-#define IMG_WALL_BD_DIAMOND 99
-#define IMG_EMERALD_RED 100
-#define IMG_EMERALD_RED_FALLING 101
-#define IMG_EMERALD_PURPLE 102
-#define IMG_EMERALD_PURPLE_FALLING 103
-#define IMG_EMERALD_YELLOW 104
-#define IMG_EMERALD_YELLOW_FALLING 105
-#define IMG_WALL_GROWING_XY 106
-#define IMG_WALL_GROWING_X 107
-#define IMG_WALL_GROWING_Y 108
-#define IMG_DYNABOMB_XL 109
-#define IMG_BLACK_ORB 110
-#define IMG_SPEED_PILL 111
-#define IMG_BD_DIAMOND 112
-#define IMG_BD_DIAMOND_FALLING 113
-#define IMG_WALL_GROWING_RIGHT 114
-#define IMG_WALL_GROWING_LEFT 115
-#define IMG_EXIT_CLOSED 116
-#define IMG_EXIT_OPENING 117
-#define IMG_EXIT_OPEN 118
-#define IMG_DARK_YAMYAM 119
-#define IMG_DYNABOMB_ACTIVE 120
-#define IMG_DYNABOMB_NR 121
-#define IMG_DYNABOMB_SZ 122
-#define IMG_BD_BUTTERFLY 123
-#define IMG_BD_BUTTERFLY_MOVING 124
-#define IMG_BD_BUTTERFLY_RIGHT 125
-#define IMG_BD_BUTTERFLY_UP 126
-#define IMG_BD_BUTTERFLY_LEFT 127
-#define IMG_BD_BUTTERFLY_DOWN 128
-#define IMG_BD_FIREFLY 129
-#define IMG_BD_FIREFLY_MOVING 130
-#define IMG_BD_FIREFLY_RIGHT 131
-#define IMG_BD_FIREFLY_UP 132
-#define IMG_BD_FIREFLY_LEFT 133
-#define IMG_BD_FIREFLY_DOWN 134
-#define IMG_STEELWALL_TOPLEFT 135
-#define IMG_STEELWALL_TOPRIGHT 136
-#define IMG_STEELWALL_BOTTOMLEFT 137
-#define IMG_STEELWALL_BOTTOMRIGHT 138
-#define IMG_STEELWALL_HORIZONTAL 139
-#define IMG_STEELWALL_VERTICAL 140
-#define IMG_INVISIBLE_STEELWALL_TOPLEFT 141
-#define IMG_INVISIBLE_STEELWALL_TOPRIGHT 142
-#define IMG_INVISIBLE_STEELWALL_BOTTOMLEFT 143
-#define IMG_INVISIBLE_STEELWALL_BOTTOMRIGHT 144
-#define IMG_INVISIBLE_STEELWALL_HORIZONTAL 145
-#define IMG_INVISIBLE_STEELWALL_VERTICAL 146
-#define IMG_PLAYER1 147
-#define IMG_PLAYER1_DOWN 148
-#define IMG_PLAYER1_DOWN_MOVING 149
-#define IMG_PLAYER1_DOWN_DIGGING 150
-#define IMG_PLAYER1_UP 151
-#define IMG_PLAYER1_UP_MOVING 152
-#define IMG_PLAYER1_UP_DIGGING 153
-#define IMG_PLAYER1_LEFT 154
-#define IMG_PLAYER1_LEFT_MOVING 155
-#define IMG_PLAYER1_LEFT_DIGGING 156
-#define IMG_PLAYER1_LEFT_PUSHING 157
-#define IMG_PLAYER1_RIGHT 158
-#define IMG_PLAYER1_RIGHT_MOVING 159
-#define IMG_PLAYER1_RIGHT_DIGGING 160
-#define IMG_PLAYER1_RIGHT_PUSHING 161
-#define IMG_PLAYER2 162
-#define IMG_PLAYER2_DOWN 163
-#define IMG_PLAYER2_DOWN_MOVING 164
-#define IMG_PLAYER2_DOWN_DIGGING 165
-#define IMG_PLAYER2_UP 166
-#define IMG_PLAYER2_UP_MOVING 167
-#define IMG_PLAYER2_UP_DIGGING 168
-#define IMG_PLAYER2_LEFT 169
-#define IMG_PLAYER2_LEFT_MOVING 170
-#define IMG_PLAYER2_LEFT_DIGGING 171
-#define IMG_PLAYER2_LEFT_PUSHING 172
-#define IMG_PLAYER2_RIGHT 173
-#define IMG_PLAYER2_RIGHT_MOVING 174
-#define IMG_PLAYER2_RIGHT_DIGGING 175
-#define IMG_PLAYER2_RIGHT_PUSHING 176
-#define IMG_PLAYER3 177
-#define IMG_PLAYER3_DOWN 178
-#define IMG_PLAYER3_DOWN_MOVING 179
-#define IMG_PLAYER3_DOWN_DIGGING 180
-#define IMG_PLAYER3_UP 181
-#define IMG_PLAYER3_UP_MOVING 182
-#define IMG_PLAYER3_UP_DIGGING 183
-#define IMG_PLAYER3_LEFT 184
-#define IMG_PLAYER3_LEFT_MOVING 185
-#define IMG_PLAYER3_LEFT_DIGGING 186
-#define IMG_PLAYER3_LEFT_PUSHING 187
-#define IMG_PLAYER3_RIGHT 188
-#define IMG_PLAYER3_RIGHT_MOVING 189
-#define IMG_PLAYER3_RIGHT_DIGGING 190
-#define IMG_PLAYER3_RIGHT_PUSHING 191
-#define IMG_PLAYER4 192
-#define IMG_PLAYER4_DOWN 193
-#define IMG_PLAYER4_DOWN_MOVING 194
-#define IMG_PLAYER4_DOWN_DIGGING 195
-#define IMG_PLAYER4_UP 196
-#define IMG_PLAYER4_UP_MOVING 197
-#define IMG_PLAYER4_UP_DIGGING 198
-#define IMG_PLAYER4_LEFT 199
-#define IMG_PLAYER4_LEFT_MOVING 200
-#define IMG_PLAYER4_LEFT_DIGGING 201
-#define IMG_PLAYER4_LEFT_PUSHING 202
-#define IMG_PLAYER4_RIGHT 203
-#define IMG_PLAYER4_RIGHT_MOVING 204
-#define IMG_PLAYER4_RIGHT_DIGGING 205
-#define IMG_PLAYER4_RIGHT_PUSHING 206
-#define IMG_WALL_GROWING_DOWN 207
-#define IMG_WALL_GROWING_UP 208
-#define IMG_SHIELD_NORMAL_ACTIVE 209
-#define IMG_SHIELD_DEADLY_ACTIVE 210
-#define IMG_PIG_DOWN 211
-#define IMG_PIG_DOWN_MOVING 212
-#define IMG_PIG_DOWN_EATING 213
-#define IMG_PIG_UP 214
-#define IMG_PIG_UP_MOVING 215
-#define IMG_PIG_UP_EATING 216
-#define IMG_PIG_LEFT 217
-#define IMG_PIG_LEFT_MOVING 218
-#define IMG_PIG_LEFT_EATING 219
-#define IMG_PIG_RIGHT 220
-#define IMG_PIG_RIGHT_MOVING 221
-#define IMG_PIG_RIGHT_EATING 222
-#define IMG_DRAGON_DOWN 223
-#define IMG_DRAGON_DOWN_MOVING 224
-#define IMG_DRAGON_DOWN_ATTACKING 225
-#define IMG_DRAGON_UP 226
-#define IMG_DRAGON_UP_MOVING 227
-#define IMG_DRAGON_UP_ATTACKING 228
-#define IMG_DRAGON_LEFT 229
-#define IMG_DRAGON_LEFT_MOVING 230
-#define IMG_DRAGON_LEFT_ATTACKING 231
-#define IMG_DRAGON_RIGHT 232
-#define IMG_DRAGON_RIGHT_MOVING 233
-#define IMG_DRAGON_RIGHT_ATTACKING 234
-#define IMG_MOLE_DOWN 235
-#define IMG_MOLE_DOWN_MOVING 236
-#define IMG_MOLE_DOWN_DIGGING 237
-#define IMG_MOLE_UP 238
-#define IMG_MOLE_UP_MOVING 239
-#define IMG_MOLE_UP_DIGGING 240
-#define IMG_MOLE_LEFT 241
-#define IMG_MOLE_LEFT_MOVING 242
-#define IMG_MOLE_LEFT_DIGGING 243
-#define IMG_MOLE_RIGHT 244
-#define IMG_MOLE_RIGHT_MOVING 245
-#define IMG_MOLE_RIGHT_DIGGING 246
-#define IMG_PENGUIN_DOWN 247
-#define IMG_PENGUIN_DOWN_MOVING 248
-#define IMG_PENGUIN_UP 249
-#define IMG_PENGUIN_UP_MOVING 250
-#define IMG_PENGUIN_LEFT 251
-#define IMG_PENGUIN_LEFT_MOVING 252
-#define IMG_PENGUIN_RIGHT 253
-#define IMG_PENGUIN_RIGHT_MOVING 254
-#define IMG_SATELLITE 255
-#define IMG_SATELLITE_MOVING 256
-#define IMG_ACID_SPLASHING_LEFT 257
-#define IMG_ACID_SPLASHING_RIGHT 258
-#define IMG_TWINKLE_BLUE 259
-#define IMG_TWINKLE_WHITE 260
-#define IMG_DRAGON_FIRE_LEFT1 261
-#define IMG_DRAGON_FIRE_LEFT2 262
-#define IMG_DRAGON_FIRE_LEFT3 263
-#define IMG_DRAGON_FIRE_RIGHT1 264
-#define IMG_DRAGON_FIRE_RIGHT2 265
-#define IMG_DRAGON_FIRE_RIGHT3 266
-#define IMG_DRAGON_FIRE_UP1 267
-#define IMG_DRAGON_FIRE_UP2 268
-#define IMG_DRAGON_FIRE_UP3 269
-#define IMG_DRAGON_FIRE_DOWN1 270
-#define IMG_DRAGON_FIRE_DOWN2 271
-#define IMG_DRAGON_FIRE_DOWN3 272
-#define IMG_SP_EMPTY_SPACE 273
-#define IMG_SP_ZONK 274
-#define IMG_SP_ZONK_FALLING 275
-#define IMG_SP_ZONK_PUSHING 276
-#define IMG_SP_BASE 277
-#define IMG_SP_MURPHY 278
-#define IMG_SP_MURPHY_LEFT 279
-#define IMG_SP_MURPHY_LEFT_MOVING 280
-#define IMG_SP_MURPHY_LEFT_DIGGING 281
-#define IMG_SP_MURPHY_LEFT_PUSHING 282
-#define IMG_SP_MURPHY_LEFT_SNAPPING 283
-#define IMG_SP_MURPHY_RIGHT 284
-#define IMG_SP_MURPHY_RIGHT_MOVING 285
-#define IMG_SP_MURPHY_RIGHT_DIGGING 286
-#define IMG_SP_MURPHY_RIGHT_PUSHING 287
-#define IMG_SP_MURPHY_RIGHT_SNAPPING 288
-#define IMG_SP_MURPHY_UP 289
-#define IMG_SP_MURPHY_UP_SNAPPING 290
-#define IMG_SP_MURPHY_DOWN 291
-#define IMG_SP_MURPHY_DOWN_SNAPPING 292
-#define IMG_SP_MURPHY_CLONE 293
-#define IMG_SP_INFOTRON 294
-#define IMG_SP_INFOTRON_FALLING 295
-#define IMG_SP_CHIP_SINGLE 296
-#define IMG_SP_CHIP_LEFT 297
-#define IMG_SP_CHIP_RIGHT 298
-#define IMG_SP_CHIP_UPPER 299
-#define IMG_SP_CHIP_LOWER 300
-#define IMG_SP_HARD_GRAY 301
-#define IMG_SP_HARD_GREEN 302
-#define IMG_SP_HARD_BLUE 303
-#define IMG_SP_HARD_RED 304
-#define IMG_SP_HARD_YELLOW 305
-#define IMG_SP_EXIT_CLOSED 306
-#define IMG_SP_EXIT_OPEN 307
-#define IMG_SP_DISK_ORANGE 308
-#define IMG_SP_DISK_ORANGE_FALLING 309
-#define IMG_SP_DISK_ORANGE_PUSHING 310
-#define IMG_SP_DISK_YELLOW 311
-#define IMG_SP_DISK_YELLOW_PUSHING 312
-#define IMG_SP_DISK_RED 313
-#define IMG_SP_DISK_RED_COLLECTING 314
-#define IMG_SP_PORT1_RIGHT 315
-#define IMG_SP_PORT1_DOWN 316
-#define IMG_SP_PORT1_LEFT 317
-#define IMG_SP_PORT1_UP 318
-#define IMG_SP_PORT2_RIGHT 319
-#define IMG_SP_PORT2_DOWN 320
-#define IMG_SP_PORT2_LEFT 321
-#define IMG_SP_PORT2_UP 322
-#define IMG_SP_PORT_X 323
-#define IMG_SP_PORT_Y 324
-#define IMG_SP_PORT_XY 325
-#define IMG_SP_SNIKSNAK 326
-#define IMG_SP_SNIKSNAK_LEFT 327
-#define IMG_SP_SNIKSNAK_RIGHT 328
-#define IMG_SP_SNIKSNAK_UP 329
-#define IMG_SP_SNIKSNAK_DOWN 330
-#define IMG_SP_ELECTRON 331
-#define IMG_SP_TERMINAL 332
-#define IMG_SP_TERMINAL_ACTIVE 333
-#define IMG_SP_BUGGY_BASE 334
-#define IMG_SP_BUGGY_BASE_ACTIVE 335
-#define IMG_SP_HARD_BASE1 336
-#define IMG_SP_HARD_BASE2 337
-#define IMG_SP_HARD_BASE3 338
-#define IMG_SP_HARD_BASE4 339
-#define IMG_SP_HARD_BASE5 340
-#define IMG_SP_HARD_BASE6 341
-#define IMG_INVISIBLE_STEELWALL 342
-#define IMG_INVISIBLE_STEELWALL_ACTIVE 343
-#define IMG_INVISIBLE_SAND 344
-#define IMG_INVISIBLE_SAND_ACTIVE 345
-#define IMG_INVISIBLE_WALL 346
-#define IMG_INVISIBLE_WALL_ACTIVE 347
-#define IMG_EM_KEY1 348
-#define IMG_EM_KEY2 349
-#define IMG_EM_KEY3 350
-#define IMG_EM_KEY4 351
-#define IMG_EM_GATE1 352
-#define IMG_EM_GATE2 353
-#define IMG_EM_GATE3 354
-#define IMG_EM_GATE4 355
-#define IMG_EM_GATE1_GRAY 356
-#define IMG_EM_GATE2_GRAY 357
-#define IMG_EM_GATE3_GRAY 358
-#define IMG_EM_GATE4_GRAY 359
-#define IMG_SP_EXPLOSION 360
-#define IMG_SP_EXPLOSION_INFOTRON 361
-#define IMG_CONVEYOR_BELT1_MIDDLE 362
-#define IMG_CONVEYOR_BELT1_MIDDLE_ACTIVE 363
-#define IMG_CONVEYOR_BELT1_LEFT 364
-#define IMG_CONVEYOR_BELT1_LEFT_ACTIVE 365
-#define IMG_CONVEYOR_BELT1_RIGHT 366
-#define IMG_CONVEYOR_BELT1_RIGHT_ACTIVE 367
-#define IMG_CONVEYOR_BELT1_SWITCH_LEFT 368
-#define IMG_CONVEYOR_BELT1_SWITCH_MIDDLE 369
-#define IMG_CONVEYOR_BELT1_SWITCH_RIGHT 370
-#define IMG_CONVEYOR_BELT2_MIDDLE 371
-#define IMG_CONVEYOR_BELT2_MIDDLE_ACTIVE 372
-#define IMG_CONVEYOR_BELT2_LEFT 373
-#define IMG_CONVEYOR_BELT2_LEFT_ACTIVE 374
-#define IMG_CONVEYOR_BELT2_RIGHT 375
-#define IMG_CONVEYOR_BELT2_RIGHT_ACTIVE 376
-#define IMG_CONVEYOR_BELT2_SWITCH_LEFT 377
-#define IMG_CONVEYOR_BELT2_SWITCH_MIDDLE 378
-#define IMG_CONVEYOR_BELT2_SWITCH_RIGHT 379
-#define IMG_CONVEYOR_BELT3_MIDDLE 380
-#define IMG_CONVEYOR_BELT3_MIDDLE_ACTIVE 381
-#define IMG_CONVEYOR_BELT3_LEFT 382
-#define IMG_CONVEYOR_BELT3_LEFT_ACTIVE 383
-#define IMG_CONVEYOR_BELT3_RIGHT 384
-#define IMG_CONVEYOR_BELT3_RIGHT_ACTIVE 385
-#define IMG_CONVEYOR_BELT3_SWITCH_LEFT 386
-#define IMG_CONVEYOR_BELT3_SWITCH_MIDDLE 387
-#define IMG_CONVEYOR_BELT3_SWITCH_RIGHT 388
-#define IMG_CONVEYOR_BELT4_MIDDLE 389
-#define IMG_CONVEYOR_BELT4_MIDDLE_ACTIVE 390
-#define IMG_CONVEYOR_BELT4_LEFT 391
-#define IMG_CONVEYOR_BELT4_LEFT_ACTIVE 392
-#define IMG_CONVEYOR_BELT4_RIGHT 393
-#define IMG_CONVEYOR_BELT4_RIGHT_ACTIVE 394
-#define IMG_CONVEYOR_BELT4_SWITCH_LEFT 395
-#define IMG_CONVEYOR_BELT4_SWITCH_MIDDLE 396
-#define IMG_CONVEYOR_BELT4_SWITCH_RIGHT 397
-#define IMG_SWITCHGATE_SWITCH_UP 398
-#define IMG_SWITCHGATE_SWITCH_DOWN 399
-#define IMG_LIGHT_SWITCH 400
-#define IMG_LIGHT_SWITCH_ACTIVE 401
-#define IMG_TIMEGATE_SWITCH 402
-#define IMG_TIMEGATE_SWITCH_ACTIVE 403
-#define IMG_ENVELOPE 404
-#define IMG_SIGN_EXCLAMATION 405
-#define IMG_SIGN_STOP 406
-#define IMG_LANDMINE 407
-#define IMG_STEELWALL_SLANTED 408
-#define IMG_EXTRA_TIME 409
-#define IMG_SHIELD_DEADLY 410
-#define IMG_SHIELD_NORMAL 411
-#define IMG_SWITCHGATE_CLOSED 412
-#define IMG_SWITCHGATE_OPENING 413
-#define IMG_SWITCHGATE_OPEN 414
-#define IMG_SWITCHGATE_CLOSING 415
-#define IMG_TIMEGATE_CLOSED 416
-#define IMG_TIMEGATE_OPENING 417
-#define IMG_TIMEGATE_OPEN 418
-#define IMG_TIMEGATE_CLOSING 419
-#define IMG_BALLOON 420
-#define IMG_BALLOON_MOVING 421
-#define IMG_BALLOON_SEND_LEFT 422
-#define IMG_BALLOON_SEND_RIGHT 423
-#define IMG_BALLOON_SEND_UP 424
-#define IMG_BALLOON_SEND_DOWN 425
-#define IMG_BALLOON_SEND_ANY_DIRECTION 426
-#define IMG_EMC_STEELWALL1 427
-#define IMG_EMC_STEELWALL2 428
-#define IMG_EMC_STEELWALL3 429
-#define IMG_EMC_STEELWALL4 430
-#define IMG_EMC_WALL_PILLAR_UPPER 431
-#define IMG_EMC_WALL_PILLAR_MIDDLE 432
-#define IMG_EMC_WALL_PILLAR_LOWER 433
-#define IMG_EMC_WALL4 434
-#define IMG_EMC_WALL5 435
-#define IMG_EMC_WALL6 436
-#define IMG_EMC_WALL7 437
-#define IMG_EMC_WALL8 438
-#define IMG_ARROW_BLUE_LEFT 439
-#define IMG_ARROW_BLUE_RIGHT 440
-#define IMG_ARROW_BLUE_UP 441
-#define IMG_ARROW_BLUE_DOWN 442
-#define IMG_ARROW_RED_LEFT 443
-#define IMG_ARROW_RED_RIGHT 444
-#define IMG_ARROW_RED_UP 445
-#define IMG_ARROW_RED_DOWN 446
-#define IMG_SCROLLBAR_BLUE 447
-#define IMG_SCROLLBAR_RED 448
-#define IMG_SCROLLBAR_GREEN 449
-#define IMG_SCROLLBAR_YELLOW 450
-#define IMG_PEARL 451
-#define IMG_PEARL_BREAKING 452
-#define IMG_CRYSTAL 453
-#define IMG_WALL_PEARL 454
-#define IMG_WALL_CRYSTAL 455
-#define IMG_SPRING 456
-#define IMG_TUBE_RIGHT_DOWN 457
-#define IMG_TUBE_HORIZONTAL_DOWN 458
-#define IMG_TUBE_LEFT_DOWN 459
-#define IMG_TUBE_HORIZONTAL 460
-#define IMG_TUBE_VERTICAL_RIGHT 461
-#define IMG_TUBE_ALL 462
-#define IMG_TUBE_VERTICAL_LEFT 463
-#define IMG_TUBE_VERTICAL 464
-#define IMG_TUBE_RIGHT_UP 465
-#define IMG_TUBE_HORIZONTAL_UP 466
-#define IMG_TUBE_LEFT_UP 467
-#define IMG_TRAP 468
-#define IMG_TRAP_ACTIVE 469
-#define IMG_BD_WALL 470
-#define IMG_BD_ROCK 471
-#define IMG_BD_ROCK_FALLING 472
-#define IMG_BD_ROCK_PUSHING 473
-#define IMG_DX_SUPABOMB 474
-
-#define NUM_IMAGE_FILES 475
-
+#define GFX_ARG_MODE_LINEAR 4
+#define GFX_ARG_MODE_PINGPONG 5
+#define GFX_ARG_MODE_PINGPONG2 6
+#define GFX_ARG_MODE_REVERSE 7
+#define GFX_ARG_GLOBAL_SYNC 8
+#define GFX_ARG_VERTICAL 9
/* values for sound configuration suffixes */
/* (currently none) */
-/* values for sound configuration */
-#define SND_BD_EMPTY_SPACE_DIGGING 0
-#define SND_BD_SAND_DIGGING 1
-#define SND_BD_DIAMOND_COLLECTING 2
-#define SND_BD_DIAMOND_IMPACT 3
-#define SND_BD_ROCK_PUSHING 4
-#define SND_BD_ROCK_IMPACT 5
-#define SND_BD_MAGIC_WALL_ACTIVATING 6
-#define SND_BD_MAGIC_WALL_ACTIVE 7
-#define SND_BD_MAGIC_WALL_CHANGING 8
-#define SND_BD_AMOEBA_WAITING 9
-#define SND_BD_AMOEBA_CREATING 10
-#define SND_BD_AMOEBA_TURNING_TO_GEM 11
-#define SND_BD_AMOEBA_TURNING_TO_ROCK 12
-#define SND_BD_BUTTERFLY_MOVING 13
-#define SND_BD_BUTTERFLY_WAITING 14
-#define SND_BD_FIREFLY_MOVING 15
-#define SND_BD_FIREFLY_WAITING 16
-#define SND_BD_EXIT_PASSING 17
-#define SND_SP_EMPTY_SPACE_DIGGING 18
-#define SND_SP_BASE_DIGGING 19
-#define SND_SP_BUGGY_BASE_DIGGING 20
-#define SND_SP_BUGGY_BASE_ACTIVE 21
-#define SND_SP_INFOTRON_COLLECTING 22
-#define SND_SP_INFOTRON_IMPACT 23
-#define SND_SP_ZONK_PUSHING 24
-#define SND_SP_ZONK_IMPACT 25
-#define SND_SP_DISK_RED_COLLECTING 26
-#define SND_SP_DISK_ORANGE_PUSHING 27
-#define SND_SP_DISK_YELLOW_PUSHING 28
-#define SND_SP_PORT_PASSING 29
-#define SND_SP_EXIT_PASSING 30
-#define SND_SP_EXIT_OPENING 31
-#define SND_SP_ELEMENT_EXPLODING 32
-#define SND_SP_SNIKSNAK_MOVING 33
-#define SND_SP_SNIKSNAK_WAITING 34
-#define SND_SP_ELECTRON_MOVING 35
-#define SND_SP_ELECTRON_WAITING 36
-#define SND_SP_TERMINAL_ACTIVATING 37
-#define SND_SP_TERMINAL_ACTIVE 38
-#define SND_SOKOBAN_OBJECT_PUSHING 39
-#define SND_SOKOBAN_FIELD_FILLING 40
-#define SND_SOKOBAN_FIELD_EMPTYING 41
-#define SND_SOKOBAN_GAME_SOLVING 42
-#define SND_EMPTY_SPACE_DIGGING 43
-#define SND_SAND_DIGGING 44
-#define SND_EMERALD_COLLECTING 45
-#define SND_EMERALD_IMPACT 46
-#define SND_DIAMOND_COLLECTING 47
-#define SND_DIAMOND_IMPACT 48
-#define SND_DIAMOND_BREAKING 49
-#define SND_ROCK_PUSHING 50
-#define SND_ROCK_IMPACT 51
-#define SND_BOMB_PUSHING 52
-#define SND_NUT_PUSHING 53
-#define SND_NUT_CRACKING 54
-#define SND_NUT_IMPACT 55
-#define SND_DYNAMITE_COLLECTING 56
-#define SND_DYNAMITE_DROPPING 57
-#define SND_DYNAMITE_ACTIVE 58
-#define SND_KEY_COLLECTING 59
-#define SND_GATE_PASSING 60
-#define SND_BUG_MOVING 61
-#define SND_BUG_WAITING 62
-#define SND_SPACESHIP_MOVING 63
-#define SND_SPACESHIP_WAITING 64
-#define SND_YAMYAM_MOVING 65
-#define SND_YAMYAM_WAITING 66
-#define SND_YAMYAM_EATING 67
-#define SND_ROBOT_STEPPING 68
-#define SND_ROBOT_WAITING 69
-#define SND_ROBOT_WHEEL_ACTIVATING 70
-#define SND_ROBOT_WHEEL_ACTIVE 71
-#define SND_MAGIC_WALL_ACTIVATING 72
-#define SND_MAGIC_WALL_ACTIVE 73
-#define SND_MAGIC_WALL_CHANGING 74
-#define SND_AMOEBA_WAITING 75
-#define SND_AMOEBA_CREATING 76
-#define SND_AMOEBA_DROP_CREATING 77
-#define SND_ACID_SPLASHING 78
-#define SND_QUICKSAND_FILLING 79
-#define SND_QUICKSAND_SLIPPING 80
-#define SND_QUICKSAND_EMPTYING 81
-#define SND_EXIT_OPENING 82
-#define SND_EXIT_PASSING 83
-#define SND_BALLOON_MOVING 84
-#define SND_BALLOON_WAITING 85
-#define SND_BALLOON_PUSHING 86
-#define SND_BALLOON_SWITCH_ACTIVATING 87
-#define SND_SPRING_MOVING 88
-#define SND_SPRING_PUSHING 89
-#define SND_SPRING_IMPACT 90
-#define SND_WALL_GROWING 91
-#define SND_PEARL_COLLECTING 92
-#define SND_PEARL_BREAKING 93
-#define SND_PEARL_IMPACT 94
-#define SND_CRYSTAL_COLLECTING 95
-#define SND_CRYSTAL_IMPACT 96
-#define SND_ENVELOPE_COLLECTING 97
-#define SND_SAND_INVISIBLE_DIGGING 98
-#define SND_SHIELD_NORMAL_COLLECTING 99
-#define SND_SHIELD_NORMAL_ACTIVE 100
-#define SND_SHIELD_DEADLY_COLLECTING 101
-#define SND_SHIELD_DEADLY_ACTIVE 102
-#define SND_EXTRA_TIME_COLLECTING 103
-#define SND_MOLE_MOVING 104
-#define SND_MOLE_WAITING 105
-#define SND_MOLE_EATING 106
-#define SND_SWITCHGATE_SWITCH_ACTIVATING 107
-#define SND_SWITCHGATE_OPENING 108
-#define SND_SWITCHGATE_CLOSING 109
-#define SND_SWITCHGATE_PASSING 110
-#define SND_TIMEGATE_SWITCH_ACTIVATING 111
-#define SND_TIMEGATE_SWITCH_ACTIVE 112
-#define SND_TIMEGATE_OPENING 113
-#define SND_TIMEGATE_CLOSING 114
-#define SND_TIMEGATE_PASSING 115
-#define SND_CONVEYOR_BELT_SWITCH_ACTIVATING 116
-#define SND_CONVEYOR_BELT_SWITCH_DEACTIVATING 117
-#define SND_CONVEYOR_BELT_ACTIVE 118
-#define SND_LIGHT_SWITCH_ACTIVATING 119
-#define SND_LIGHT_SWITCH_DEACTIVATING 120
-#define SND_DX_BOMB_PUSHING 121
-#define SND_TRAP_INACTIVE_DIGGING 122
-#define SND_TRAP_ACTIVATING 123
-#define SND_TUBE_PASSING 124
-#define SND_AMOEBA_TURNING_TO_GEM 125
-#define SND_AMOEBA_TURNING_TO_ROCK 126
-#define SND_SPEED_PILL_COLLECTING 127
-#define SND_DYNABOMB_NR_COLLECTING 128
-#define SND_DYNABOMB_SZ_COLLECTING 129
-#define SND_DYNABOMB_XL_COLLECTING 130
-#define SND_DYNABOMB_DROPPING 131
-#define SND_DYNABOMB_ACTIVE 132
-#define SND_SATELLITE_MOVING 133
-#define SND_SATELLITE_WAITING 134
-#define SND_SATELLITE_PUSHING 135
-#define SND_LAMP_ACTIVATING 136
-#define SND_LAMP_DEACTIVATING 137
-#define SND_TIME_ORB_FULL_COLLECTING 138
-#define SND_TIME_ORB_FULL_IMPACT 139
-#define SND_TIME_ORB_EMPTY_PUSHING 140
-#define SND_TIME_ORB_EMPTY_IMPACT 141
-#define SND_GAMEOFLIFE_WAITING 142
-#define SND_GAMEOFLIFE_CREATING 143
-#define SND_BIOMAZE_WAITING 144
-#define SND_BIOMAZE_CREATING 145
-#define SND_PACMAN_MOVING 146
-#define SND_PACMAN_WAITING 147
-#define SND_PACMAN_EATING 148
-#define SND_DARK_YAMYAM_MOVING 149
-#define SND_DARK_YAMYAM_WAITING 150
-#define SND_DARK_YAMYAM_EATING 151
-#define SND_PENGUIN_MOVING 152
-#define SND_PENGUIN_WAITING 153
-#define SND_PENGUIN_PASSING_EXIT 154
-#define SND_PIG_MOVING 155
-#define SND_PIG_WAITING 156
-#define SND_PIG_EATING 157
-#define SND_DRAGON_MOVING 158
-#define SND_DRAGON_WAITING 159
-#define SND_DRAGON_ATTACKING 160
-#define SND_PLAYER_DYING 161
-#define SND_ELEMENT_EXPLODING 162
-#define SND_GAME_STARTING 163
-#define SND_GAME_RUNNING_OUT_OF_TIME 164
-#define SND_GAME_LEVELTIME_BONUS 165
-#define SND_GAME_LOSING 166
-#define SND_GAME_WINNING 167
-#define SND_MENU_DOOR_OPENING 168
-#define SND_MENU_DOOR_CLOSING 169
-#define SND_MENU_HALL_OF_FAME 170
-#define SND_MENU_INFO_SCREEN 171
-
-#define NUM_SOUND_FILES 172
-
/* values for game_status */
#define EXITGAME 0
PROGRAM_VERSION_MINOR, \
PROGRAM_VERSION_PATCH)
-/* for DrawGraphicAnimation() [tools.c] and AnimateToon() [cartoons.c] */
-#define ANIM_NORMAL 0
-#define ANIM_REVERSE (1 << 0)
-#define ANIM_PINGPONG (1 << 1)
-#define ANIM_PINGPONG2 (1 << 2)
-
/* values for game_emulation */
#define EMU_NONE 0
#define EMU_BOULDERDASH 1
char *sound_class_name; /* classification for custom sound effects */
char *editor_description; /* short description for level editor */
+ /* default graphics for several actions */
int graphic[NUM_GFX_ACTIONS_MAPPED];
/* special graphics for left/right/up/down */
- int direction_graphic[NUM_GFX_ACTIONS_MAPPED][4];
- boolean has_direction_graphic[NUM_GFX_ACTIONS_MAPPED];
+ int direction_graphic[NUM_GFX_ACTIONS_MAPPED][NUM_MV_DIRECTIONS];
};
struct GraphicInfo
extern short Store2[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern short StorePlayer[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern short Frame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+extern short GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern boolean Stop[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern short JustStopped[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern short AmoebaNr[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
extern boolean network_player_action_received;
+extern int graphics_action_mapping[];
+
extern struct LevelInfo level;
extern struct PlayerInfo stored_player[], *local_player;
extern struct HiScore highscore[];