-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
42 lines (31 loc) · 941 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@ECHO OFF
CLS & TITLE Building Impatience...
CD %~dp0
ECHO:
REM # convert the graphics to native format;
REM # we use "rgbfix" from the RGBDS assembler,
REM # even though we won't be using RGBDS to assemble
SET RGBGFX="bin\rgbds\rgbgfx.exe"
%RGBGFX% -h ^
-o "build\sprites.2bpp" ^
"src\tiles\sprites.png"
IF ERRORLEVEL 1 EXIT /B 1
%RGBGFX% -h ^
-o "build\tiles.2bpp" ^
"src\tiles\tiles.png"
IF ERRORLEVEL 1 EXIT /B 1
REM ============================================================================
REM # the assembler and linker is WLA-DX
SET WLA_GB80="bin\wla-dx\wla-gb.exe" -x -I "src"
SET WLA_LINK="bin\wla-dx\wlalink.exe" -A -S
%WLA_GB80% -v ^
-o "build\impatience.o" ^
"impatience.wla"
IF ERRORLEVEL 1 EXIT /B 1
%WLA_LINK% -v ^
"link_gb.ini" ^
"build\impatience.gb"
IF ERRORLEVEL 1 EXIT /B 1
REM # start the emulator
SET BGB="bin\bgb\bgb.exe"
START "" %BGB% "build\impatience.gb"