]> 4ch.mooo.com Git - 16.git/commitdiff
^^/ yayvrsdump data/spri/ptmp.vrs wwww
authorsparky4 <sparky4@cock.li>
Fri, 15 Apr 2016 19:35:33 +0000 (14:35 -0500)
committersparky4 <sparky4@cock.li>
Fri, 15 Apr 2016 19:35:33 +0000 (14:35 -0500)
22 files changed:
PRSBFCW0.VRL [new file with mode: 0755]
PRSBFCW1.VRL [new file with mode: 0755]
data/spri/PRSBACW0.VRL [new file with mode: 0755]
data/spri/PRSBACW1.VRL [new file with mode: 0755]
data/spri/PRSBACW2.VRL [new file with mode: 0755]
data/spri/PRSBFCW0.VRL [new file with mode: 0755]
data/spri/PRSBFCW1.VRL [new file with mode: 0755]
data/spri/PRSBFCW2.VRL [new file with mode: 0755]
data/spri/PRSBLCW0.VRL [new file with mode: 0755]
data/spri/PRSBLCW1.VRL [new file with mode: 0755]
data/spri/PRSBLCW2.VRL [new file with mode: 0755]
data/spri/PRSBRCW0.VRL [new file with mode: 0755]
data/spri/PRSBRCW1.VRL [new file with mode: 0755]
data/spri/PRSBRCW2.VRL [new file with mode: 0755]
data/spri/ptmp.h [new file with mode: 0755]
data/spri/ptmp.pal [new file with mode: 0755]
data/spri/ptmp.sht
data/spri/ptmp.vrs
data/spri/ptmps.h [new file with mode: 0755]
ptmp.h
ptmps.h
spri.sh

