Skip to content

Commit 55b98fe

Browse files
committed
0.03 cool
1 parent b9fd8f9 commit 55b98fe

File tree

9 files changed

+633
-162
lines changed

9 files changed

+633
-162
lines changed

LevelEditor/levelEditor.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ void saveAs()
339339
unsigned char tlw, tlh;
340340
unsigned char tscx, tscy, tsx, tsy;
341341
unsigned char tex, tey, tes;
342+
bool tswr;
342343
void newF(unsigned char lw, unsigned char lh, bool del = true)
343344
{
344345
globals::fileName = L"![untitledLevel]!";
@@ -355,6 +356,7 @@ void newF(unsigned char lw, unsigned char lh, bool del = true)
355356
globals::g_level->endCX = tex;
356357
globals::g_level->endCY = tey;
357358
globals::g_level->endS = tes;
359+
globals::g_level->startRune = tswr;
358360
globals::curStageX = 0;
359361
globals::curStageY = 0;
360362
unoptimizeCur();
@@ -818,6 +820,9 @@ void pressed(WPARAM key)
818820
case 0x42:
819821
backgroundToggle();
820822
break;
823+
case 0x53:
824+
if (globals::g_modKeys.at(VK_CONTROL)) save();
825+
break;
821826
case 0x57:
822827
globals::loop = !globals::loop;
823828
break;
@@ -1075,6 +1080,9 @@ BOOL CALLBACK newProc(HWND hwndDlg,
10751080
case IDC_RADIOLEFT:
10761081
tes = 3;
10771082
break;
1083+
case IDC_CHECK1SWR:
1084+
tswr = !tswr;
1085+
break;
10781086
case IDOK:
10791087

10801088
case IDCANCEL:

LevelEditor/levelEditor.rc

208 Bytes
Binary file not shown.

LevelEditor/paint.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ void pnt(HWND hWnd, RECT* region)
7676
{
7777
switch (globals::g_level->endS)
7878
{
79-
case 0:
79+
case 1:
8080
FillRect(buffer, &createRECT(0, 0, 768, 3), red);
8181
break;
82-
case 1:
82+
case 2:
8383
FillRect(buffer, &createRECT(765, 0, 768, 576), red);
8484
break;
85-
case 2:
85+
case 3:
8686
FillRect(buffer, &createRECT(0, 573, 768, 576), red);
8787
break;
88-
case 3:
88+
case 0:
8989
FillRect(buffer, &createRECT(0, 0, 3, 576), red);
9090
break;
9191
}

LevelEditor/resource.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
#define IDC_ENDY 1009
2525
#define IDC_STARTY 1011
2626
#define IDC_STARTX 1012
27+
#define IDC_CHECK1 1013
28+
#define IDC_CHECK1SWR 1013
2729
#define IDC_STARTCY 1015
28-
#define IDC_STARTX2 1016
2930
#define IDC_STARTCX 1016
3031
#define ID_FILE_NEW 32771
3132
#define ID_FILE_SAVE 32772
@@ -46,7 +47,7 @@
4647
#define _APS_NO_MFC 1
4748
#define _APS_NEXT_RESOURCE_VALUE 134
4849
#define _APS_NEXT_COMMAND_VALUE 32781
49-
#define _APS_NEXT_CONTROL_VALUE 1012
50+
#define _APS_NEXT_CONTROL_VALUE 1014
5051
#define _APS_NEXT_SYMED_VALUE 110
5152
#endif
5253
#endif

globals.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Globals.h"
22

3-
bool globals::g_debug = true;
3+
bool globals::g_debug = false;
44

55
unsigned int globals::curScreen = 0; //0 is mainmenu, 1 is options, 2 is paused, 3 is level
66
unsigned int globals::prevScreen = 0;

level2.txt

+37-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ M48(s=F)
3030
|030303140303030303030314,
3131
|030303142222030303222214,
3232
|141414141414030303141414;
33+
B030303030303030303030303,
34+
-030303030303030303030303,
35+
-030303030303030303030303,
36+
-030303030303030303030303,
37+
-030303030303030303030303,
38+
-030303030303030303030303,
39+
-030303030303030303030303,
40+
-030303030303030303030303,
41+
-030303030303030303030303;
3342
#stage:3[tileset:1]
3443
=141414141414141414141414,
3544
|140303030303030303030314,
@@ -71,6 +80,15 @@ M86(S=3)
7180
|142222222222220303030303,
7281
|141414141414141414141414,
7382
|141414141414141414141414;
83+
B030303030303030303030303,
84+
-030303030303030303030303,
85+
-030303030303030303030303,
86+
-030303030303030303030303,
87+
-030303030303030303030303,
88+
-030303030303030303030303,
89+
-030303030303030303030303,
90+
-030303030303030303030303,
91+
-030303030303030303030303;
7492
#stage:7[tileset:1]
7593
=141414141414141414141414,
7694
|140303030303030303030314,
@@ -167,6 +185,15 @@ M92(S=2)
167185
|140303010303010303030113,
168186
|130101010101010101010113,
169187
|130101010101010101010113;
188+
B030303030303030303030303,
189+
-030303030303030303030303,
190+
-030303030303030303030303,
191+
-030303030303030303030303,
192+
-030303030303030303030303,
193+
-030303030303030303030303,
194+
-030303030303030303030303,
195+
-030303030303030303030303,
196+
-030303030303030303030303;
170197
#stage:12[tileset:1]
171198
=000000000000000000000014,
172199
|000000000000000000000014,
@@ -250,4 +277,13 @@ M7(S=3)
250277
|010101010101010101010113,
251278
|010101010101010101010113,
252279
|010101010101010101011313,
253-
|131313131313131313131313;
280+
|131313131313131313131313;
281+
B030303030303030303030303,
282+
-030303030303030303030303,
283+
-030303030303030303030303,
284+
-030303030303030303030303,
285+
-030303030303030303030303,
286+
-030303030303030303030303,
287+
-030303030303030303030303,
288+
-030303030303030303030303,
289+
-030303030303030303030303;

0 commit comments

Comments
 (0)