-
Notifications
You must be signed in to change notification settings - Fork 4
/
make.bat
45 lines (34 loc) · 1.68 KB
/
make.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
43
44
45
@echo off
rem Set this to match you COM port in Debugger
set SERIAL=COM6
rem Your path to the S65 Library
set S65PATH=.
set KICK=java -cp %S65PATH%\build\kickass.jar kickass.KickAssembler65CE02 -vicesymbols -showmem
set PNG65=node %S65PATH%\build\aseparse65\png65.js
set LDTK65=node %S65PATH%\build\ldtk65\ldtk65.js
set DEPLOY=node %S65PATH%\build\m65debugger\client.js
set XEMUSDCARD=%APPDATA%\xemu-lgb\mega65\mega65.img
rem Do your asset building here
echo GENERATING ASSETS
rem %PNG65% sprites --ncm --size 16,16 --input "assets\source\sprites1.png" --output "assets\bin" --nofill
rem %PNG65% sprites --fcm --size 8,8 --input "assets\source\sprites2.png" --output "assets\bin" --nofill --palette "assets\bin\sprites1_palette.bin"
rem %PNG65% sprites --ncm --size 16,16 --input "assets\source\sprites3.png" --output "assets\bin" --palette "assets\bin\sprites2_palette.bin"
rem %PNG65% chars --fcm --input "assets\source\tileset1.png" --output "assets\bin" --nofill
rem %PNG65% chars --ncm --input "assets\source\tileset2.png" --output "assets\bin" --palette "assets\bin\tileset1_palette.bin"
echo ASSEMBLING SOURCES...
%KICK% main.s -odir .\bin -libdir %S65PATH%
echo DEPLOYING...
IF [%1]==[] GOTO NO_ARGUMENT
echo Deploy plus Assets to SDCard
%DEPLOY% %SERIAL% .\bin\main.prg
rem ==Xemu deploy + assets to sd==
rem %DEPLOY% xemu %XEMUSDCARD% .\bin\main.prg
rem "C:\Program Files\xemu\xmega65.exe" -besure -prg "./bin/main.prg"
GOTO DONE
:NO_ARGUMENT
echo Deploy Without Assets
%DEPLOY% .\bin\main.prg
rem ==Xemu deploy==
rem "C:\Program Files\xemu\xmega65.exe" -besure -prg "./bin/main.prg"
:DONE
echo IF THINGS LOOK WRONG BE SURE TO LOAD YOUR ASSETS TO THE SDCARD FIRST USING SHIFT+F8!!!