Browse Source

First commit, 1.0 RC1

master
asciikierka 9 years ago
commit
3fd21ee002

+ 0
- 0
README.txt View File


BIN
data/DSding.raw View File


BIN
data/DSkill.raw View File


BIN
data/DSload.raw View File


BIN
data/DSnew.raw View File


+ 3
- 0
include/DSding_raw.h View File

@@ -0,0 +1,3 @@
1
+extern const u8 DSding_raw_end[];
2
+extern const u8 DSding_raw[];
3
+extern const u32 DSding_raw_size;

+ 3
- 0
include/DSkill_raw.h View File

@@ -0,0 +1,3 @@
1
+extern const u8 DSkill_raw_end[];
2
+extern const u8 DSkill_raw[];
3
+extern const u32 DSkill_raw_size;

+ 3
- 0
include/DSload_raw.h View File

@@ -0,0 +1,3 @@
1
+extern const u8 DSload_raw_end[];
2
+extern const u8 DSload_raw[];
3
+extern const u32 DSload_raw_size;

+ 3
- 0
include/DSnew_raw.h View File

@@ -0,0 +1,3 @@
1
+extern const u8 DSnew_raw_end[];
2
+extern const u8 DSnew_raw[];
3
+extern const u32 DSnew_raw_size;

+ 28
- 0
include/tileedit.h View File

@@ -0,0 +1,28 @@
1
+
2
+//{{BLOCK(tileedit)
3
+
4
+//======================================================================
5
+//
6
+//	tileedit, 216x8@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 27 tiles not compressed
9
+//	Total size: 32 + 864 = 896
10
+//
11
+//	Time-stamp: 2007-09-19, 10:12:11
12
+//	Exported by Cearn's GBA Image Transmogrifier
13
+//	( http://www.coranac.com )
14
+//
15
+//======================================================================
16
+
17
+#ifndef __TILEEDIT__
18
+#define __TILEEDIT__
19
+
20
+#define tileeditPalLen 32
21
+extern const unsigned short tileeditPal[16];
22
+
23
+#define tileeditTilesLen 864
24
+extern const unsigned short tileeditTiles[432];
25
+
26
+#endif // __TILEEDIT__
27
+
28
+//}}BLOCK(tileedit)

+ 2
- 0
include/tonc_memfunc.h View File

@@ -0,0 +1,2 @@
1
+extern "C" void memcpy32(void *dst, const void *src, u32 wdcount);
2
+extern "C" void memset32(void *dst, u32 src, u32 wdn);

+ 32
- 0
include/wireworldTS.h View File

@@ -0,0 +1,32 @@
1
+
2
+//{{BLOCK(wireworldTS)
3
+
4
+//======================================================================
5
+//
6
+//	wireworldTS, 256x192@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 109 tiles (t|f|p reduced) not compressed
9
+//	+ regular map (flat), not compressed, 32x24 
10
+//	Total size: 32 + 3488 + 1536 = 5056
11
+//
12
+//	Time-stamp: 2008-05-02, 18:58:34
13
+//	Exported by Cearn's GBA Image Transmogrifier
14
+//	( http://www.coranac.com )
15
+//
16
+//======================================================================
17
+
18
+#ifndef __WIREWORLDTS__
19
+#define __WIREWORLDTS__
20
+
21
+#define wireworldTSPalLen 32
22
+extern const unsigned int wireworldTSPal[8];
23
+
24
+#define wireworldTSTilesLen 3488
25
+extern const unsigned int wireworldTSTiles[872];
26
+
27
+#define wireworldTSMapLen 1536
28
+extern const unsigned int wireworldTSMap[384];
29
+
30
+#endif // __WIREWORLDTS__
31
+
32
+//}}BLOCK(wireworldTS)

+ 32
- 0
include/wireworld_controls.h View File

@@ -0,0 +1,32 @@
1
+
2
+//{{BLOCK(wireworld_controls)
3
+
4
+//======================================================================
5
+//
6
+//	wireworld_controls, 256x192@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 99 tiles (t|f|p reduced) not compressed
9
+//	+ regular map (flat), not compressed, 32x24 
10
+//	Total size: 32 + 3168 + 1536 = 4736
11
+//
12
+//	Time-stamp: 2007-09-19, 18:14:40
13
+//	Exported by Cearn's GBA Image Transmogrifier
14
+//	( http://www.coranac.com )
15
+//
16
+//======================================================================
17
+
18
+#ifndef __WIREWORLD_CONTROLS__
19
+#define __WIREWORLD_CONTROLS__
20
+
21
+#define wireworld_controlsPalLen 32
22
+extern const unsigned short wireworld_controlsPal[16];
23
+
24
+#define wireworld_controlsTilesLen 3168
25
+extern const unsigned short wireworld_controlsTiles[1584];
26
+
27
+#define wireworld_controlsMapLen 1536
28
+extern const unsigned short wireworld_controlsMap[768];
29
+
30
+#endif // __WIREWORLD_CONTROLS__
31
+
32
+//}}BLOCK(wireworld_controls)

BIN
old/0.6.zip View File


+ 87
- 0
source/tileedit.c View File

@@ -0,0 +1,87 @@
1
+
2
+//{{BLOCK(tileedit)
3
+
4
+//======================================================================
5
+//
6
+//	tileedit, 216x8@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 27 tiles not compressed
9
+//	Total size: 32 + 864 = 896
10
+//
11
+//	Time-stamp: 2007-09-19, 10:12:11
12
+//	Exported by Cearn's GBA Image Transmogrifier
13
+//	( http://www.coranac.com )
14
+//
15
+//======================================================================
16
+
17
+const unsigned short tileeditPal[16]=
18
+{
19
+	0x0000,0x26C4,0x2108,0x7D4A,0x3DEF,0x5AD6,0x107D,0x001F,
20
+	0x233F,0x7FFF,0x7FFF,0x7FFF,0x7FFF,0x7FFF,0x7FFF,0x7FFF,
21
+};
22
+
23
+const unsigned short tileeditTiles[432]=
24
+{
25
+	0x3333,0x0333,0x3333,0x0333,0x3333,0x0333,0x3333,0x0333,
26
+	0x3333,0x0333,0x3333,0x0333,0x3333,0x0333,0x0000,0x0000,
27
+	0x7777,0x0777,0x7777,0x0777,0x7777,0x0777,0x7777,0x0777,
28
+	0x7777,0x0777,0x7777,0x0777,0x7777,0x0777,0x0000,0x0000,
29
+	0x8888,0x0888,0x8888,0x0888,0x8888,0x0888,0x8888,0x0888,
30
+	0x8888,0x0888,0x8888,0x0888,0x8888,0x0888,0x0000,0x0000,
31
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
32
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
33
+
34
+	0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
35
+	0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,0x2222,
36
+	0x2226,0x2422,0x2262,0x2422,0x2622,0x2422,0x6222,0x2422,
37
+	0x2222,0x2426,0x2222,0x2422,0x4444,0x2444,0x2222,0x2222,
38
+	0x3333,0x2433,0x3333,0x2433,0x3333,0x2433,0x3333,0x2433,
39
+	0x3333,0x2433,0x3333,0x2433,0x4444,0x2444,0x2222,0x2222,
40
+	0x0000,0x2400,0x0000,0x2400,0x0000,0x2400,0x0000,0x2400,
41
+	0x0000,0x2400,0x0000,0x2400,0x4444,0x2444,0x2222,0x2222,
42
+
43
+	0x7777,0x2477,0x7777,0x2477,0x7777,0x2477,0x7777,0x2477,
44
+	0x7777,0x2477,0x7777,0x2477,0x4444,0x2444,0x2222,0x2222,
45
+	0x8888,0x2488,0x8888,0x2488,0x8888,0x2488,0x8888,0x2488,
46
+	0x8888,0x2488,0x8888,0x2488,0x4444,0x2444,0x2222,0x2222,
47
+	0x2222,0x2222,0x4442,0x4444,0x2242,0x2222,0x2242,0x2222,
48
+	0x2242,0x2222,0x2242,0x2222,0x2242,0x2222,0x2242,0x2222,
49
+	0x2222,0x2222,0x4444,0x2444,0x2222,0x2411,0x2222,0x2411,
50
+	0x2222,0x2411,0x1222,0x2421,0x1222,0x2421,0x1122,0x2422,
51
+
52
+	0x1142,0x2222,0x1142,0x2222,0x1242,0x2221,0x2242,0x2211,
53
+	0x2242,0x1112,0x2242,0x1122,0x4442,0x4444,0x2222,0x2222,
54
+	0x2112,0x2422,0x2112,0x2422,0x2211,0x2422,0x2211,0x2422,
55
+	0x2221,0x2422,0x2222,0x2422,0x4444,0x2444,0x2222,0x2222,
56
+	0x2222,0x2222,0x4442,0x4444,0x2242,0x2222,0x0242,0x0000,
57
+	0x0242,0x9999,0x0242,0x9999,0x0242,0x9999,0x0242,0x9999,
58
+	0x2222,0x2222,0x4444,0x2444,0x2222,0x2422,0x2200,0x2422,
59
+	0x2099,0x2422,0x0999,0x2422,0x9999,0x2420,0x9999,0x2420,
60
+
61
+	0x2222,0x2222,0x4442,0x4444,0x2242,0x2222,0x2242,0x2222,
62
+	0x2242,0x0022,0x2242,0x5502,0x2242,0x5550,0x2242,0x0550,
63
+	0x0242,0x2055,0x0242,0x2055,0x0242,0x2066,0x0242,0x2066,
64
+	0x0242,0x2000,0x2242,0x2222,0x4442,0x4444,0x2222,0x2222,
65
+	0x5502,0x2420,0x5502,0x2420,0x3302,0x2420,0x3302,0x2420,
66
+	0x0002,0x2420,0x2222,0x2422,0x4444,0x2444,0x2222,0x2222,
67
+	0x3333,0x2933,0x3333,0x2933,0x3333,0x2933,0x3333,0x2933,
68
+	0x3333,0x2933,0x3333,0x2933,0x9999,0x2999,0x2222,0x2222,
69
+
70
+	0x0000,0x2900,0x0000,0x2900,0x0000,0x2900,0x0000,0x2900,
71
+	0x0000,0x2900,0x0000,0x2900,0x9999,0x2999,0x2222,0x2222,
72
+	0x7777,0x2977,0x7777,0x2977,0x7777,0x2977,0x7777,0x2977,
73
+	0x7777,0x2977,0x7777,0x2977,0x9999,0x2999,0x2222,0x2222,
74
+	0x8888,0x2988,0x8888,0x2988,0x8888,0x2988,0x8888,0x2988,
75
+	0x8888,0x2988,0x8888,0x2988,0x9999,0x2999,0x2222,0x2222,
76
+	0x2222,0x2222,0x4442,0x4444,0x2242,0x2222,0x2242,0x2222,
77
+	0x2242,0x2952,0x2242,0x9522,0x2242,0x5222,0x2242,0x2222,
78
+
79
+	0x2222,0x2222,0x4444,0x2444,0x2222,0x2422,0x2222,0x2422,
80
+	0x2222,0x2422,0x2222,0x2422,0x2229,0x2422,0x2295,0x2422,
81
+	0x2222,0x2222,0x4442,0x4444,0x2242,0x2222,0x2242,0x2222,
82
+	0x2242,0x2229,0x2242,0x2292,0x2242,0x2922,0x2242,0x9222,
83
+	0x2222,0x2222,0x4444,0x2444,0x2222,0x2422,0x2222,0x2422,
84
+	0x2292,0x2422,0x2922,0x2422,0x9222,0x2422,0x2222,0x2429,
85
+};
86
+
87
+//}}BLOCK(tileedit)

