light system seems to work again
[dd2d.git] / data / scripts / maps / map01.dacs
blobf8d5d1ce023722375ff08ad3eb2659ac436a7106
1 /* DooM2D: Midnight on the Firing Line
2  * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
3  * Understanding is not required. Only obedience.
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 module mapsMap01 is "map" "map01";
20 import apiActor;
21 import miscLevellight;
22 import miscAmbientlight;
23 import stdlib;
26 const LYOfs = 1;
28 void putStaticLights () {
29   //miscAmbientlight.spawn(0, 0, 800, 800, 64); return;
31   miscLevellight.spawn( 27, 391-0+LYOfs, 255, 100);
32   miscLevellight.spawn(542, 424-0+LYOfs, 255, 100);
33   miscLevellight.spawn(377, 368-0+LYOfs, 255,  32);
34   miscLevellight.spawn(147, 288-0+LYOfs, 255,  64);
35   miscLevellight.spawn( 71, 200-0+LYOfs, 255, 128);
36   miscLevellight.spawn(249, 200-0+LYOfs, 255, 128);
37   miscLevellight.spawn(426, 200-0+LYOfs, 255, 128);
38   miscLevellight.spawn(624, 200-0+LYOfs, 255, 128);
39   miscLevellight.spawn(549, 298-0+LYOfs, 255,  64);
40   miscLevellight.spawn( 74, 304-0+LYOfs, 255,  32);
42   miscLevellight.spawn(280, 330, 255, 64);
44   // red light
45   miscLevellight.spawn(24*8+4, (24+18)*8-2+LYOfs, 150, 0, 0, 128);
47   //miscAmbientlight.spawn(10, 10, 550, 150, 255);
48   //miscAmbientlight.spawn(10, 10, 550, 350, 128, 0, 0);
52 // called after level map is loaded. you can place static lights here.
53 public void initialize () {
54   putStaticLights();
55   writeln("level 01 initialized");
59 // called after mosters set
60 public void loaded () {
61   writeln("level 01 loaded");
65 // called before level is unloaded (i.e. player finished the level)
66 public void unloading () {
67   writeln("level 01 unloading");
71 // called before monster think
72 public void prethink () {
73   //writeln("level prethink");
77 // called after monster think
78 public void postthink () {
79   //writeln("level postthink");