diff --git a/PRSBFCW0.VRL b/PRSBFCW0.VRL
new file mode 100755 (executable)
index 0000000..f5b4c63
Binary files /dev/null and b/PRSBFCW0.VRL differ
diff --git a/PRSBFCW1.VRL b/PRSBFCW1.VRL
new file mode 100755 (executable)
index 0000000..b299f8a
Binary files /dev/null and b/PRSBFCW1.VRL differ
diff --git a/data/spri/PRSBACW0.VRL b/data/spri/PRSBACW0.VRL
new file mode 100755 (executable)
index 0000000..2c93df9
Binary files /dev/null and b/data/spri/PRSBACW0.VRL differ
diff --git a/data/spri/PRSBACW1.VRL b/data/spri/PRSBACW1.VRL
new file mode 100755 (executable)
index 0000000..fb3c7cf
Binary files /dev/null and b/data/spri/PRSBACW1.VRL differ
diff --git a/data/spri/PRSBACW2.VRL b/data/spri/PRSBACW2.VRL
new file mode 100755 (executable)
index 0000000..65fc4bf
Binary files /dev/null and b/data/spri/PRSBACW2.VRL differ
diff --git a/data/spri/PRSBFCW0.VRL b/data/spri/PRSBFCW0.VRL
new file mode 100755 (executable)
index 0000000..e2d1e1f
Binary files /dev/null and b/data/spri/PRSBFCW0.VRL differ
diff --git a/data/spri/PRSBFCW1.VRL b/data/spri/PRSBFCW1.VRL
new file mode 100755 (executable)
index 0000000..6473a16
Binary files /dev/null and b/data/spri/PRSBFCW1.VRL differ
diff --git a/data/spri/PRSBFCW2.VRL b/data/spri/PRSBFCW2.VRL
new file mode 100755 (executable)
index 0000000..30f48d1
Binary files /dev/null and b/data/spri/PRSBFCW2.VRL differ
diff --git a/data/spri/PRSBLCW0.VRL b/data/spri/PRSBLCW0.VRL
new file mode 100755 (executable)
index 0000000..161753b
Binary files /dev/null and b/data/spri/PRSBLCW0.VRL differ
diff --git a/data/spri/PRSBLCW1.VRL b/data/spri/PRSBLCW1.VRL
new file mode 100755 (executable)
index 0000000..fba1dc9
Binary files /dev/null and b/data/spri/PRSBLCW1.VRL differ
diff --git a/data/spri/PRSBLCW2.VRL b/data/spri/PRSBLCW2.VRL
new file mode 100755 (executable)
index 0000000..7872c41
Binary files /dev/null and b/data/spri/PRSBLCW2.VRL differ
diff --git a/data/spri/PRSBRCW0.VRL b/data/spri/PRSBRCW0.VRL
new file mode 100755 (executable)
index 0000000..b0a21ae
Binary files /dev/null and b/data/spri/PRSBRCW0.VRL differ
diff --git a/data/spri/PRSBRCW1.VRL b/data/spri/PRSBRCW1.VRL
new file mode 100755 (executable)
index 0000000..8c7267c
Binary files /dev/null and b/data/spri/PRSBRCW1.VRL differ
diff --git a/data/spri/PRSBRCW2.VRL b/data/spri/PRSBRCW2.VRL
new file mode 100755 (executable)
index 0000000..354fd6e
Binary files /dev/null and b/data/spri/PRSBRCW2.VRL differ
diff --git a/data/spri/ptmp.h b/data/spri/ptmp.h
new file mode 100755 (executable)
index 0000000..a985b51
--- /dev/null
@@ -0,0 +1,20 @@
+// header file for sprite sheet. AUTO GENERATED, do not edit
+// 
+// source PCX: ../ptmp.pcx
+// sheet script: ptmp.sht
+// palette file: ptmp.pal
+
+#define _ptmp_PRSBFCW0 10U
+#define _ptmp_PRSBFCW1 11U
+#define _ptmp_PRSBFCW2 12U
+#define _ptmp_PRSBLCW0 20U
+#define _ptmp_PRSBLCW1 21U
+#define _ptmp_PRSBLCW2 22U
+#define _ptmp_PRSBRCW0 30U
+#define _ptmp_PRSBRCW1 31U
+#define _ptmp_PRSBRCW2 32U
+#define _ptmp_PRSBACW0 40U
+#define _ptmp_PRSBACW1 41U
+#define _ptmp_PRSBACW2 42U
+
+// end list
diff --git a/data/spri/ptmp.pal b/data/spri/ptmp.pal
new file mode 100755 (executable)
index 0000000..5227fbb
Binary files /dev/null and b/data/spri/ptmp.pal differ
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8d9e576146ef6c9d5cd0f48f20f74b63a1a2a9f9 100755 (executable)
@@ -0,0 +1,73 @@
+# player.PCX demo sprite sheet compiler script
+# (C) 2016 Jonathan Campbell
+
+# *spritesheet declares the section used by the sprite sheet cutting tool
+#
+# Sprites are declared by name (which becomes the .VRL file) at the + in the form:
+# +NAME@ID
+#
+# Sprite names are meant for temporary use when compiling the sprite sheet into VRLs.
+# At some point a longer name might be provided for use in your code.
+# This will fill the CURRENT WORKING DIRECTORY with .VRL files as directed when you
+# run PCXSSCUT, make sure your makefile does this in a temporary directory when
+# you integrate into your build and that your cleanup commands delete these files,
+# and that your .gitignore does not attempt to commit these files.
+
+# this format is a bit crap, but we'll improve it as needed. be patient.
+
+# begin spritesheet section
+*spritesheet
+
+# ---------------- player, walking, blue shirt with white cross. Frame 2/3 could be used for standing still
+
+# player, forward, frame 1/3
++PRSBFCW0@10
+xy=0,0
+wh=24,32
+# player, forward, frame 2/3
++PRSBFCW1@11
+xy=24,0
+wh=24,32
+# player, forward, frame 3/3
++PRSBFCW2@12
+xy=48,0
+wh=24,32
+
+# player, left, frame 1/3
++PRSBLCW0@20
+xy=0,32
+wh=24,32
+# player, left, frame 2/3
++PRSBLCW1@21
+xy=24,32
+wh=24,32
+# player, left, frame 3/3
++PRSBLCW2@22
+xy=48,32
+wh=24,32
+
+# player, right, frame 1/3
++PRSBRCW0@30
+xy=0,64
+wh=24,32
+# player, right, frame 2/3
++PRSBRCW1@31
+xy=24,64
+wh=24,32
+# player, right, frame 3/3
++PRSBRCW2@32
+xy=48,64
+wh=24,32
+
+# player, away, frame 1/3
++PRSBACW0@40
+xy=0,96
+wh=24,32
+# player, away, frame 2/3
++PRSBACW1@41
+xy=24,96
+wh=24,32
+# player, away, frame 3/3
++PRSBACW2@42
+xy=48,96
+wh=24,32
index aba7f89aba9a00248382e0fd4de38ae2cb77dbcf..3bff7ff61034fe555f411bd8b88f6a28d7e2ef94 100755 (executable)
Binary files a/data/spri/ptmp.vrs and b/data/spri/ptmp.vrs differ
diff --git a/data/spri/ptmps.h b/data/spri/ptmps.h
new file mode 100755 (executable)
index 0000000..b9ae599
--- /dev/null
@@ -0,0 +1,20 @@
+// header file for sprite sheet. AUTO GENERATED, do not edit
+// 
+// sheet script: ptmp.sht
+
+// sprite sheet (sprite IDs)
+#define _ptmp_PRSBFCW0_sprite 10U
+#define _ptmp_PRSBFCW1_sprite 11U
+#define _ptmp_PRSBFCW2_sprite 12U
+#define _ptmp_PRSBLCW0_sprite 20U
+#define _ptmp_PRSBLCW1_sprite 21U
+#define _ptmp_PRSBLCW2_sprite 22U
+#define _ptmp_PRSBRCW0_sprite 30U
+#define _ptmp_PRSBRCW1_sprite 31U
+#define _ptmp_PRSBRCW2_sprite 32U
+#define _ptmp_PRSBACW0_sprite 40U
+#define _ptmp_PRSBACW1_sprite 41U
+#define _ptmp_PRSBACW2_sprite 42U
+// animation list (animation IDs)
+
+// end list
diff --git a/ptmp.h b/ptmp.h
index 440f377469d6af2b81f0146672be231bd98ad366..841d290f22f8c6c67ea43465d901c4daa6e81c88 100755 (executable)
--- a/ptmp.h
+++ b/ptmp.h
@@ -4,5 +4,17 @@
 // sheet script: data/spri/ptmp.sht
 // palette file: data/spri/ptmp.pal
 