+ 58
- 0
source/tonc_memfunc.s View File

@@ -0,0 +1,58 @@
1
+@ === void memcpy32(void *dst, const void *src, u32 wdcount) CODE_IN_IWRAM; =============
2
+@ r0, r1: dst, src
3
+@ r2: wdcount, then wdcount>>3
4
+@ r3-r10: data buffer
5
+@ r12: wdn&7
6
+    .align  2
7
+    .code   32
8
+    .global memcpy32
9
+memcpy32:
10
+    and     r12, r2, #7     @ r12= residual word count
11
+    movs    r2, r2, lsr #3  @ r2=block count
12
+    beq     .Lres_cpy32
13
+    push    {r4-r10}
14
+    @ Copy 32byte chunks with 8fold xxmia
15
+    @ r2 in [1,inf>
16
+.Lmain_cpy32:
17
+        ldmia   r1!, {r3-r10}   
18
+        stmia   r0!, {r3-r10}
19
+        subs    r2, #1
20
+        bne     .Lmain_cpy32
21
+    pop     {r4-r10}
22
+    @ And the residual 0-7 words. r12 in [0,7]
23
+.Lres_cpy32:
24
+        subs    r12, #1
25
+        ldrcs   r3, [r1], #4
26
+        strcs   r3, [r0], #4
27
+        bcs     .Lres_cpy32
28
+    bx  lr
29
+
30
+@ === void memset32(void *dst, u32 src, u32 wdn); =====================
31
+	.align	2
32
+	.code	32
33
+	.global	memset32
34
+memset32:
35
+	and		r12, r2, #7
36
+	movs	r2, r2, lsr #3
37
+	beq		.Lres_set32
38
+	push	{r4-r10}
39
+	@ set 32byte chunks with 8fold xxmia
40
+	mov		r3, r1
41
+	mov		r4, r1
42
+	mov		r5, r1
43
+	mov		r6, r1
44
+	mov		r7, r1
45
+	mov		r8, r1
46
+	mov		r9, r1
47
+	mov		r10, r1
48
+.Lmain_set32:
49
+		stmia	r0!, {r3-r10}
50
+		subs	r2, r2, #1
51
+		bhi		.Lmain_set32
52
+	pop		{r4-r10}
53
+	@ residual 0-7 words
54
+.Lres_set32:
55
+		subs	r12, r12, #1
56
+		stmcsia	r0!, {r1}
57
+		bhi		.Lres_set32
58
+	bx	lr

+ 616
- 0
source/wireC.cpp View File

@@ -0,0 +1,616 @@
1
+#include "nds.h"
2
+#include <nds/arm9/sound.h>		// sound functions
3
+#include <nds/timers.h>		// timer functions
4
+#include <tileedit.h>
5
+#include <stdio.h>
6
+#include <string.h>
7
+#include <fat.h>
8
+#include <wireworldTS.h>
9
+#include <wireworld_controls.h>
10
+#include "DSding_raw.h"
11
+#include "DSload_raw.h"
12
+#include "DSkill_raw.h"
13
+#include "DSnew_raw.h"
14
+#include "tonc_memfunc.h"
15
+#define DLDI_BUILD
16
+#define wm_x 128
17
+#define wm_y 128
18
+#define wm_size2 4096
19
+#define wm_size 16384
20
+char maparr[wm_x*wm_y];
21
+char maparr_bk[wm_x*wm_y];
22
+char maparr_sav[wm_x*wm_y];
23
+ 
24
+#define bg0map ((u16*)BG_TILE_RAM_SUB(0))
25
+char charcol;
26
+int dospd,issavst,ison,arrx,arry,edwx,edwy,refscr;
27
+int FATresult,oldtx,oldty;
28
+FILE *testfile;
29
+touchPosition tp;
30
+/* edwx and edwy are the 32x20 editor window's position */
31
+#define TILE_FLIP_X       (1<<10)
32
+#define TILE_FLIP_Y       (2<<10)
33
+#define TILE_FLIP_XY      (3<<10)
34
+#define StylusInBox(x,y,w,h,tp) (tp.x >= x && tp.x < x+w && tp.y >= y && tp.y < y+h)
35
+#define POS2IDX(x, y)    ((x) + ((y)*32))
36
+#define XY2FB(x,y)    ((x) + ((y)*(SCREEN_WIDTH)))
37
+#define TIL_SPACE (RGB15(0,0,0))
38
+#define TIL_TAIL (RGB15(10,10,31))
39
+#define TIL_SPARK (RGB15(31,0,0))
40
+#define TIL_WIRE (RGB15(31,25,9))
41
+#define abs(x) ((x)>0?(x):-(x))
42
+#define xy2m(x,y) ((x) + ((y)*128))
43
+
44
+// eKid's profiling functions
45
+inline void startProfile()
46
+{
47
+    // disable timers
48
+    TIMER0_CR = 0;
49
+    TIMER1_CR = 0;
50
+ 
51
+    // reset counters
52
+    TIMER0_DATA = 0;
53
+    TIMER1_DATA = 0;
54
+ 
55
+    // enable timers
56
+    TIMER1_CR = TIMER_ENABLE | TIMER_CASCADE;
57
+    TIMER0_CR = TIMER_ENABLE;
58
+}
59
+ 
60
+inline u32 endProfile()
61
+{
62
+    // read cycle count
63
+    u32 cycles;
64
+    cycles = (TIMER1_DATA<<16) + TIMER0_DATA;
65
+ 
66
+    // disable timers
67
+    TIMER0_CR = 0;
68
+    TIMER0_CR = 0;
69
+ 
70
+    // return cycle count
71
+    return cycles;
72
+}
73
+
74
+inline void VBLwait(int vblm)
75
+{
76
+  for (int vblw=0; vblw<vblm; vblw++)
77
+   swiWaitForVBlank();
78
+}
79
+
80
+inline void ShowDec(int wah)
81
+{
82
+ lcdSwap();
83
+ BG_PALETTE_SUB[255] = RGB15(31,31,31);
84
+ consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(0), (u16*)CHAR_BASE_BLOCK_SUB(1), 16);
85
+ iprintf("%d cycles",wah);
86
+ while(1)
87
+ {
88
+ swiWaitForVBlank();
89
+ }
90
+}
91
+
92
+inline void ShowErr(char errshow[])
93
+{
94
+ lcdSwap();
95
+ BG_PALETTE_SUB[255] = RGB15(31,31,31);
96
+ consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(0), (u16*)CHAR_BASE_BLOCK_SUB(1), 16);
97
+ iprintf("ERROR! ");
98
+ iprintf(errshow);
99
+ while(1)
100
+ {
101
+ swiWaitForVBlank();
102
+ }
103
+}
104
+
105
+inline void WriteEditStSo(void)
106
+{
107
+if (dospd == 15)
108
+{
109
+ bg0map[POS2IDX(20,21)] = 23;
110
+ bg0map[POS2IDX(21,21)] = 24;
111
+ bg0map[POS2IDX(20,22)] = 23 | TILE_FLIP_Y;
112
+ bg0map[POS2IDX(21,22)] = 24 | TILE_FLIP_Y;
113
+}
114
+else if (dospd == 5)
115
+{
116
+ bg0map[POS2IDX(20,21)] = 25;
117
+ bg0map[POS2IDX(21,21)] = 26;
118
+ bg0map[POS2IDX(20,22)] = 25 | TILE_FLIP_Y;
119
+ bg0map[POS2IDX(21,22)] = 26 | TILE_FLIP_Y;
120
+}
121
+
122
+if (ison == 0)
123
+{
124
+ bg0map[POS2IDX(29,21)] = 10;
125
+ bg0map[POS2IDX(30,21)] = 11;
126
+ bg0map[POS2IDX(29,22)] = 12;
127
+ bg0map[POS2IDX(30,22)] = 13;
128
+}
129
+else
130
+{
131
+ bg0map[POS2IDX(29,21)] = 5 | TILE_FLIP_XY;
132
+ bg0map[POS2IDX(30,21)] = 5 | TILE_FLIP_Y;
133
+ bg0map[POS2IDX(29,22)] = 5 | TILE_FLIP_X;
134
+ bg0map[POS2IDX(30,22)] = 5;
135
+}
136
+}
137
+
138
+inline void ClearMap(int plsnd)
139
+{
140
+ refscr = 1;
141
+ memset32((void*)maparr, ' ', wm_size2);
142
+ if (plsnd == 1)
143
+ {
144
+  playGenericSound(DSnew_raw, DSnew_raw_size);
145
+  VBLwait(7);
146
+ }
147
+}
148
+
149
+inline void ReadWWMap(int plsnd)
150
+{
151
+	if (FATresult == 0)
152
+	 ShowErr("DLDI couldn't load.");
153
+    else if( (testfile = fopen("/wireworld.txt", "r")) == NULL)
154
+	 ShowErr("Can't open wireworld.txt.");
155
+    else
156
+      ClearMap(0);
157
+	  u32 readp;
158
+	  readp = 0;
159
+	  char rdchr;
160
+	  rdchr = ' ';
161
+	  while (feof(testfile) == false)
162
+	   {
163
+	    maparr[readp] = fgetc(testfile);
164
+	    readp++;
165
+	   }
166
+ if (fclose(testfile) == EOF)
167
+   ShowErr("Can't close wireworld.txt.");
168
+ if (plsnd == 1)
169
+ {
170
+  playGenericSound(DSload_raw, DSload_raw_size);
171
+  VBLwait(6);
172
+ }
173
+}
174
+
175
+inline void SaveWWMap(void)
176
+{
177
+    if( (testfile = fopen("/wireworld.txt", "w")) == NULL)
178
+	 ShowErr("Can't open wireworld.txt.");
179
+    for (u32 wrp = 0; wrp < wm_size; wrp++)
180
+	{
181
+	  fputc(maparr[wrp],testfile);
182
+	}
183
+  if (fclose(testfile) == EOF)
184
+   ShowErr("Can't close wireworld.txt.");
185
+}
186
+
187
+inline void drawBresLine(u32 x1, u32 y1, u32 x2, u32 y2, char drawchar)
188
+{
189
+ 
190
+	// Guarantees that all lines go from left to right
191
+	if ( x2 < x1 )
192
+	{
193
+		x1 ^= x2; x2 ^= x1; x1 ^= x2;
194
+		y1 ^= y2; y2 ^= y1; y1 ^= y2;
195
+	}
196
+ 
197
+	s32 dy,dx;
198
+	dy = y2 - y1;
199
+	dx = x2 - x1;
200
+ 
201
+	// If the gradient is greater than one we have to flip the axes
202
+	if ( abs(dy) < dx )
203
+	{
204
+		u32 xp,yp;
205
+		s32 d;
206
+		s32 add = 1;
207
+ 
208
+		xp = x1;
209
+		yp = y1;
210
+ 
211
+		if(dy < 0)
212
+		{
213
+			dy = -dy;
214
+			add =- 1;
215
+		}
216
+ 
217
+		d = 2*dy - dx;
218
+ 
219
+		for(; xp<=x2; xp++)
220
+		{
221
+			if(d > 0)
222
+			{
223
+				yp += add;
224
+				d -= 2 * dx;
225
+			}
226
+ 
227
+			maparr[xy2m(xp,yp)] = drawchar;
228
+ 
229
+			d += 2 * dy;
230
+		}
231
+	}
232
+	else
233
+	{
234
+		x1 ^= y1; y1 ^= x1; x1 ^= y1;
235
+		x2 ^= y2; y2 ^= x2; x2 ^= y2;
236
+ 
237
+		if ( x2 < x1 )
238
+		{
239
+		x1 ^= x2; x2 ^= x1; x1 ^= x2;
240
+		y1 ^= y2; y2 ^= y1; y1 ^= y2;
241
+		}
242
+ 
243
+		u32 xp,yp;
244
+		s32 d;
245
+ 
246
+		dy = y2 - y1;
247
+		dx = x2 - x1;
248
+ 
249
+		s32 add = 1;
250
+ 
251
+		if(dy < 0)
252
+		{
253
+			dy = -dy;
254
+			add=-1;
255
+		}
256
+ 
257
+		xp = x1;
258
+		yp = y1;
259
+ 
260
+		d = 2 * dy - dx;
261
+ 
262
+		for(xp=x1; xp<=x2; xp++) {
263
+ 
264
+			if(d > 0)
265
+			{
266
+				yp += add;
267
+				d -= 2 * dx;
268
+			}
269
+ 
270
+			maparr[xy2m(yp,xp)] = drawchar;
271
+ 
272
+			d += 2 * dy;
273
+		}
274
+	}
275
+}
276
+
277
+inline void KillElectrons(void)
278
+{
279
+ refscr = 1;
280
+ for (int dp=0; dp<wm_size; dp++)
281
+  {
282
+    if (maparr[dp] == '#')
283
+      maparr[dp] = '=';
284
+    else if (maparr[dp] == '-')
285
+      maparr[dp] = '=';
286
+  }
287
+  playGenericSound(DSkill_raw, DSkill_raw_size);
288
+  VBLwait(7);
289
+}
290
+
291
+
292
+inline void GenWindow(void)
293
+{
294
+int mapSpot = (3 || (3 << 8) || (3 << 16) || (3 << 24));
295
+memset((void*)bg0map, mapSpot, 1280);
296
+mapSpot = 0;
297
+char arrSpot = ' ';
298
+for (int dy =0; dy < 20; dy++)
299
+ for (int dx=0; dx < 32; dx++)
300
+  {
301
+   mapSpot = POS2IDX((dx),(dy));
302
+   arrSpot = maparr[((dx+edwx) + ((dy+edwy)*(wm_x)))];
303
+   if (arrSpot == ' ') bg0map[mapSpot] = 3;
304
+   else if (arrSpot == '#') bg0map[mapSpot] = 1;
305
+   else if (arrSpot == '=') bg0map[mapSpot] = 2;
306
+   else if (arrSpot == '-') bg0map[mapSpot] = 0;
307
+
308
+  }
309
+/* Fix of rewriting the 640th tile */
310
+ bg0map[640] = 4;
311
+}
312
+
313
+inline void WriteTop(void)
314
+{
315
+u32 arry, arrx;
316
+  for (arry=0; arry <wm_y; arry++)
317
+    for (arrx=0; arrx <wm_x; arrx+=4)
318
+	{
319
+	 u32 i = arrx+arry*128;
320
+     ((u32*)BG_GFX)[(arrx>>2)+arry*64]= maparr[i] | 
321
+                                    (maparr[i+1]<<8) |
322
+                                    (maparr[i+2]<<16) |
323
+                                    (maparr[i+3]<<24);
324
+	}
325
+}
326
+
327
+inline void WriteMap(void)
328
+{
329
+ WriteTop();
330
+ GenWindow();
331
+}
332
+
333
+inline void toggleOn(void)
334
+{
335
+      if (ison == 1)
336
+	   {
337
+	    if (issavst == 1)
338
+		{
339
+         memcpy32((void*)maparr, (void*)maparr_sav, wm_size2);
340
+        }
341
+	    ison = 0;
342
+	   }
343
+	   else
344
+	   {
345
+	    ison = 1;
346
+	    if (issavst == 1)
347
+		{
348
+         memcpy32((void*)maparr_sav, (void*)maparr, wm_size2);
349
+        }
350
+	   }
351
+  VBLwait(2);
352
+}
353
+
354
+inline void key_setSpeed(void)
355
+{
356
+	   if (dospd == 15)
357
+		 dospd = 5;
358
+       else dospd = 15;
359
+	  WriteEditStSo();
360
+  VBLwait(6);
361
+}
362
+inline void KeyCheck(void)
363
+{
364
+ uint16 tx,ty,tx2,ty2;
365
+/* checking for zoom keys */
366
+ scanKeys();
367
+ uint16 keys_pressed = ~(REG_KEYINPUT);
368
+ if(keys_pressed & KEY_UP)
369
+  if (edwy > 0)
370
+   edwy--;
371
+ if(keys_pressed & KEY_DOWN)
372
+  if (edwy < (wm_y-20))
373
+   edwy++;
374
+ if(keys_pressed & KEY_LEFT)
375
+  if (edwx > 0)
376
+   edwx--;
377
+ if(keys_pressed & KEY_RIGHT)
378
+  if (edwx < (wm_x-32))
379
+   edwx++;
380
+    if(keysDown() & KEY_A)
381
+       toggleOn();
382
+	if(keysDown() & KEY_X)
383
+    {
384
+	   if (issavst == 1)
385
+		 issavst = 0;
386
+       else issavst = 1;
387
+	  swiWaitForVBlank();
388
+	  swiWaitForVBlank();
389
+	}
390
+	if(keysDown() & KEY_Y)
391
+     key_setSpeed();
392
+    if(keysDown() & KEY_L)
393
+	   ReadWWMap(1);
394
+    if(keysDown() & KEY_R)
395
+	   SaveWWMap();
396
+/* checking for editor touch */
397
+oldtx = tp.px;
398
+oldty = tp.py;
399
+tp = touchReadXY();
400
+if ((oldtx == 0) && (oldty == 0))
401
+ {
402
+  oldtx = tp.px;
403
+  oldty = tp.py;
404
+ }
405
+     if ((tp.px >= 15 && tp.px < 31 && tp.py >= 167 && tp.py < 183) == true)
406
+      charcol = ' ';
407
+else if ((tp.px >= 39 && tp.px < 62-7 && tp.py >= 167 && tp.py < 183) == true)
408
+      charcol = '=';
409
+else if ((tp.px >= 63 && tp.px < 86-7 && tp.py >= 167 && tp.py < 183) == true)
410
+      charcol = '#';
411
+else if ((tp.px >= 87 && tp.px < 103 && tp.py >= 167 && tp.py < 183) == true)
412
+      charcol = '-';
413
+else if ((tp.px >= 159 && tp.px < 175 && tp.py >= 167 && tp.py < 183) == true)
414
+      key_setSpeed();
415
+else if ((tp.px >= 183 && tp.px < 199 && tp.py >= 167 && tp.py < 183) == true)
416
+      ClearMap(1);
417
+else if ((tp.px >= 207 && tp.px < 223 && tp.py >= 167 && tp.py < 183) == true)
418
+      KillElectrons();
419
+else if ((tp.px >= 231 && tp.px < 247 && tp.py >= 167 && tp.py < 183) == true
420
+         && 
421
+		 keysDown() & KEY_TOUCH)
422
+toggleOn();
423
+else if ((tp.px >= 2 && tp.px < 254 && tp.py >= 2 && tp.py < 160) == true)
424
+   {
425
+	tx = (tp.px >> 3) + edwx;
426
+	ty = (tp.py >> 3) + edwy;
427
+	tx2 = (oldtx >> 3) + edwx;
428
+	ty2 = (oldty >> 3) + edwy;
429
+	if ((tx == tx2) && (ty == ty2))
430
+	 maparr[xy2m(tx,ty)] = charcol;
431
+	else
432
+	 {
433
+	  drawBresLine(tx2,ty2,tx,ty,charcol);
434
+	 }
435
+	refscr = 1;
436
+   }
437
+}
438
+
439
+inline void GenMake(void)
440
+{
441
+refscr = 1;
442
+int temp = 0;
443
+memcpy32((void*)maparr_bk, (void*)maparr, wm_size2);
444
+for (int dp=0; dp<wm_size; dp++)
445
+     if (maparr_bk[dp] == '#')
446
+     maparr[dp] = '-';
447
+
448
+  	else if (maparr_bk[dp] == '-') 
449
+     maparr[dp] = '=';
450
+	 
451
+	else if (maparr_bk[dp] == '=')
452
+	  {
453
+	   temp = 0;
454
+	   /* oh god i hate this part */
455
+	   for (int ddy=-1; ddy<=1; ddy++)
456
+	    for (int ddx=-1; ddx<=1; ddx++)
457
+             if (maparr_bk[(dp+xy2m(ddx,ddy))] == '#') 
458
+              temp++;
459
+
460
+	   /* Ok, now count it */
461
+	    if ((temp < 3) && (temp > 0))
462
+		   maparr[dp] = '#';
463
+	  }
464
+}
465
+
466
+
467
+inline int sethl(char zz)
468
+{
469
+ if (charcol == zz)
470
+  return 13;
471
+ else
472
+  return 0;
473
+}
474
+
475
+inline void WriteEditorMenu(void)
476
+{
477
+u8 lol;
478
+/* space */
479
+lol = sethl(' ');
480
+bg0map[POS2IDX(2,21)] = (7+lol) | TILE_FLIP_XY;
481
+bg0map[POS2IDX(3,21)] = (7+lol) | TILE_FLIP_Y;
482
+bg0map[POS2IDX(2,22)] = (7+lol) | TILE_FLIP_X;
483
+bg0map[POS2IDX(3,22)] = 7+lol;
484
+/* wire */
485
+lol = sethl('=');
486
+bg0map[POS2IDX(5,21)] = (9+lol) | TILE_FLIP_XY;
487
+bg0map[POS2IDX(6,21)] = (9+lol) | TILE_FLIP_Y;
488
+bg0map[POS2IDX(5,22)] = (9+lol) | TILE_FLIP_X;
489
+bg0map[POS2IDX(6,22)] = 9+lol;
490
+/* spark */
491
+lol = sethl('#');
492
+bg0map[POS2IDX(8,21)] = (8+lol) | TILE_FLIP_XY;
493
+bg0map[POS2IDX(9,21)] = (8+lol) | TILE_FLIP_Y;
494
+bg0map[POS2IDX(8,22)] = (8+lol) | TILE_FLIP_X;
495
+bg0map[POS2IDX(9,22)] = 8+lol;
496
+/* tail */
497
+lol = sethl('-');
498
+bg0map[POS2IDX(11,21)] = (6+lol) | TILE_FLIP_XY;
499
+bg0map[POS2IDX(12,21)] = (6+lol) | TILE_FLIP_Y;
500
+bg0map[POS2IDX(11,22)] = (6+lol) | TILE_FLIP_X;
501
+bg0map[POS2IDX(12,22)] = 6+lol;
502
+/* new */
503
+ bg0map[POS2IDX(23,21)] = 14;
504
+ bg0map[POS2IDX(24,21)] = 15;
505
+ bg0map[POS2IDX(23,22)] = 14 | TILE_FLIP_Y;
506
+ bg0map[POS2IDX(24,22)] = 14 | TILE_FLIP_XY;
507
+/* electron clear */
508
+ bg0map[POS2IDX(26,21)] = 16;
509
+ bg0map[POS2IDX(27,21)] = 16 | TILE_FLIP_X;
510
+ bg0map[POS2IDX(26,22)] = 17;
511
+ bg0map[POS2IDX(27,22)] = 18;
512
+/* start or stop, motion */
513
+WriteEditStSo();
514
+}
515
+
516
+inline void loadMainData(void)
517
+{
518
+ dmaCopy(tileeditTiles, (void*)BG_TILE_RAM_SUB(1), tileeditTilesLen);
519
+ dmaCopy(tileeditPal, BG_PALETTE_SUB, 32);
520
+}
521
+
522
+inline void loadTitleData(void)
523
+{
524
+ memcpy32((void*)BG_MAP_RAM_SUB(0), wireworldTSMap, (wireworldTSMapLen / 4));
525
+ memcpy32((void*)BG_TILE_RAM_SUB(1), wireworldTSTiles, (wireworldTSTilesLen / 4));
526
+ memcpy32(BG_PALETTE_SUB, wireworldTSPal, 8);
527
+ memcpy32((void*)BG_MAP_RAM(2), wireworld_controlsMap, (wireworld_controlsMapLen/4));
528
+ memcpy32((void*)BG_TILE_RAM(3), wireworld_controlsTiles, (wireworld_controlsTilesLen/4));
529
+ memcpy32(BG_PALETTE, wireworld_controlsPal, 8);
530
+}
531
+
532
+inline void setScrPos(void)
533
+{
534
+ s32 ScrTmp = (((edwy + 20) - 64) / 2);
535
+ if (ScrTmp < 0)
536
+  BG3_CY = 0;
537
+ else
538
+  BG3_CY = (ScrTmp << 8);
539
+}
540
+
541
+int main(void)
542
+{
543
+	// irqs are nice
544
+	irqInit();
545
+	irqSet(IRQ_VBLANK, 0);
546
+	irqEnable(IRQ_VBLANK);
547
+	videoSetMode(MODE_0_2D | DISPLAY_BG0_ACTIVE);
548
+	videoSetModeSub(MODE_0_2D | DISPLAY_BG0_ACTIVE);
549
+	vramSetBankA(VRAM_A_MAIN_BG);
550
+	vramSetBankC(VRAM_C_SUB_BG); 
551
+  	SUB_BG0_CR = BG_32x32 | BG_COLOR_16 | BG_MAP_BASE(0) | BG_TILE_BASE(1);
552
+ 	BG0_CR = BG_32x32 | BG_COLOR_16 | BG_MAP_BASE(2) | BG_TILE_BASE(3);
553
+    lcdSwap();
554
+    loadTitleData();
555
+	bool wasSTART = false;
556
+	dospd = 5;
557
+	setGenericSound(	22050,
558
+						127,
559
+						64,
560
+						1 );
561
+	do
562
+     {
563
+	    scanKeys();
564
+		tp = touchReadXY();
565
+	    if (keysDown() & KEY_START) wasSTART = true;
566
+		else if ((keysDown() & KEY_TOUCH) && (tp.px > 3) && (tp.px < 254) && (tp.py < 190) && (tp.py > 3))
567
+		 wasSTART = true;
568
+        swiWaitForVBlank();
569
+	 }
570
+	while (wasSTART == false);
571
+	playGenericSound(DSding_raw, DSding_raw_size);
572
+	
573
+    memset32((void*)VRAM_A, 0, 32768);
574
+	BG0_CR = 0;		
575
+	videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE);	
576
+    lcdSwap();
577
+	loadMainData();
578
+	
579
+   #ifdef DLDI_BUILD
580
+	FATresult = fatInitDefault();
581
+	ReadWWMap(0);
582
+   #endif
583
+	BG3_CR = BG_BMP8_256x256;
584
+	BG_PALETTE[' '] = 0;
585
+    BG_PALETTE['#'] = TIL_SPARK;
586
+	BG_PALETTE['='] = TIL_WIRE;
587
+	BG_PALETTE['-'] = TIL_TAIL;
588
+	BG3_XDX = 1 << 7;
589
+	BG3_YDY = 1 << 7;
590
+	BG3_XDY = 0;
591
+	BG3_YDX = 0;
592
+	BG3_CX = 0;
593
+	BG3_CY = 0;
594
+	for (int t=0; t<640; t++)
595
+	 bg0map[t] = 3;
596
+	for (int t=640; t<768; t++)
597
+	 bg0map[t] = 4;
598
+	refscr = 1;
599
+while(1)
600
+ {
601
+ for (int t=0; t<dospd; t++)
602
+  {
603
+   swiWaitForVBlank();
604
+   KeyCheck();
605
+   
606
+   if (refscr == 1)
607
+   {
608
+	 WriteEditorMenu();
609
+     WriteMap();
610
+	 setScrPos();
611
+   }
612
+  }
613
+ if (ison == 1) GenMake();
614
+ }
615
+return 0;
616
+}

