1 // ============================================================================
2 // Mirror Magic -- McDuffin's Revenge
3 // ----------------------------------------------------------------------------
4 // (c) 1994-2017 by Artsoft Entertainment
7 // https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
17 struct GameInfo_MM game_mm;
18 struct LevelInfo_MM native_mm_level;
20 short Ur[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
21 short Hit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
22 short Box[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
23 short Angle[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
25 short Frame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
27 unsigned int Elementeigenschaften[MAX_ELEMENTS];
29 struct LaserInfo laser;
41 Pixel pen_fg, pen_bg, pen_ray, pen_magicolor[2];
64 /* "Sign" has the following structure:
66 each 4-bit-value represents the values d*8 + c*4 + b*2 + a*1
67 at the pixel positions
72 so the value "0xA" (=> (d=1)*8 + (c=0)*4 + (b=1)*2 + (a=0)*1)
73 would result in the pixel pattern
103 char *element_info_mm[] =
107 "mirror (11.25\xb0)",
109 "mirror (33.75\xb0)",
111 "mirror (56.25\xb0)",
113 "mirror (78.75\xb0)",
115 "mirror (101.25\xb0)", // 10
116 "mirror (112.5\xb0)",
117 "mirror (123.75\xb0)",
119 "mirror (146.25\xb0)",
120 "mirror (157.5\xb0)",
121 "mirror (168.75\xb0)",
122 "fixed steel polarizer (0\xb0)",
123 "fixed steel polarizer (90\xb0)",
124 "fixed steel polarizer (45\xb0)",
125 "fixed steel polarizer (135\xb0)", // 20
126 "Gregor McDuffin (looking right)",
127 "Gregor McDuffin (looking up)",
128 "Gregor McDuffin (looking left)",
129 "Gregor McDuffin (looking down)",
203 "teleporter (0\xb0)",
204 "teleporter (22.5\xb0)",
205 "teleporter (45\xb0)", // 100
206 "teleporter (67.5\xb0)",
207 "teleporter (90\xb0)",
208 "teleporter (112.5\xb0)",
209 "teleporter (135\xb0)",
210 "teleporter (157.5\xb0)",
211 "teleporter (180\xb0)",
212 "teleporter (202.5\xb0)",
213 "teleporter (225\xb0)",
214 "teleporter (247.5\xb0)",
215 "teleporter (270\xb0)", // 110
216 "teleporter (292.5\xb0)",
217 "teleporter (315\xb0)",
218 "teleporter (337.5\xb0)",
220 "pac man (starts moving right)",
221 "pac man (starts moving up)",
222 "pac man (starts moving left)",
223 "pac man (starts moving down)",
225 "polarizer (11.25\xb0)", // 120
226 "polarizer (22.5\xb0)",
227 "polarizer (33.75\xb0)",
228 "polarizer (45\xb0)",
229 "polarizer (56.25\xb0)",
230 "polarizer (67.5\xb0)",
231 "polarizer (78.75\xb0)",
232 "polarizer (90\xb0)",
233 "polarizer (101.25\xb0)",
234 "polarizer (112.5\xb0)",
235 "polarizer (123.75\xb0)", // 130
236 "polarizer (135\xb0)",
237 "polarizer (146.25\xb0)",
238 "polarizer (157.5\xb0)",
239 "polarizer (168.75\xb0)",
240 "two-way polarizer (0\xb0)",
241 "two-way polarizer (22.5\xb0)",
242 "two-way polarizer (45\xb0)",
243 "two-way polarizer (67.5\xb0)",
244 "fixed mirror (0\xb0)",
245 "fixed mirror (45\xb0)", // 140
246 "fixed mirror (90\xb0)",
247 "fixed mirror (135\xb0)",
248 "reflecting stone lock",
251 "light bulb (glowing)",
253 "reflecting stone block",
255 "extra energy ball (full)", // 150
256 "fixed wooden polarizer (0\xb0)",
257 "fixed wooden polarizer (90\xb0)",
258 "fixed wooden polarizer (45\xb0)",
259 "fixed wooden polarizer (135\xb0)",
260 "extra energy ball (empty)",
325 "letter '\xd6'", // 220
345 "mirror (0\xb0)", // 240
346 "mirror (11.25\xb0)",
348 "mirror (33.75\xb0)",
350 "mirror (56.25\xb0)",
352 "mirror (78.75\xb0)",
354 "mirror (101.25\xb0)",
355 "mirror (112.5\xb0)", // 250
356 "mirror (123.75\xb0)",
358 "mirror (146.25\xb0)",
359 "mirror (157.5\xb0)",
360 "mirror (168.75\xb0)",
361 "fixed wooden polarizer (0\xb0)",
362 "fixed wooden polarizer (22.5\xb0)",
363 "fixed wooden polarizer (45\xb0)",
364 "fixed wooden polarizer (67.5\xb0)",
365 "fixed wooden polarizer (90\xb0)", // 260
366 "fixed wooden polarizer (112.5\xb0)",
367 "fixed wooden polarizer (135\xb0)",
368 "fixed wooden polarizer (157.5\xb0)",
369 "fixed steel polarizer (0\xb0)",
370 "fixed steel polarizer (22.5\xb0)",
371 "fixed steel polarizer (45\xb0)",
372 "fixed steel polarizer (67.5\xb0)",
373 "fixed steel polarizer (90\xb0)",
374 "fixed steel polarizer (112.5\xb0)",
375 "fixed steel polarizer (135\xb0)", // 270
376 "fixed steel polarizer (157.5\xb0)",
377 "deflektor style wooden wall",
378 "deflektor style wooden wall",
379 "deflektor style wooden wall",
380 "deflektor style wooden wall",
381 "deflektor style wooden wall",
382 "deflektor style wooden wall",
383 "deflektor style wooden wall",
384 "deflektor style wooden wall",
385 "deflektor style wooden wall", // 280
386 "deflektor style wooden wall",
387 "deflektor style wooden wall",
388 "deflektor style wooden wall",
389 "deflektor style wooden wall",
390 "deflektor style wooden wall",
391 "deflektor style wooden wall",
392 "deflektor style wooden wall",
393 "deflektor style steel wall",
394 "deflektor style steel wall",
395 "deflektor style steel wall", // 290
396 "deflektor style steel wall",
397 "deflektor style steel wall",
398 "deflektor style steel wall",
399 "deflektor style steel wall",
400 "deflektor style steel wall",
401 "deflektor style steel wall",
402 "deflektor style steel wall",
403 "deflektor style steel wall",
404 "deflektor style steel wall",
405 "deflektor style steel wall", // 300
406 "deflektor style steel wall",
407 "deflektor style steel wall",
408 "deflektor style steel wall",
413 "laser cannon (shooting right)",
414 "laser cannon (shooting up)",
415 "laser cannon (shooting left)", // 310
416 "laser cannon (shooting down)",
417 "laser receiver (directed right)",
418 "laser receiver (directed up)",
419 "laser receiver (directed left)",
420 "laser receiver (directed down)",
425 "fibre optic (3a)", // 320
429 "rotating mirror (0\xb0)",
430 "rotating mirror (11.25\xb0)",
431 "rotating mirror (22.5\xb0)",
432 "rotating mirror (33.75\xb0)",
433 "rotating mirror (45\xb0)",
434 "rotating mirror (56.25\xb0)",
435 "rotating mirror (67.5\xb0)", // 330
436 "rotating mirror (78.75\xb0)",
437 "rotating mirror (90\xb0)",
438 "rotating mirror (101.25\xb0)",
439 "rotating mirror (112.5\xb0)",
440 "rotating mirror (123.75\xb0)",
441 "rotating mirror (135\xb0)",
442 "rotating mirror (146.25\xb0)",
443 "rotating mirror (157.5\xb0)",
444 "rotating mirror (168.75\xb0)",
445 "rotating wooden polarizer (0\xb0)", // 340
446 "rotating wooden polarizer (22.5\xb0)",
447 "rotating wooden polarizer (45\xb0)",
448 "rotating wooden polarizer (67.5\xb0)",
449 "rotating wooden polarizer (90\xb0)",
450 "rotating wooden polarizer (112.5\xb0)",
451 "rotating wooden polarizer (135\xb0)",
452 "rotating wooden polarizer (157.5\xb0)",
453 "rotating steel polarizer (0\xb0)",
454 "rotating steel polarizer (22.5\xb0)",
455 "rotating steel polarizer (45\xb0)", // 350
456 "rotating steel polarizer (67.5\xb0)",
457 "rotating steel polarizer (90\xb0)",
458 "rotating steel polarizer (112.5\xb0)",
459 "rotating steel polarizer (135\xb0)",
460 "rotating steel polarizer (157.5\xb0)",
461 "red teleporter (0\xb0)",
462 "red teleporter (22.5\xb0)",
463 "red teleporter (45\xb0)",
464 "red teleporter (67.5\xb0)",
465 "red teleporter (90\xb0)", // 360
466 "red teleporter (112.5\xb0)",
467 "red teleporter (135\xb0)",
468 "red teleporter (157.5\xb0)",
469 "red teleporter (180\xb0)",
470 "red teleporter (202.5\xb0)",
471 "red teleporter (225\xb0)",
472 "red teleporter (247.5\xb0)",
473 "red teleporter (270\xb0)",
474 "red teleporter (292.5\xb0)",
475 "red teleporter (315\xb0)", // 370
476 "red teleporter (337.5\xb0)",
477 "yellow teleporter (0\xb0)",
478 "yellow teleporter (22.5\xb0)",
479 "yellow teleporter (45\xb0)",
480 "yellow teleporter (67.5\xb0)",
481 "yellow teleporter (90\xb0)",
482 "yellow teleporter (112.5\xb0)",
483 "yellow teleporter (135\xb0)",
484 "yellow teleporter (157.5\xb0)",
485 "yellow teleporter (180\xb0)", // 380
486 "yellow teleporter (202.5\xb0)",
487 "yellow teleporter (225\xb0)",
488 "yellow teleporter (247.5\xb0)",
489 "yellow teleporter (270\xb0)",
490 "yellow teleporter (292.5\xb0)",
491 "yellow teleporter (315\xb0)",
492 "yellow teleporter (337.5\xb0)",
493 "green teleporter (0\xb0)",
494 "green teleporter (22.5\xb0)",
495 "green teleporter (45\xb0)", // 390
496 "green teleporter (67.5\xb0)",
497 "green teleporter (90\xb0)",
498 "green teleporter (112.5\xb0)",
499 "green teleporter (135\xb0)",
500 "green teleporter (157.5\xb0)",
501 "green teleporter (180\xb0)",
502 "green teleporter (202.5\xb0)",
503 "green teleporter (225\xb0)",
504 "green teleporter (247.5\xb0)",
505 "green teleporter (270\xb0)", // 400
506 "green teleporter (292.5\xb0)",
507 "green teleporter (315\xb0)",
508 "green teleporter (337.5\xb0)",
509 "blue teleporter (0\xb0)",
510 "blue teleporter (22.5\xb0)",
511 "blue teleporter (45\xb0)",
512 "blue teleporter (67.5\xb0)",
513 "blue teleporter (90\xb0)",
514 "blue teleporter (112.5\xb0)",
515 "blue teleporter (135\xb0)", // 410
516 "blue teleporter (157.5\xb0)",
517 "blue teleporter (180\xb0)",
518 "blue teleporter (202.5\xb0)",
519 "blue teleporter (225\xb0)",
520 "blue teleporter (247.5\xb0)",
521 "blue teleporter (270\xb0)",
522 "blue teleporter (292.5\xb0)",
523 "blue teleporter (315\xb0)",
524 "blue teleporter (337.5\xb0)",
528 "-------------------------------",
531 int num_element_info_mm = sizeof(element_info_mm) / sizeof(char *);