+#define _ptmp_PRSBFCW0 10U
+#define _ptmp_PRSBFCW1 11U
+#define _ptmp_PRSBFCW2 12U
+#define _ptmp_PRSBLCW0 20U
+#define _ptmp_PRSBLCW1 21U
+#define _ptmp_PRSBLCW2 22U
+#define _ptmp_PRSBRCW0 30U
+#define _ptmp_PRSBRCW1 31U
+#define _ptmp_PRSBRCW2 32U
+#define _ptmp_PRSBACW0 40U
+#define _ptmp_PRSBACW1 41U
+#define _ptmp_PRSBACW2 42U
 
 // end list
diff --git a/ptmps.h b/ptmps.h
index 729ecd53685f5e94c42c52df461bc8fb37e0eecc..aa21cacd4d8821057d86f2318306c10b59f163f4 100755 (executable)
--- a/ptmps.h
+++ b/ptmps.h
@@ -3,6 +3,18 @@
 // sheet script: data/spri/ptmp.sht
 
 // sprite sheet (sprite IDs)
+#define _ptmp_PRSBFCW0_sprite 10U
+#define _ptmp_PRSBFCW1_sprite 11U
+#define _ptmp_PRSBFCW2_sprite 12U
+#define _ptmp_PRSBLCW0_sprite 20U
+#define _ptmp_PRSBLCW1_sprite 21U
+#define _ptmp_PRSBLCW2_sprite 22U
+#define _ptmp_PRSBRCW0_sprite 30U
+#define _ptmp_PRSBRCW1_sprite 31U
+#define _ptmp_PRSBRCW2_sprite 32U
+#define _ptmp_PRSBACW0_sprite 40U
+#define _ptmp_PRSBACW1_sprite 41U
+#define _ptmp_PRSBACW2_sprite 42U
 // animation list (animation IDs)
 
 // end list
diff --git a/spri.sh b/spri.sh
index 4427c0248db6fa02f63a0138212ecd4bc1c1656a..f34463404cb3f89b3e5b280989e4f00978b9db1e 100755 (executable)
--- a/spri.sh
+++ b/spri.sh
@@ -1,5 +1,5 @@
 #! /bin/bash
-./pcxsscut     -s data/spri/"$1".sht -hc "$1".h -hp _"$1"_ -i data/"$1".pcx -p data/spri/"$1".pal -tc 0x"$2" -y
-./vrl2vrs      -s data/spri/"$1".sht -hc "$1"s.h -hp _"$1"_ -o data/spri/"$1".vrs
-# . ./pcxsscut "$pee"
-# . ./vrl2vrs "$pee"
+cd data/spri
+../../pcxsscut -s "$1".sht -hc "$1".h -hp _"$1"_ -i ../"$1".pcx -p "$1".pal -tc 0x"$2" -y
+../../vrl2vrs -s "$1".sht -hc "$1"s.h -hp _"$1"_ -o "$1".vrs
+cd ../../