+ 206
- 0
source/wireworldTS.c View File

@@ -0,0 +1,206 @@
1
+
2
+//{{BLOCK(wireworldTS)
3
+
4
+//======================================================================
5
+//
6
+//	wireworldTS, 256x192@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 109 tiles (t|f|p reduced) not compressed
9
+//	+ regular map (flat), not compressed, 32x24 
10
+//	Total size: 32 + 3488 + 1536 = 5056
11
+//
12
+//	Time-stamp: 2008-05-02, 18:58:34
13
+//	Exported by Cearn's GBA Image Transmogrifier
14
+//	( http://www.coranac.com )
15
+//
16
+//======================================================================
17
+
18
+const unsigned int wireworldTSPal[8]=
19
+{
20
+	0x00150000,0x0180294A,0x18DB56B5,0x12392BEA,0x22BD7FFF,0x167A0501,0x00000000,0x00000000,
21
+};
22
+
23
+const unsigned int wireworldTSTiles[872]=
24
+{
25
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
26
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x11111100,0x00000100,
27
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x11111111,0x00000000,
28
+	0x00000100,0x11100100,0x00100100,0x00100100,0x00100100,0x00100100,0x11100100,0x00000100,
29
+	0x00000000,0x11100111,0x00100100,0x00100100,0x00500500,0x00500500,0x55500555,0x00000000,
30
+	0x00000000,0x55500555,0x00500500,0x00500500,0x00500500,0x00500500,0x00500555,0x00500000,
31
+	0x00000000,0x55555555,0x00000000,0x00000000,0x00222220,0x02200022,0x02220022,0x02202022,
32
+	0x00000000,0x55500555,0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,
33
+
34
+	0x00000000,0x55555555,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
35
+	0x00000000,0x55555555,0x00000000,0x00000000,0x00022000,0x00022200,0x00022220,0x00022000,
36
+	0x00500000,0x00500555,0x00500500,0x00500500,0x00500500,0x00500500,0x00500555,0x00500000,
37
+	0x02200222,0x02200022,0x00222220,0x00000000,0x00022000,0x00022200,0x00022220,0x00022000,
38
+	0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,0x00500500,
39
+	0x00022000,0x00022000,0x02222220,0x00000000,0x00222220,0x02200022,0x02220022,0x02202022,
40
+	0x00022000,0x00022000,0x02222220,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
41
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
42
+
43
+	0x00100000,0x00100111,0x00100100,0x00100100,0x00000000,0x00000000,0x55555555,0x00000000,
44
+	0x02200222,0x02200022,0x00222220,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
45
+	0x00000000,0x55555555,0x00000000,0x00000000,0x00100100,0x00100100,0x00100100,0x00100100,
46
+	0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x11100100,0x00000100,
47
+	0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x11100111,0x00000000,
48
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00033333,
49
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,
50
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00033000,0x00033000,0x00033000,0x33333000,
51
+
52
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00033000,0x00033000,0x00000000,0x33333333,
53
+	0x00000000,0x11111111,0x00000000,0x00000000,0x000AA000,0x000AA000,0x000AA000,0x000AA000,
54
+	0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,0x00100100,
55
+	0x00033333,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033033,
56
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00000000,0x33333333,
57
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
58
+	0x33333000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
59
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033033,
60
+
61
+	0x000AA000,0x000AA000,0x000AA000,0x000AA000,0x00033000,0x00033000,0x00000000,0x33333333,
62
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033333,
63
+	0x33333000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33333033,
64
+	0x33333000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33333333,
65
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033333,
66
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33333333,
67
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,0x00000000,0x33333333,
68
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x04400044,0x04400044,
69
+
70
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00044000,0x00000000,0x00044000,0x00044000,
71
+	0x33033033,0x00033000,0x00033000,0x00033000,0x00000000,0x00000000,0x00444444,0x04400044,
72
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00444440,0x04400044,
73
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00000000,0x00000000,0x00444444,0x04400044,
74
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00044400,0x00044000,0x00044000,0x00044000,
75
+	0x33333333,0x00000000,0x00000000,0x00000000,0x04400000,0x04400000,0x04444400,0x04400440,
76
+	0x33033333,0x00033000,0x00033000,0x00033000,0x00BB9999,0x0BB00099,0x0BB00099,0x0BB00099,
77
+	0x33333033,0x00000000,0x00000000,0x00000000,0x00BB9990,0x0BB00099,0x00000990,0x000B9900,
78
+
79
+	0x00033333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
80
+	0x44444444,0x00000000,0x00000000,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,
81
+	0x04400044,0x04404044,0x00444440,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
82
+	0x00044000,0x00044000,0x00044000,0x00000000,0x00033000,0x00033000,0x00033000,0x33333000,
83
+	0x00000044,0x00000044,0x00000044,0x00000000,0x00033000,0x00033000,0x00033000,0x33033033,
84
+	0x00444444,0x00000044,0x04444440,0x00000000,0x00033000,0x00033000,0x00000000,0x33333333,
85
+	0x04400044,0x04404044,0x00444440,0x00000000,0x00000000,0x00000000,0x00000000,0x00033333,
86
+	0x04400044,0x04400044,0x00444440,0x00000000,0x00000000,0x00000000,0x00000000,0x33333000,
87
+
88
+	0x00000044,0x00000044,0x00000044,0x00000000,0x00033000,0x00033000,0x00000000,0x33333333,
89
+	0x00044000,0x00044000,0x00044000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
90
+	0x04400440,0x04400440,0x04444400,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
91
+	0x077000BB,0x077000BB,0x0077BBBB,0x00000000,0x00033000,0x00033000,0x00033000,0x33033033,
92
+	0x00770000,0x077000BB,0x0077BBB0,0x00000000,0x00033000,0x00033000,0x00033000,0x00033333,
93
+	0x04444444,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
94
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33333333,
95
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033333,
96
+
97
+	0x33333333,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033333,
98
+	0x00033333,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033333,
99
+	0x00033333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00033333,
100
+	0x33033333,0x00033000,0x00033000,0x00033000,0x00000000,0x00000000,0x00666666,0x06600066,
101
+	0x00033333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00666666,0x06600066,
102
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00000000,0x00000000,0x00666660,0x06600066,
103
+	0x000AA000,0x000AA000,0x000AA000,0x000AA000,0x00000000,0x00000000,0x06666660,0x00000066,
104
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x06666660,0x00000066,
105
+
106
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
107
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033033,
108
+	0x00666666,0x00000066,0x00000066,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,
109
+	0x00000066,0x00000066,0x00000066,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
110
+	0x00666666,0x00000066,0x06666660,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
111
+	0x00666660,0x06600000,0x00666666,0x00000000,0x000AA000,0x000AA000,0x000AA000,0x000AA000,
112
+	0x00666660,0x06600000,0x00666666,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
113
+	0x33333000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033333,
114
+
115
+	0x33333333,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x33033033,
116
+	0x33333000,0x00033000,0x00033000,0x00033000,0x00000000,0x00000000,0x07777770,0x00000000,
117
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00888880,0x08800088,0x00000880,0x00088800,
118
+	0x00000000,0x00000000,0x00000000,0x00000000,0x08888880,0x00088000,0x00088000,0x00088000,
119
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00088800,0x00880880,0x08800088,0x08800088,
120
+	0x000AA000,0x000AA000,0x000AA000,0x000AA000,0x00888888,0x08800088,0x08800088,0x00888888,
121
+	0x00033333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x07777770,0x00000000,
122
+	0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00033000,0x00000000,
123
+
124
+	0x0BBBBBBB,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
125
+	0x00000000,0x0BBBBBB0,0x00000000,0x00000000,0x00033000,0x00033000,0x00000000,0x33333333,
126
+	0x00880000,0x08800088,0x00888880,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
127
+	0x00088000,0x00088000,0x00088000,0x00000000,0x00000000,0x00000000,0x00000000,0x33333333,
128
+	0x08888888,0x08800088,0x08800088,0x00000000,0x00033000,0x00033000,0x00033000,0x00033333,
129
+	0x08800088,0x08800088,0x08800088,0x00000000,0x000AA000,0x000AA000,0x000AA000,0x000AA000,
130
+	0x00088000,0x00088000,0x00088000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
131
+	0x00000000,0x0BBBBBB0,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
132
+
133
+	0xBBBBBBBB,0x00000000,0x00000000,0x00000000,0x00033000,0x00033000,0x00033000,0x00033000,
134
+	0x33333333,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x11111111,0x00000000,
135
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00099000,0x00099900,0x00099990,0x00099000,
136
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00BBBBB0,0x0BB000BB,0x0BBB00BB,0x0BB0B0BB,
137
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00BBBBBB,0x0BB000BB,0x0BB000BB,0x00BBBBBB,
138
+	0x00000100,0x11111100,0x00000000,0x00000000,0x00777770,0x07700077,0x00000077,0x00000077,
139
+	0x00000000,0x11111111,0x00000000,0x00000000,0x00077000,0x00077700,0x00077770,0x00077000,
140
+	0x00099000,0x00099000,0x09999990,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
141
+
142
+	0x00000000,0x00099000,0x00099000,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
143
+	0x0BB00BBB,0x0BB000BB,0x00BBBBB0,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
144
+	0x0BB000BB,0x0BB000BB,0x0BB000BB,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
145
+	0x00000077,0x07700077,0x00777770,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
146
+	0x00077000,0x00077000,0x07777770,0x00000000,0x00000000,0x00000000,0x55555555,0x00000000,
147
+};
148
+
149
+const unsigned int wireworldTSMap[384]=
150
+{
151
+	0x00020001,0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,
152
+	0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,0x00020002,0x04010002,
153
+	0x00040003,0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,
154
+	0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,0x00040004,0x04030004,
155
+	0x00050003,0x00060006,0x00080007,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,
156
+	0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00070008,0x00090006,0x04030405,
157
+	0x000A0003,0x000B000B,0x0002000C,0x00000401,0x00000000,0x00000000,0x00000000,0x00000000,
158
+	0x00000000,0x00000000,0x00000000,0x00000000,0x00010000,0x000C0002,0x000D000B,0x0403040A,
159
+
160
+	0x08050003,0x000E000E,0x000F0807,0x08080010,0x08080808,0x08080808,0x08080808,0x08080808,
161
+	0x08080808,0x08080808,0x08080808,0x08080808,0x04100808,0x0807000F,0x0011000E,0x04030C05,
162
+	0x00050003,0x00120008,0x00080007,0x00080012,0x00080008,0x00080008,0x00080008,0x00080008,
163
+	0x00080008,0x00080008,0x00080008,0x00080008,0x00120008,0x00070008,0x00080012,0x04030405,
164
+	0x000A0003,0x00130000,0x0002000C,0x00020014,0x00020002,0x00020002,0x00020002,0x00020002,
165
+	0x00020002,0x00020002,0x00020002,0x00020002,0x00140002,0x000C0002,0x00000413,0x0403040A,
166
+	0x000A0003,0x08010000,0x0802000C,0x00150814,0x08020016,0x00170802,0x04170018,0x08020802,
167
+	0x08020019,0x08020802,0x00170016,0x04150417,0x08140018,0x000C0802,0x00000C01,0x0403040A,
168
+
169
+	0x000A0003,0x00000000,0x0000000C,0x001B001A,0x001D001C,0x001E001D,0x041E001F,0x001D001D,
170
+	0x001D0020,0x001D001D,0x00220021,0x0023041E,0x001A0024,0x000C0000,0x00000000,0x0403040A,
171
+	0x000A0003,0x00000000,0x0000000C,0x0C1B001A,0x00260025,0x00280027,0x002A0029,0x002A0027,
172
+	0x002C002B,0x081D002D,0x002F002E,0x081D081D,0x001A0030,0x000C0000,0x00000000,0x0403040A,
173
+	0x000A0003,0x00000000,0x0000000C,0x0430001A,0x081C0031,0x00330032,0x00350034,0x00370036,
174
+	0x00390038,0x001D003A,0x003C003B,0x003D0000,0x001A0000,0x000C0000,0x00000000,0x0403040A,
175
+	0x000A0003,0x00000000,0x0000000C,0x001D001A,0x003F003E,0x04300000,0x00400C1B,0x0C3F0041,
176
+	0x081D0820,0x081E081D,0x0042081F,0x00000000,0x001A0000,0x000C0000,0x00000000,0x0403040A,
177
+
178
+	0x000A0003,0x00000000,0x0000000C,0x081D001A,0x083F083E,0x00000000,0x00430430,0x00450044,
179
+	0x00470046,0x0C24001D,0x04230048,0x0C300830,0x001A001D,0x000C0000,0x00000000,0x0403040A,
180
+	0x000A0003,0x00000000,0x0000000C,0x001D001A,0x003F0049,0x0C300000,0x004A0830,0x004C004B,
181
+	0x004E004D,0x00240823,0x081E081C,0x004F001B,0x001A081D,0x000C0000,0x00000000,0x0403040A,
182
+	0x000A0003,0x00000000,0x0000000C,0x0050001A,0x083F081B,0x00510000,0x00520041,0x00540053,
183
+	0x00530055,0x00560430,0x04410057,0x0030081B,0x001A0000,0x000C0000,0x00000000,0x0403040A,
184
+	0x000A0003,0x00000000,0x0000000C,0x0849001A,0x043F0030,0x00590058,0x005A041E,0x005C005B,
185
+	0x005E005D,0x005F0000,0x04300060,0x00000030,0x001A0C30,0x000C0000,0x00000000,0x0403040A,
186
+
187
+	0x000A0003,0x00010000,0x0002000C,0x08160014,0x08170002,0x08180061,0x00610061,0x08150061,
188
+	0x00020819,0x00020002,0x00020816,0x00020002,0x00140817,0x000C0002,0x00000401,0x0403040A,
189
+	0x000A0003,0x08130000,0x0802000C,0x08020814,0x08020802,0x08020802,0x08020802,0x08020802,
190
+	0x08020802,0x08020802,0x08020802,0x08020802,0x08140802,0x000C0802,0x00000C13,0x0403040A,
191
+	0x08050003,0x08120808,0x08080807,0x08080812,0x08080808,0x08080808,0x08080808,0x08080808,
192
+	0x08080808,0x08080808,0x08080808,0x08080808,0x08120808,0x08070808,0x08080812,0x04030C05,
193
+	0x00050003,0x00060009,0x080F0007,0x00080810,0x00080008,0x00080008,0x00080008,0x00080008,
194
+	0x00080008,0x00080008,0x00080008,0x00080008,0x0C100008,0x0007080F,0x00090009,0x04030405,
195
+
196
+	0x000A0003,0x000B000D,0x0802000C,0x00000C01,0x00000000,0x00000000,0x00000000,0x00000000,
197
+	0x00000000,0x00000000,0x00000062,0x00000063,0x00650064,0x000C0066,0x000D000D,0x0403040A,
198
+	0x08050003,0x000E0011,0x08080807,0x08080808,0x08080808,0x08080808,0x08080808,0x08080808,
199
+	0x08080808,0x08080808,0x00680067,0x08080069,0x006B006A,0x0807006C,0x00110011,0x04030C05,
200
+	0x08040003,0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,
201
+	0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,0x08040804,0x04030804,
202
+	0x08020801,0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,
203
+	0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,0x08020802,0x0C010802,
204
+};
205
+
206
+//}}BLOCK(wireworldTS)

+ 361
- 0
source/wireworld_controls.c View File

@@ -0,0 +1,361 @@
1
+
2
+//{{BLOCK(wireworld_controls)
3
+
4
+//======================================================================
5
+//
6
+//	wireworld_controls, 256x192@4, 
7
+//	+ palette 16 entries, not compressed
8
+//	+ 99 tiles (t|f|p reduced) not compressed
9
+//	+ regular map (flat), not compressed, 32x24 
10
+//	Total size: 32 + 3168 + 1536 = 4736
11
+//
12
+//	Time-stamp: 2007-09-19, 18:14:40
13
+//	Exported by Cearn's GBA Image Transmogrifier
14
+//	( http://www.coranac.com )
15
+//
16
+//======================================================================
17
+
18
+const unsigned short wireworld_controlsPal[16]=
19
+{
20
+	0x0000,0x56A0,0x56B5,0x294A,0x1239,0x2BEA,0x22BD,0x167A,
21
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
22
+};
23
+
24
+const unsigned short wireworld_controlsTiles[1584]=
25
+{
26
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
27
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
28
+	0x4440,0x0044,0x0044,0x0440,0x0044,0x0000,0x0044,0x0000,
29
+	0x0044,0x0000,0x0044,0x0440,0x4440,0x0044,0x0000,0x0000,
30
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0044,0x0044,0x0440,
31
+	0x0044,0x0440,0x0044,0x0440,0x4440,0x0044,0x0000,0x0000,
32
+	0x0000,0x0000,0x0000,0x0000,0x4444,0x0044,0x0044,0x0440,
33
+	0x0044,0x0440,0x0044,0x0440,0x0044,0x0440,0x0000,0x0000,
34
+
35
+	0x0044,0x0000,0x0044,0x0000,0x4444,0x0444,0x0044,0x0000,
36
+	0x0044,0x0000,0x0044,0x0000,0x4440,0x0444,0x0000,0x0000,
37
+	0x0000,0x0000,0x0000,0x0000,0x4444,0x0044,0x0044,0x0440,
38
+	0x0044,0x0000,0x0044,0x0000,0x0044,0x0000,0x0000,0x0000,
39
+	0x4400,0x0004,0x4000,0x0004,0x4000,0x0004,0x4000,0x0004,
40
+	0x4000,0x0004,0x4000,0x0004,0x4000,0x0004,0x0000,0x0000,
41
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0444,0x0044,0x0000,
42
+	0x4440,0x0044,0x0000,0x0440,0x4444,0x0044,0x0000,0x0000,
43
+
44
+	0x0000,0x0044,0x4000,0x0004,0x4400,0x0000,0x4400,0x0000,
45
+	0x4400,0x0000,0x4000,0x0004,0x0000,0x0044,0x0000,0x0000,
46
+	0x4000,0x0004,0x0000,0x0000,0x4000,0x0004,0x4000,0x0004,
47
+	0x4000,0x0004,0x4000,0x0004,0x4000,0x0004,0x0000,0x0000,
48
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0044,0x0044,0x0440,
49
+	0x0044,0x0000,0x0044,0x0440,0x4440,0x0044,0x0000,0x0000,
50
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0044,0x0044,0x0440,
51
+	0x0044,0x0444,0x4044,0x0444,0x4440,0x0440,0x0000,0x0000,
52
+
53
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0044,0x0044,0x0440,
54
+	0x4444,0x0044,0x0044,0x0000,0x4440,0x0444,0x0000,0x0000,
55
+	0x0000,0x0000,0x0000,0x0000,0x0044,0x0440,0x0044,0x0440,
56
+	0x4440,0x0444,0x0000,0x0440,0x4444,0x0044,0x0000,0x0000,
57
+	0x0000,0x0000,0x0000,0x0000,0x0044,0x0440,0x0044,0x0440,
58
+	0x0044,0x0440,0x0044,0x0440,0x4440,0x0044,0x0000,0x0000,
59
+	0x4400,0x0444,0x0440,0x0000,0x4440,0x0044,0x0440,0x0000,
60
+	0x0440,0x0000,0x0440,0x0000,0x0440,0x0000,0x0000,0x0000,
61
+
62
+	0x0000,0x0000,0x0000,0x0000,0x4440,0x0044,0x0044,0x0440,
63
+	0x4440,0x0444,0x0000,0x0440,0x4444,0x0044,0x0000,0x0000,
64
+	0x4000,0x0004,0x4000,0x0004,0x0000,0x0000,0x0000,0x0000,
65
+	0x4000,0x0004,0x4000,0x0004,0x0000,0x0000,0x0000,0x0000,
66
+	0x0022,0x0000,0x0022,0x0000,0x0022,0x0000,0x0022,0x0000,
67
+	0x0022,0x0000,0x0022,0x0000,0x2222,0x0222,0x0000,0x0000,
68
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
69
+	0x2222,0x0222,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
70
+
71
+	0x1100,0x0001,0x1000,0x0001,0x1000,0x0001,0x1000,0x0001,
72
+	0x1000,0x0001,0x1000,0x0001,0x1000,0x0001,0x0000,0x0000,
73
+	0x0000,0x0000,0x0000,0x0000,0x1110,0x0011,0x0011,0x0110,
74
+	0x0011,0x0110,0x0011,0x0110,0x1110,0x0011,0x0000,0x0000,
75
+	0x0000,0x0000,0x0000,0x0000,0x1110,0x0011,0x0011,0x0110,
76
+	0x0011,0x0111,0x1011,0x0111,0x1110,0x0110,0x0000,0x0000,
77
+	0x0000,0x0110,0x0000,0x0110,0x1100,0x0111,0x0110,0x0110,
78
+	0x0110,0x0110,0x0110,0x0110,0x1100,0x0111,0x0000,0x0000,
79
+
80
+	0x1100,0x0111,0x0110,0x0000,0x1110,0x0011,0x0110,0x0000,
81
+	0x0110,0x0000,0x0110,0x0000,0x0110,0x0000,0x0000,0x0000,
82
+	0x1000,0x0001,0x0000,0x0000,0x1000,0x0001,0x1000,0x0001,
83
+	0x1000,0x0001,0x1000,0x0001,0x1000,0x0001,0x0000,0x0000,
84
+	0x0000,0x0000,0x0000,0x0000,0x1110,0x0011,0x0011,0x0110,
85
+	0x1111,0x0011,0x0011,0x0000,0x1110,0x0111,0x0000,0x0000,
86
+	0x2222,0x0022,0x0022,0x0220,0x0022,0x0220,0x2222,0x0022,
87
+	0x0022,0x0220,0x0022,0x0220,0x0022,0x0220,0x0000,0x0000,
88
+
89
+	0x0000,0x0000,0x0000,0x0000,0x1110,0x0111,0x0011,0x0000,
90
+	0x1110,0x0011,0x0000,0x0110,0x1111,0x0011,0x0000,0x0000,
91
+	0x0000,0x0000,0x0000,0x0000,0x0011,0x0110,0x0011,0x0110,
92
+	0x0110,0x0011,0x1100,0x0001,0x1000,0x0000,0x0000,0x0000,
93
+	0x0022,0x0220,0x0220,0x0022,0x2200,0x0002,0x2200,0x0002,
94
+	0x2200,0x0002,0x0220,0x0022,0x0022,0x0220,0x0000,0x0000,
95
+	0x0011,0x0000,0x0011,0x0000,0x1111,0x0111,0x0011,0x0000,
96
+	0x0011,0x0000,0x0011,0x0000,0x1110,0x0111,0x0000,0x0000,
97
+
98
+	0x0000,0x0000,0x0000,0x0000,0x1110,0x0011,0x0011,0x0110,
99
+	0x1110,0x0111,0x0000,0x0110,0x1111,0x0011,0x0000,0x0000,
100
+	0x0000,0x0000,0x0000,0x0000,0x0011,0x0110,0x0011,0x0110,
101
+	0x0011,0x0110,0x1011,0x0110,0x1110,0x0011,0x0000,0x0000,
102
+	0x0000,0x0000,0x0000,0x0000,0x1111,0x0011,0x0011,0x0110,
103
+	0x0011,0x0110,0x0011,0x0110,0x0011,0x0110,0x0000,0x0000,
104
+	0x0000,0x0000,0x0000,0x0000,0x1111,0x0011,0x0011,0x0110,
105
+	0x0011,0x0000,0x0011,0x0000,0x0011,0x0000,0x0000,0x0000,
106
+
107
+	0x0110,0x0000,0x0110,0x0000,0x1110,0x0011,0x0110,0x0110,
108
+	0x0110,0x0110,0x0110,0x0110,0x0110,0x0110,0x0000,0x0000,
109
+	0x0000,0x0000,0x0000,0x0000,0x1111,0x0011,0x0011,0x0110,
110
+	0x1111,0x0011,0x0011,0x0000,0x0011,0x0000,0x0000,0x0000,
111
+	0x0000,0x0000,0x0000,0x0000,0x0011,0x0110,0x0011,0x0110,
112
+	0x0011,0x0110,0x0011,0x0110,0x1110,0x0011,0x0000,0x0000,
113
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x1000,0x0001,
114
+	0x1000,0x0001,0x1000,0x0001,0x1100,0x0000,0x0000,0x0000,
115
+
116
+	0x7770,0x0777,0x7000,0x0007,0x7000,0x0007,0x7000,0x0007,
117
+	0x7000,0x0007,0x7000,0x0007,0x7000,0x0007,0x0000,0x0000,
118
+	0x0770,0x0000,0x0770,0x0000,0x7770,0x0077,0x0770,0x0770,
119
+	0x0770,0x0770,0x0770,0x0770,0x0770,0x0770,0x0000,0x0000,
120
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0077,0x0077,0x0770,
121
+	0x7777,0x0077,0x0077,0x0000,0x7770,0x0777,0x0000,0x0000,
122
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0777,0x0077,0x0000,
123
+	0x7770,0x0077,0x0000,0x0770,0x7777,0x0077,0x0000,0x0000,
124
+
125
+	0x0770,0x0000,0x0770,0x0000,0x7770,0x0077,0x0770,0x0770,
126
+	0x0770,0x0770,0x0770,0x0770,0x7770,0x0077,0x0000,0x0000,
127
+	0x0000,0x0000,0x0000,0x0000,0x0077,0x0770,0x0077,0x0770,
128
+	0x0077,0x0770,0x0077,0x0770,0x7770,0x0077,0x0000,0x0000,
129
+	0x0077,0x0000,0x0077,0x0000,0x7777,0x0777,0x0077,0x0000,
130
+	0x0077,0x0000,0x0077,0x0000,0x7770,0x0777,0x0000,0x0000,
131
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0077,0x0077,0x0770,
132
+	0x0077,0x0770,0x0077,0x0770,0x7770,0x0077,0x0000,0x0000,
133
+
134
+	0x0000,0x0000,0x0000,0x0000,0x7777,0x0077,0x0077,0x0770,
135
+	0x0077,0x0770,0x0077,0x0770,0x0077,0x0770,0x0000,0x0000,
136
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0077,0x0077,0x0770,
137
+	0x0077,0x0777,0x7077,0x0777,0x7770,0x0770,0x0000,0x0000,
138
+	0x0000,0x0000,0x0000,0x0000,0x0077,0x0770,0x0077,0x0770,
139
+	0x0770,0x0077,0x7700,0x0007,0x7000,0x0000,0x0000,0x0000,
140
+	0x7000,0x0007,0x0000,0x0000,0x7000,0x0007,0x7000,0x0007,
141
+	0x7000,0x0007,0x7000,0x0007,0x7000,0x0007,0x0000,0x0000,
142
+
143
+	0x0000,0x0000,0x0000,0x0000,0x7777,0x0077,0x0077,0x0770,
144
+	0x0077,0x0000,0x0077,0x0000,0x0077,0x0000,0x0000,0x0000,
145
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0777,0x0077,0x0770,
146
+	0x7770,0x0777,0x0000,0x0770,0x0000,0x0770,0x0000,0x0000,
147
+	0x7700,0x0007,0x7000,0x0007,0x7000,0x0007,0x7000,0x0007,
148
+	0x7000,0x0007,0x7000,0x0007,0x7000,0x0007,0x0000,0x0000,
149
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0077,0x7077,0x0770,
150
+	0x0077,0x0770,0x0077,0x0770,0x0077,0x0770,0x0000,0x0000,
151
+
152
+	0x0000,0x0000,0x0000,0x0000,0x7770,0x0077,0x0077,0x0770,
153
+	0x0077,0x0000,0x0077,0x0770,0x7770,0x0077,0x0000,0x0000,
154
+	0x7000,0x0007,0x7000,0x0007,0x0000,0x0000,0x0000,0x0000,
155
+	0x7000,0x0007,0x7000,0x0007,0x0000,0x0000,0x0000,0x0000,
156
+	0x0022,0x0220,0x0022,0x0220,0x0022,0x0220,0x2220,0x0222,
157
+	0x0000,0x0220,0x0000,0x0220,0x2222,0x0022,0x0000,0x0000,
158
+	0x0000,0x0100,0x0000,0x0110,0x0000,0x0011,0x1000,0x0001,
159
+	0x1100,0x0000,0x0110,0x0000,0x0011,0x0000,0x0001,0x0000,
160
+
161
+	0x2200,0x0002,0x0220,0x0022,0x0022,0x0220,0x0022,0x0220,
162
+	0x2222,0x0222,0x0022,0x0220,0x0022,0x0220,0x0000,0x0000,
163
+	0x5550,0x0555,0x5000,0x0005,0x5000,0x0005,0x5000,0x0005,
164
+	0x5000,0x0005,0x5000,0x0005,0x5000,0x0005,0x0000,0x0000,
165
+	0x0000,0x0000,0x0000,0x0000,0x5550,0x0055,0x0055,0x0550,
166
+	0x0055,0x0550,0x0055,0x0550,0x5550,0x0055,0x0000,0x0000,
167
+	0x0000,0x0000,0x0000,0x0000,0x0055,0x0550,0x0055,0x0550,
168
+	0x0055,0x0550,0x0055,0x0550,0x5550,0x0055,0x0000,0x0000,
169
+
170
+	0x0000,0x0000,0x0000,0x0000,0x5550,0x0055,0x0055,0x0550,
171
+	0x0055,0x0000,0x0055,0x0550,0x5550,0x0055,0x0000,0x0000,
172
+	0x0550,0x0000,0x0550,0x0000,0x5550,0x0055,0x0550,0x0550,
173
+	0x0550,0x0550,0x0550,0x0550,0x0550,0x0550,0x0000,0x0000,
174
+	0x0000,0x0000,0x0000,0x0000,0x5550,0x0555,0x0055,0x0000,
175
+	0x5550,0x0055,0x0000,0x0550,0x5555,0x0055,0x0000,0x0000,
176
+	0x0000,0x0000,0x0000,0x0000,0x5555,0x0055,0x0055,0x0550,
177
+	0x0055,0x0000,0x0055,0x0000,0x0055,0x0000,0x0000,0x0000,
178
+
179
+	0x0000,0x0000,0x0000,0x0000,0x5550,0x0055,0x0055,0x0550,
180
+	0x5555,0x0055,0x0055,0x0000,0x5550,0x0555,0x0000,0x0000,
181
+	0x0000,0x0000,0x0000,0x0000,0x5555,0x0055,0x0055,0x0550,
182
+	0x0055,0x0550,0x0055,0x0550,0x0055,0x0550,0x0000,0x0000,
183
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x0066,0x0660,
184
+	0x0066,0x0000,0x0066,0x0660,0x6660,0x0066,0x0000,0x0000,
185
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x0066,0x0660,
186
+	0x0066,0x0666,0x6066,0x0666,0x6660,0x0660,0x0000,0x0000,
187
+
188
+	0x0000,0x0000,0x0000,0x0000,0x6666,0x0066,0x0066,0x0660,
189
+	0x0066,0x0660,0x0066,0x0660,0x0066,0x0660,0x0000,0x0000,
190
+	0x6600,0x0006,0x6000,0x0006,0x6000,0x0006,0x6000,0x0006,
191
+	0x6000,0x0006,0x6000,0x0006,0x6000,0x0006,0x0000,0x0000,
192
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0666,0x0066,0x0000,
193
+	0x6660,0x0066,0x0000,0x0660,0x6666,0x0066,0x0000,0x0000,
194
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x0066,0x0660,
195
+	0x0066,0x0660,0x0066,0x0660,0x6660,0x0066,0x0000,0x0000,
196
+
197
+	0x0660,0x0000,0x0660,0x0000,0x6660,0x0066,0x0660,0x0660,
198
+	0x0660,0x0660,0x0660,0x0660,0x6660,0x0066,0x0000,0x0000,
199
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x0066,0x0660,
200
+	0x6666,0x0066,0x0066,0x0000,0x6660,0x0666,0x0000,0x0000,
201
+	0x0000,0x0000,0x0000,0x0000,0x0066,0x0660,0x0066,0x0660,
202
+	0x0066,0x0660,0x0066,0x0660,0x6660,0x0066,0x0000,0x0000,
203
+	0x6600,0x0666,0x0660,0x0000,0x6660,0x0066,0x0660,0x0000,
204
+	0x0660,0x0000,0x0660,0x0000,0x0660,0x0000,0x0000,0x0000,
205
+
206
+	0x0000,0x0000,0x0000,0x0000,0x6666,0x0066,0x0066,0x0660,
207
+	0x0066,0x0000,0x0066,0x0000,0x0066,0x0000,0x0000,0x0000,
208
+	0x0000,0x0000,0x0000,0x0000,0x0066,0x0660,0x0066,0x0660,
209
+	0x0066,0x0660,0x6066,0x0660,0x6660,0x0066,0x0000,0x0000,
210
+	0x6000,0x0006,0x0000,0x0000,0x6000,0x0006,0x6000,0x0006,
211
+	0x6000,0x0006,0x6000,0x0006,0x6000,0x0006,0x0000,0x0000,
212
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x0066,0x0660,
213
+	0x6660,0x0666,0x0000,0x0660,0x6666,0x0066,0x0000,0x0000,
214
+
215
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x6000,0x0006,
216
+	0x6000,0x0006,0x6000,0x0006,0x6600,0x0000,0x0000,0x0000,
217
+	0x0066,0x0000,0x0066,0x0000,0x6666,0x0666,0x0066,0x0000,
218
+	0x0066,0x0000,0x0066,0x0000,0x6660,0x0666,0x0000,0x0000,
219
+	0x0660,0x0000,0x0660,0x0000,0x6660,0x0066,0x0660,0x0660,
220
+	0x0660,0x0660,0x0660,0x0660,0x0660,0x0660,0x0000,0x0000,
221
+	0x0000,0x0000,0x0000,0x0000,0x6660,0x0066,0x6066,0x0660,
222
+	0x0066,0x0660,0x0066,0x0660,0x0066,0x0660,0x0000,0x0000,
223
+
224
+	0x0000,0x0000,0x0000,0x0000,0x0066,0x0660,0x0066,0x0660,
225
+	0x0660,0x0066,0x6600,0x0006,0x6000,0x0000,0x0000,0x0000,
226
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
227
+	0x0000,0x0000,0x6000,0x0006,0x6000,0x0006,0x0000,0x0000,
228
+	0x0000,0x0000,0x0000,0x0000,0x3330,0x0033,0x0033,0x0330,
229
+	0x0033,0x0333,0x3033,0x0333,0x3330,0x0330,0x0000,0x0000,
230
+	0x0000,0x0000,0x0000,0x0000,0x3330,0x0333,0x0033,0x0000,
231
+	0x3330,0x0033,0x0000,0x0330,0x3333,0x0033,0x0000,0x0000,
232
+
233
+	0x3000,0x0003,0x0000,0x0000,0x3000,0x0003,0x3000,0x0003,
234
+	0x3000,0x0003,0x3000,0x0003,0x3000,0x0003,0x0000,0x0000,
235
+	0x0000,0x0000,0x0000,0x0000,0x3330,0x0033,0x0033,0x0330,
236
+	0x3333,0x0033,0x0033,0x0000,0x3330,0x0333,0x0000,0x0000,
237
+	0x0330,0x0000,0x0330,0x0000,0x0330,0x0330,0x0330,0x0033,
238
+	0x3330,0x0003,0x0330,0x0033,0x0330,0x0330,0x0000,0x0000,
239
+	0x0000,0x0000,0x0000,0x0000,0x3333,0x0033,0x0033,0x0330,
240
+	0x0033,0x0000,0x0033,0x0000,0x0033,0x0000,0x0000,0x0000,
241
+
242
+	0x3330,0x0033,0x0033,0x0330,0x0000,0x0033,0x3000,0x0003,
243
+	0x3300,0x0000,0x0330,0x0000,0x3333,0x0333,0x0000,0x0000,
244
+	0x3330,0x0033,0x0033,0x0330,0x0033,0x0333,0x3033,0x0330,
245
+	0x0333,0x0330,0x0033,0x0330,0x3330,0x0033,0x0000,0x0000,
246
+	0x3330,0x0033,0x0033,0x0330,0x0033,0x0330,0x3330,0x0033,
247
+	0x0033,0x0330,0x0033,0x0330,0x3330,0x0033,0x0000,0x0000,
248
+};
249
+
250
+const unsigned short wireworld_controlsMap[768]=
251
+{
252
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
253
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
254
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
255
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
256
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
257
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
258
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
259
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
260
+
261
+	0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0002,0x0006,
262
+	0x0007,0x0000,0x0008,0x0009,0x0003,0x0000,0x000A,0x000B,
263
+	0x0007,0x000C,0x0000,0x000D,0x0002,0x000E,0x0000,0x000F,
264
+	0x0002,0x0005,0x0010,0x000C,0x0004,0x0408,0x0011,0x0000,
265
+	0x0000,0x0012,0x0000,0x0013,0x0000,0x0014,0x0015,0x0016,
266
+	0x0017,0x0000,0x0018,0x0019,0x0014,0x001A,0x0000,0x0000,
267
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
268
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
269
+
270
+	0x0000,0x001B,0x0000,0x0013,0x0000,0x001C,0x0016,0x001D,
271
+	0x001A,0x0000,0x0018,0x0019,0x0014,0x001A,0x0000,0x0000,
272
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
273
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
274
+	0x0000,0x001E,0x0000,0x0013,0x0000,0x001F,0x0015,0x0020,
275
+	0x0020,0x0014,0x001A,0x0000,0x0417,0x001A,0x001F,0x0021,
276
+	0x001A,0x001A,0x0022,0x0000,0x001C,0x0016,0x001D,0x0019,
277
+	0x0022,0x0020,0x0000,0x0016,0x0022,0x0017,0x0000,0x0000,
278
+
279
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0023,0x001A,0x001C,
280
+	0x001F,0x0015,0x0023,0x0019,0x0022,0x0020,0x0000,0x001F,
281
+	0x0024,0x001A,0x0000,0x0025,0x0023,0x001A,0x001D,0x0019,
282
+	0x0015,0x0026,0x001C,0x0000,0x0000,0x0000,0x0000,0x0000,
283
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x001C,0x001F,0x0016,
284
+	0x001F,0x001A,0x0027,0x0000,0x0015,0x0023,0x0000,0x0022,
285
+	0x0015,0x001F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
286
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
287
+
288
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
289
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
290
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
291
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
292
+	0x0000,0x0028,0x0029,0x002A,0x002B,0x002A,0x0000,0x002C,
293
+	0x002D,0x002E,0x002E,0x002F,0x0030,0x002B,0x0000,0x0029,
294
+	0x0031,0x0032,0x002A,0x0000,0x002E,0x0029,0x002A,0x0033,
295
+	0x0034,0x0000,0x002A,0x0035,0x002D,0x0031,0x0036,0x0000,
296
+
297
+	0x0000,0x0033,0x0037,0x0032,0x002A,0x0030,0x002E,0x002B,
298
+	0x0000,0x002F,0x0030,0x0000,0x002E,0x0029,0x002A,0x0000,
299
+	0x002E,0x002F,0x002D,0x0038,0x0029,0x002B,0x0038,0x0034,
300
+	0x002A,0x002A,0x0030,0x0039,0x0000,0x0000,0x0000,0x0000,
301
+	0x0000,0x003A,0x0000,0x0013,0x0000,0x001F,0x0015,0x0020,
302
+	0x0020,0x0014,0x001A,0x0000,0x0417,0x001A,0x001F,0x0021,
303
+	0x001A,0x001A,0x0022,0x0000,0x001C,0x0014,0x0015,0x0021,
304
+	0x003B,0x0018,0x0016,0x001C,0x001F,0x0000,0x0000,0x0000,
305
+
306
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x001C,0x0025,0x001A,
307
+	0x001A,0x0017,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
308
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
309
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
310
+	0x0000,0x003C,0x0000,0x0013,0x0000,0x001F,0x0015,0x0020,
311
+	0x0020,0x0014,0x001A,0x0000,0x0015,0x0022,0x003B,0x0015,
312
+	0x0018,0x0018,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
313
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
314
+
315
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
316
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
317
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
318
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
319
+	0x0000,0x003D,0x003E,0x003F,0x0040,0x0041,0x0042,0x0040,
320
+	0x0043,0x0044,0x0044,0x0045,0x0000,0x0046,0x0047,0x0048,
321
+	0x0000,0x0047,0x0049,0x004A,0x004B,0x0000,0x004C,0x004D,
322
+	0x0000,0x004E,0x004A,0x004D,0x044C,0x0000,0x0000,0x0000,
323
+
324
+	0x0000,0x004F,0x004B,0x0050,0x0000,0x044C,0x0050,0x0047,
325
+	0x0051,0x0052,0x0048,0x0053,0x0054,0x0000,0x0046,0x0049,
326
+	0x004D,0x0047,0x0050,0x0052,0x0048,0x0053,0x0000,0x0055,
327
+	0x0056,0x004D,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
328
+	0x0000,0x004A,0x0046,0x0050,0x004D,0x004D,0x0048,0x0000,
329
+	0x0047,0x0048,0x044C,0x0000,0x0050,0x004D,0x0057,0x004B,
330
+	0x0058,0x0052,0x0048,0x0053,0x0000,0x0055,0x0056,0x004D,
331
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
332
+
333
+	0x0000,0x004D,0x0049,0x004D,0x0046,0x0055,0x0050,0x004B,
334
+	0x0048,0x004A,0x0059,0x0000,0x0000,0x0000,0x0000,0x0000,
335
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
336
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
337
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
338
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
339
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
340
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
341
+
342
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
343
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
344
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
345
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
346
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
347
+	0x0000,0x0000,0x0000,0x0000,0x005A,0x005B,0x005C,0x005D,
348
+	0x005E,0x005C,0x005D,0x005F,0x005E,0x005A,0x0000,0x0000,
349
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
350
+
351
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
352
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
353
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
354
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
355
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
356
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0060,
357
+	0x0061,0x0061,0x0062,0x0000,0x0000,0x0000,0x0000,0x0000,
358
+	0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
359
+};
360
+
361
+//}}BLOCK(wireworld_controls)

+ 1
- 0
template.pnproj View File

@@ -0,0 +1 @@
1
+<Project name="template"><MagicFolder excludeFolders="CVS;.svn" filter="*.h" name="include" path="include\"><File path="DSding_raw.h"></File><File path="DSkill_raw.h"></File><File path="DSload_raw.h"></File><File path="DSnew_raw.h"></File><File path="tileedit.h"></File><File path="tonc_memfunc.h"></File><File path="wireworldTS.h"></File><File path="wireworld_controls.h"></File></MagicFolder><MagicFolder excludeFolders="CVS;.svn" filter="*.c;*.cpp" name="source" path="source\"><File path="tileedit.c"></File><File path="wireC.cpp"></File><File path="wireworldTS.c"></File><File path="wireworld_controls.c"></File></MagicFolder><File path="Makefile"></File></Project>

+ 1
- 0
template.pnps View File

@@ -0,0 +1 @@
1
+<pd><ViewState><e p="template" x="true"></e><e p="template\include" x="false"></e><e p="template\source" x="true"></e></ViewState></pd>

+ 32
- 0
template.prj View File

@@ -0,0 +1,32 @@
1
+[Project ID]
2
+Signature=UE Proj: v.1
3
+[Project Information]
4
+Filter=*.*
5
+Project Directory=C:\projects\devkitPro\test\nds_template\arm9\
6
+Use Relative Directory=1
7
+Relative to Project File=1
8
+Project Wordfile=
9
+Project Tagfile=
10
+Create Tagfile=0
11
+Include Sub Directories=0
12
+[Files]
13
+0=include\
14
+1=Makefile
15
+2=source\
16
+[Group]
17
+0=
18
+[Open Files]
19
+Open File0=C:\projects\devkitPro\examples\nds\templates\arm9\source\main.c
20
+Active File Display Mode=3
21
+Open File Pos0=751
22
+Open File Line0=0
23
+Active File Index=0
24
+Open File Window Pos0=2,3,-1,-1,-4,-23,0,0,918,359
25
+Open File1=C:\projects\devkitPro\examples\nds\templates\arm9\build\arm9.map
26
+Open File Pos1=9864
27
+Open File Line1=15129
28
+Open File Window Pos1=0,1,-1,-1,-4,-23,22,22,944,385
29
+Open File2=
30
+[File View]
31
+Current Select=Project Files\source\main.c
32
+Scroll Position=0

+ 20
- 0
template.sln View File

@@ -0,0 +1,20 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 9.00
3
+# Visual C++ Express 2005
4
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "arm9 template", "template.vcproj", "{03F9E3EC-1341-41FF-816A-F53050EDB21A}"
5
+EndProject
6
+Global
7
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
8
+		Debug|Win32 = Debug|Win32
9
+		Release|Win32 = Release|Win32
10
+	EndGlobalSection
11
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
12
+		{03F9E3EC-1341-41FF-816A-F53050EDB21A}.Debug|Win32.ActiveCfg = Debug|Win32
13
+		{03F9E3EC-1341-41FF-816A-F53050EDB21A}.Debug|Win32.Build.0 = Debug|Win32
14
+		{03F9E3EC-1341-41FF-816A-F53050EDB21A}.Release|Win32.ActiveCfg = Release|Win32
15
+		{03F9E3EC-1341-41FF-816A-F53050EDB21A}.Release|Win32.Build.0 = Release|Win32
16
+	EndGlobalSection
17
+	GlobalSection(SolutionProperties) = preSolution
18
+		HideSolutionNode = FALSE
19
+	EndGlobalSection
20
+EndGlobal

BIN
template.suo View File


+ 86
- 0
template.vcproj View File

@@ -0,0 +1,86 @@
1
+<?xml version="1.0" encoding="Windows-1252"?>
2
+<VisualStudioProject
3
+	ProjectType="Visual C++"
4
+	Version="8.00"
5
+	Name="arm9 template"
6
+	ProjectGUID="{03F9E3EC-1341-41FF-816A-F53050EDB21A}"
7
+	Keyword="MakeFileProj"
8
+	>
9
+	<Platforms>
10
+		<Platform
11
+			Name="Win32"
12
+		/>
13
+	</Platforms>
14
+	<ToolFiles>
15
+	</ToolFiles>
16
+	<Configurations>
17
+		<Configuration
18
+			Name="Debug|Win32"
19
+			OutputDirectory="$(ConfigurationName)"
20
+			IntermediateDirectory="$(ConfigurationName)"
21
+			ConfigurationType="0"
22
+			>
23
+			<Tool
24
+				Name="VCNMakeTool"
25
+				BuildCommandLine="make -r 2&gt;&amp;1 | sed -e ’s/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’"
26
+				ReBuildCommandLine=""
27
+				CleanCommandLine="make clean"
28
+				Output="arm9.nds"
29
+				PreprocessorDefinitions="ARM9"
30
+				IncludeSearchPath=""
31
+				ForcedIncludes=""
32
+				AssemblySearchPath=""
33
+				ForcedUsingAssemblies=""
34
+				CompileAsManaged=""
35
+			/>
36
+		</Configuration>
37
+		<Configuration
38
+			Name="Release|Win32"
39
+			OutputDirectory="$(ConfigurationName)"
40
+			IntermediateDirectory="$(ConfigurationName)"
41
+			ConfigurationType="0"
42
+			>
43
+			<Tool
44
+				Name="VCNMakeTool"
45
+				BuildCommandLine="make -r 2&gt;&amp;1 | sed -e ’s/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’"
46
+				ReBuildCommandLine=""
47
+				CleanCommandLine="make clean"
48
+				Output="arm9.nds"
49
+				PreprocessorDefinitions="ARM9"
50
+				IncludeSearchPath=""
51
+				ForcedIncludes=""
52
+				AssemblySearchPath=""
53
+				ForcedUsingAssemblies=""
54
+				CompileAsManaged=""
55
+			/>
56
+		</Configuration>
57
+	</Configurations>
58
+	<References>
59
+	</References>
60
+	<Files>
61
+		<Filter
62
+			Name="Source Files"
63
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
64
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
65
+			>
66
+			<File
67
+				RelativePath=".\source\main.c"
68
+				>
69
+			</File>
70
+		</Filter>
71
+		<Filter
72
+			Name="Header Files"
73
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
74
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
75
+			>
76
+		</Filter>
77
+		<Filter
78
+			Name="Resource Files"
79
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
80
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
81
+			>
82
+		</Filter>
83
+	</Files>
84
+	<Globals>
85
+	</Globals>
86
+</VisualStudioProject>

+ 65
- 0
template.vcproj.NEUROMANCER.davem.user View File

@@ -0,0 +1,65 @@
1
+<?xml version="1.0" encoding="Windows-1252"?>
2
+<VisualStudioUserFile
3
+	ProjectType="Visual C++"
4
+	Version="8.00"
5
+	ShowAllFiles="false"
6
+	>
7
+	<Configurations>
8
+		<Configuration
9
+			Name="Debug|Win32"
10
+			>
11
+			<DebugSettings
12
+				Command="$(TargetPath)"
13
+				WorkingDirectory=""
14
+				CommandArguments=""
15
+				Attach="false"
16
+				DebuggerType="3"
17
+				Remote="1"
18
+				RemoteMachine="NEUROMANCER"
19
+				RemoteCommand=""
20
+				HttpUrl=""
21
+				PDBPath=""
22
+				SQLDebugging=""
23
+				Environment=""
24
+				EnvironmentMerge="true"
25
+				DebuggerFlavor=""
26
+				MPIRunCommand=""
27
+				MPIRunArguments=""
28
+				MPIRunWorkingDirectory=""
29
+				ApplicationCommand=""
30
+				ApplicationArguments=""
31
+				ShimCommand=""
32
+				MPIAcceptMode=""
33
+				MPIAcceptFilter=""
34
+			/>
35
+		</Configuration>
36
+		<Configuration
37
+			Name="Release|Win32"
38
+			>
39
+			<DebugSettings
40
+				Command="$(TargetPath)"
41
+				WorkingDirectory=""
42
+				CommandArguments=""
43
+				Attach="false"
44
+				DebuggerType="3"
45
+				Remote="1"
46
+				RemoteMachine="NEUROMANCER"
47
+				RemoteCommand=""
48
+				HttpUrl=""
49
+				PDBPath=""
50
+				SQLDebugging=""
51
+				Environment=""
52
+				EnvironmentMerge="true"
53
+				DebuggerFlavor=""
54
+				MPIRunCommand=""
55
+				MPIRunArguments=""
56
+				MPIRunWorkingDirectory=""
57
+				ApplicationCommand=""
58
+				ApplicationArguments=""
59
+				ShimCommand=""
60
+				MPIAcceptMode=""
61
+				MPIAcceptFilter=""
62
+			/>
63
+		</Configuration>
64
+	</Configurations>
65
+</VisualStudioUserFile>

BIN
tileedit.bmp View File


BIN
wireworld_controls.bmp View File


BIN
wireworld_title.bmp View File


BIN
wireworld_title_1.0.bmp View File


Loading…
Cancel
Save