From 9ff2b0b4f132eace00557a8db5b2ab9c602f4ffa Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 13 Jan 2017 11:50:36 -0600 Subject: [PATCH] made palllist.exe as an experiment for me to make a palette system i want for p16 i am now way too tired to work on p16 for today wwww --- 0.16L | 634 +++++++++++++++++++++++++++++++++++++++++++++ makefile | 11 +- src/0.c | 1 + src/lib/16_sprit.c | 18 +- src/palllist.c | 66 +++++ src/vrstest.c | 4 +- 6 files changed, 723 insertions(+), 11 deletions(-) create mode 100755 0.16L create mode 100755 src/palllist.c diff --git a/0.16L b/0.16L new file mode 100755 index 00000000..549942e3 --- /dev/null +++ b/0.16L @@ -0,0 +1,634 @@ +x=-16 y=-16 rx=-20 ry=-17 +x=-15 y=-15 rx=-16 ry=-16 +x=-14 y=-14 rx=-16 ry=-15 +x=-13 y=-13 rx=-16 ry=-14 +x=-12 y=-12 rx=-16 ry=-13 +x=-11 y=-11 rx=-12 ry=-12 +x=-10 y=-10 rx=-12 ry=-11 +x=-9 y=-9 rx=-12 ry=-10 +x=-8 y=-8 rx=-12 ry=-9 +x=-7 y=-7 rx=-8 ry=-8 +x=-6 y=-6 rx=-8 ry=-7 +x=-5 y=-5 rx=-8 ry=-6 +x=-4 y=-4 rx=-8 ry=-5 +x=-3 y=-3 rx=-4 ry=-4 +x=-2 y=-2 rx=-4 ry=-3 +x=-1 y=-1 rx=-4 ry=-2 +x=0 y=0 rx=-16 ry=-16 +x=1 y=1 rx=0 ry=0 +x=2 y=2 rx=0 ry=1 +x=3 y=3 rx=0 ry=2 +x=4 y=4 rx=0 ry=3 +x=5 y=5 rx=4 ry=4 +x=6 y=6 rx=4 ry=5 +x=7 y=7 rx=4 ry=6 +x=8 y=8 rx=4 ry=7 +x=9 y=9 rx=8 ry=8 +x=10 y=10 rx=8 ry=9 +x=11 y=11 rx=8 ry=10 +x=12 y=12 rx=8 ry=11 +x=13 y=13 rx=12 ry=12 +x=14 y=14 rx=12 ry=13 +x=15 y=15 rx=12 ry=14 +x=16 y=16 rx=12 ry=15 +x=17 y=17 rx=16 ry=16 +x=18 y=18 rx=16 ry=17 +x=19 y=19 rx=16 ry=18 +x=20 y=20 rx=16 ry=19 +x=21 y=21 rx=20 ry=20 +x=22 y=22 rx=20 ry=21 +x=23 y=23 rx=20 ry=22 +x=24 y=24 rx=20 ry=23 +x=25 y=25 rx=24 ry=24 +x=26 y=26 rx=24 ry=25 +x=27 y=27 rx=24 ry=26 +x=28 y=28 rx=24 ry=27 +x=29 y=29 rx=28 ry=28 +x=30 y=30 rx=28 ry=29 +x=31 y=31 rx=28 ry=30 +x=32 y=32 rx=28 ry=31 +x=33 y=33 rx=32 ry=32 +x=34 y=34 rx=32 ry=33 +x=35 y=35 rx=32 ry=34 +x=36 y=36 rx=32 ry=35 +x=37 y=37 rx=36 ry=36 +x=38 y=38 rx=36 ry=37 +x=39 y=39 rx=36 ry=38 +x=40 y=40 rx=36 ry=39 +x=41 y=41 rx=40 ry=40 +x=42 y=42 rx=40 ry=41 +x=43 y=43 rx=40 ry=42 +x=44 y=44 rx=40 ry=43 +x=45 y=45 rx=44 ry=44 +x=46 y=46 rx=44 ry=45 +x=47 y=47 rx=44 ry=46 +x=48 y=48 rx=44 ry=47 +x=49 y=49 rx=48 ry=48 +x=50 y=50 rx=48 ry=49 +x=51 y=51 rx=48 ry=50 +x=52 y=52 rx=48 ry=51 +x=53 y=53 rx=52 ry=52 +x=54 y=54 rx=52 ry=53 +x=55 y=55 rx=52 ry=54 +x=56 y=56 rx=52 ry=55 +x=57 y=57 rx=56 ry=56 +x=58 y=58 rx=56 ry=57 +x=59 y=59 rx=56 ry=58 +x=60 y=60 rx=56 ry=59 +x=61 y=61 rx=60 ry=60 +x=62 y=62 rx=60 ry=61 +x=63 y=63 rx=60 ry=62 +x=64 y=64 rx=60 ry=63 +x=65 y=65 rx=64 ry=64 +x=66 y=66 rx=64 ry=65 +x=67 y=67 rx=64 ry=66 +x=68 y=68 rx=64 ry=67 +x=69 y=69 rx=68 ry=68 +x=70 y=70 rx=68 ry=69 +x=71 y=71 rx=68 ry=70 +x=72 y=72 rx=68 ry=71 +x=73 y=73 rx=72 ry=72 +x=74 y=74 rx=72 ry=73 +x=75 y=75 rx=72 ry=74 +x=76 y=76 rx=72 ry=75 +x=77 y=77 rx=76 ry=76 +x=78 y=78 rx=76 ry=77 +x=79 y=79 rx=76 ry=78 +x=80 y=80 rx=76 ry=79 +x=81 y=81 rx=80 ry=80 +x=82 y=82 rx=80 ry=81 +x=83 y=83 rx=80 ry=82 +x=84 y=84 rx=80 ry=83 +x=85 y=85 rx=84 ry=84 +x=86 y=86 rx=84 ry=85 +x=87 y=87 rx=84 ry=86 +x=88 y=88 rx=84 ry=87 +x=89 y=89 rx=88 ry=88 +x=90 y=90 rx=88 ry=89 +x=91 y=91 rx=88 ry=90 +x=92 y=92 rx=88 ry=91 +x=93 y=93 rx=92 ry=92 +x=94 y=94 rx=92 ry=93 +x=95 y=95 rx=92 ry=94 +x=96 y=96 rx=92 ry=95 +x=97 y=97 rx=96 ry=96 +x=98 y=98 rx=96 ry=97 +x=99 y=99 rx=96 ry=98 +x=100 y=100 rx=96 ry=99 +x=101 y=101 rx=100 ry=100 +x=102 y=102 rx=100 ry=101 +x=103 y=103 rx=100 ry=102 +x=104 y=104 rx=100 ry=103 +x=105 y=105 rx=104 ry=104 +x=106 y=106 rx=104 ry=105 +x=107 y=107 rx=104 ry=106 +x=108 y=108 rx=104 ry=107 +x=109 y=109 rx=108 ry=108 +x=110 y=110 rx=108 ry=109 +x=111 y=111 rx=108 ry=110 +x=112 y=112 rx=108 ry=111 +x=113 y=113 rx=112 ry=112 +x=114 y=114 rx=112 ry=113 +x=115 y=115 rx=112 ry=114 +x=116 y=116 rx=112 ry=115 +x=117 y=117 rx=116 ry=116 +x=118 y=118 rx=116 ry=117 +x=119 y=119 rx=116 ry=118 +x=120 y=120 rx=116 ry=119 +x=121 y=121 rx=120 ry=120 +x=122 y=122 rx=120 ry=121 +x=123 y=123 rx=120 ry=122 +x=124 y=124 rx=120 ry=123 +x=125 y=125 rx=124 ry=124 +x=126 y=126 rx=124 ry=125 +x=127 y=127 rx=124 ry=126 +x=128 y=128 rx=124 ry=127 +x=129 y=129 rx=128 ry=128 +x=130 y=130 rx=128 ry=129 +x=131 y=131 rx=128 ry=130 +x=132 y=132 rx=128 ry=131 +x=133 y=133 rx=132 ry=132 +x=134 y=134 rx=132 ry=133 +x=135 y=135 rx=132 ry=134 +x=136 y=136 rx=132 ry=135 +x=137 y=137 rx=136 ry=136 +x=138 y=138 rx=136 ry=137 +x=139 y=139 rx=136 ry=138 +x=140 y=140 rx=136 ry=139 +x=141 y=141 rx=140 ry=140 +x=142 y=142 rx=140 ry=141 +x=143 y=143 rx=140 ry=142 +x=144 y=144 rx=140 ry=143 +x=145 y=145 rx=144 ry=144 +x=146 y=146 rx=144 ry=145 +x=147 y=147 rx=144 ry=146 +x=148 y=148 rx=144 ry=147 +x=149 y=149 rx=148 ry=148 +x=150 y=150 rx=148 ry=149 +x=151 y=151 rx=148 ry=150 +x=152 y=152 rx=148 ry=151 +x=153 y=153 rx=152 ry=152 +x=154 y=154 rx=152 ry=153 +x=155 y=155 rx=152 ry=154 +x=156 y=156 rx=152 ry=155 +x=157 y=157 rx=156 ry=156 +x=158 y=158 rx=156 ry=157 +x=159 y=159 rx=156 ry=158 +x=160 y=158 rx=156 ry=157 +x=161 y=157 rx=160 ry=156 +x=162 y=156 rx=160 ry=155 +x=163 y=155 rx=160 ry=154 +x=164 y=154 rx=160 ry=153 +x=165 y=153 rx=164 ry=152 +x=166 y=152 rx=164 ry=151 +x=167 y=151 rx=164 ry=150 +x=168 y=150 rx=164 ry=149 +x=169 y=149 rx=168 ry=148 +x=170 y=148 rx=168 ry=147 +x=171 y=147 rx=168 ry=146 +x=172 y=146 rx=168 ry=145 +x=173 y=145 rx=172 ry=144 +x=174 y=144 rx=172 ry=143 +x=175 y=143 rx=172 ry=142 +x=176 y=142 rx=172 ry=141 +x=177 y=141 rx=176 ry=140 +x=178 y=140 rx=176 ry=139 +x=179 y=139 rx=176 ry=138 +x=180 y=138 rx=176 ry=137 +x=181 y=137 rx=180 ry=136 +x=182 y=136 rx=180 ry=135 +x=183 y=135 rx=180 ry=134 +x=184 y=134 rx=180 ry=133 +x=185 y=133 rx=184 ry=132 +x=186 y=132 rx=184 ry=131 +x=187 y=131 rx=184 ry=130 +x=188 y=130 rx=184 ry=129 +x=189 y=129 rx=188 ry=128 +x=190 y=128 rx=188 ry=127 +x=191 y=127 rx=188 ry=126 +x=192 y=126 rx=188 ry=125 +x=193 y=125 rx=192 ry=124 +x=194 y=124 rx=192 ry=123 +x=195 y=123 rx=192 ry=122 +x=196 y=122 rx=192 ry=121 +x=197 y=121 rx=196 ry=120 +x=198 y=120 rx=196 ry=119 +x=199 y=119 rx=196 ry=118 +x=200 y=118 rx=196 ry=117 +x=201 y=117 rx=200 ry=116 +x=202 y=116 rx=200 ry=115 +x=203 y=115 rx=200 ry=114 +x=204 y=114 rx=200 ry=113 +x=205 y=113 rx=204 ry=112 +x=206 y=112 rx=204 ry=111 +x=207 y=111 rx=204 ry=110 +x=208 y=110 rx=204 ry=109 +x=209 y=109 rx=208 ry=108 +x=210 y=108 rx=208 ry=107 +x=211 y=107 rx=208 ry=106 +x=212 y=106 rx=208 ry=105 +x=213 y=105 rx=212 ry=104 +x=214 y=104 rx=212 ry=103 +x=215 y=103 rx=212 ry=102 +x=216 y=102 rx=212 ry=101 +x=217 y=101 rx=216 ry=100 +x=218 y=100 rx=216 ry=99 +x=219 y=99 rx=216 ry=98 +x=220 y=98 rx=216 ry=97 +x=221 y=97 rx=220 ry=96 +x=222 y=96 rx=220 ry=95 +x=223 y=95 rx=220 ry=94 +x=224 y=94 rx=220 ry=93 +x=225 y=93 rx=224 ry=92 +x=226 y=92 rx=224 ry=91 +x=227 y=91 rx=224 ry=90 +x=228 y=90 rx=224 ry=89 +x=229 y=89 rx=228 ry=88 +x=230 y=88 rx=228 ry=87 +x=231 y=87 rx=228 ry=86 +x=232 y=86 rx=228 ry=85 +x=233 y=85 rx=232 ry=84 +x=234 y=84 rx=232 ry=83 +x=235 y=83 rx=232 ry=82 +x=236 y=82 rx=232 ry=81 +x=237 y=81 rx=236 ry=80 +x=238 y=80 rx=236 ry=79 +x=239 y=79 rx=236 ry=78 +x=240 y=78 rx=236 ry=77 +x=241 y=77 rx=240 ry=76 +x=242 y=76 rx=240 ry=75 +x=243 y=75 rx=240 ry=74 +x=244 y=74 rx=240 ry=73 +x=245 y=73 rx=244 ry=72 +x=246 y=72 rx=244 ry=71 +x=247 y=71 rx=244 ry=70 +x=248 y=70 rx=244 ry=69 +x=249 y=69 rx=248 ry=68 +x=250 y=68 rx=248 ry=67 +x=251 y=67 rx=248 ry=66 +x=252 y=66 rx=248 ry=65 +x=253 y=65 rx=252 ry=64 +x=254 y=64 rx=252 ry=63 +x=255 y=63 rx=252 ry=62 +x=256 y=62 rx=252 ry=61 +x=257 y=61 rx=256 ry=60 +x=258 y=60 rx=256 ry=59 +x=259 y=59 rx=256 ry=58 +x=260 y=58 rx=256 ry=57 +x=261 y=57 rx=260 ry=56 +x=262 y=56 rx=260 ry=55 +x=263 y=55 rx=260 ry=54 +x=264 y=54 rx=260 ry=53 +x=265 y=53 rx=264 ry=52 +x=266 y=52 rx=264 ry=51 +x=267 y=51 rx=264 ry=50 +x=268 y=50 rx=264 ry=49 +x=269 y=49 rx=268 ry=48 +x=270 y=48 rx=268 ry=47 +x=271 y=47 rx=268 ry=46 +x=272 y=46 rx=268 ry=45 +x=273 y=45 rx=272 ry=44 +x=274 y=44 rx=272 ry=43 +x=275 y=43 rx=272 ry=42 +x=276 y=42 rx=272 ry=41 +x=277 y=41 rx=276 ry=40 +x=278 y=40 rx=276 ry=39 +x=279 y=39 rx=276 ry=38 +x=280 y=38 rx=276 ry=37 +x=281 y=37 rx=280 ry=36 +x=282 y=36 rx=280 ry=35 +x=283 y=35 rx=280 ry=34 +x=284 y=34 rx=280 ry=33 +x=285 y=33 rx=284 ry=32 +x=286 y=32 rx=284 ry=31 +x=287 y=31 rx=284 ry=30 +x=288 y=30 rx=284 ry=29 +x=289 y=29 rx=288 ry=28 +x=290 y=28 rx=288 ry=27 +x=291 y=27 rx=288 ry=26 +x=292 y=26 rx=288 ry=25 +x=293 y=25 rx=292 ry=24 +x=294 y=24 rx=292 ry=23 +x=295 y=23 rx=292 ry=22 +x=294 y=22 rx=292 ry=21 +x=293 y=21 rx=292 ry=20 +x=292 y=20 rx=288 ry=19 +x=291 y=19 rx=288 ry=18 +x=290 y=18 rx=288 ry=17 +x=289 y=17 rx=288 ry=16 +x=288 y=16 rx=284 ry=15 +x=287 y=15 rx=284 ry=14 +x=286 y=14 rx=284 ry=13 +x=285 y=13 rx=284 ry=12 +x=284 y=12 rx=280 ry=11 +x=283 y=11 rx=280 ry=10 +x=282 y=10 rx=280 ry=9 +x=281 y=9 rx=280 ry=8 +x=280 y=8 rx=276 ry=7 +x=279 y=7 rx=276 ry=6 +x=278 y=6 rx=276 ry=5 +x=277 y=5 rx=276 ry=4 +x=276 y=4 rx=272 ry=3 +x=275 y=3 rx=272 ry=2 +x=274 y=2 rx=272 ry=1 +x=273 y=1 rx=272 ry=0 +x=272 y=0 rx=268 ry=-16 +x=271 y=-1 rx=268 ry=-2 +x=270 y=-2 rx=268 ry=-3 +x=269 y=-3 rx=268 ry=-4 +x=268 y=-4 rx=264 ry=-5 +x=267 y=-5 rx=264 ry=-6 +x=266 y=-6 rx=264 ry=-7 +x=265 y=-7 rx=264 ry=-8 +x=264 y=-8 rx=260 ry=-9 +x=263 y=-9 rx=260 ry=-10 +x=262 y=-10 rx=260 ry=-11 +x=261 y=-11 rx=260 ry=-12 +x=260 y=-12 rx=256 ry=-13 +x=259 y=-13 rx=256 ry=-14 +x=258 y=-14 rx=256 ry=-15 +x=257 y=-15 rx=256 ry=-16 +x=256 y=-16 rx=252 ry=-17 +x=255 y=-15 rx=252 ry=-16 +x=254 y=-14 rx=252 ry=-15 +x=253 y=-13 rx=252 ry=-14 +x=252 y=-12 rx=248 ry=-13 +x=251 y=-11 rx=248 ry=-12 +x=250 y=-10 rx=248 ry=-11 +x=249 y=-9 rx=248 ry=-10 +x=248 y=-8 rx=244 ry=-9 +x=247 y=-7 rx=244 ry=-8 +x=246 y=-6 rx=244 ry=-7 +x=245 y=-5 rx=244 ry=-6 +x=244 y=-4 rx=240 ry=-5 +x=243 y=-3 rx=240 ry=-4 +x=242 y=-2 rx=240 ry=-3 +x=241 y=-1 rx=240 ry=-2 +x=240 y=0 rx=236 ry=-16 +x=239 y=1 rx=236 ry=0 +x=238 y=2 rx=236 ry=1 +x=237 y=3 rx=236 ry=2 +x=236 y=4 rx=232 ry=3 +x=235 y=5 rx=232 ry=4 +x=234 y=6 rx=232 ry=5 +x=233 y=7 rx=232 ry=6 +x=232 y=8 rx=228 ry=7 +x=231 y=9 rx=228 ry=8 +x=230 y=10 rx=228 ry=9 +x=229 y=11 rx=228 ry=10 +x=228 y=12 rx=224 ry=11 +x=227 y=13 rx=224 ry=12 +x=226 y=14 rx=224 ry=13 +x=225 y=15 rx=224 ry=14 +x=224 y=16 rx=220 ry=15 +x=223 y=17 rx=220 ry=16 +x=222 y=18 rx=220 ry=17 +x=221 y=19 rx=220 ry=18 +x=220 y=20 rx=216 ry=19 +x=219 y=21 rx=216 ry=20 +x=218 y=22 rx=216 ry=21 +x=217 y=23 rx=216 ry=22 +x=216 y=24 rx=212 ry=23 +x=215 y=25 rx=212 ry=24 +x=214 y=26 rx=212 ry=25 +x=213 y=27 rx=212 ry=26 +x=212 y=28 rx=208 ry=27 +x=211 y=29 rx=208 ry=28 +x=210 y=30 rx=208 ry=29 +x=209 y=31 rx=208 ry=30 +x=208 y=32 rx=204 ry=31 +x=207 y=33 rx=204 ry=32 +x=206 y=34 rx=204 ry=33 +x=205 y=35 rx=204 ry=34 +x=204 y=36 rx=200 ry=35 +x=203 y=37 rx=200 ry=36 +x=202 y=38 rx=200 ry=37 +x=201 y=39 rx=200 ry=38 +x=200 y=40 rx=196 ry=39 +x=199 y=41 rx=196 ry=40 +x=198 y=42 rx=196 ry=41 +x=197 y=43 rx=196 ry=42 +x=196 y=44 rx=192 ry=43 +x=195 y=45 rx=192 ry=44 +x=194 y=46 rx=192 ry=45 +x=193 y=47 rx=192 ry=46 +x=192 y=48 rx=188 ry=47 +x=191 y=49 rx=188 ry=48 +x=190 y=50 rx=188 ry=49 +x=189 y=51 rx=188 ry=50 +x=188 y=52 rx=184 ry=51 +x=187 y=53 rx=184 ry=52 +x=186 y=54 rx=184 ry=53 +x=185 y=55 rx=184 ry=54 +x=184 y=56 rx=180 ry=55 +x=183 y=57 rx=180 ry=56 +x=182 y=58 rx=180 ry=57 +x=181 y=59 rx=180 ry=58 +x=180 y=60 rx=176 ry=59 +x=179 y=61 rx=176 ry=60 +x=178 y=62 rx=176 ry=61 +x=177 y=63 rx=176 ry=62 +x=176 y=64 rx=172 ry=63 +x=175 y=65 rx=172 ry=64 +x=174 y=66 rx=172 ry=65 +x=173 y=67 rx=172 ry=66 +x=172 y=68 rx=168 ry=67 +x=171 y=69 rx=168 ry=68 +x=170 y=70 rx=168 ry=69 +x=169 y=71 rx=168 ry=70 +x=168 y=72 rx=164 ry=71 +x=167 y=73 rx=164 ry=72 +x=166 y=74 rx=164 ry=73 +x=165 y=75 rx=164 ry=74 +x=164 y=76 rx=160 ry=75 +x=163 y=77 rx=160 ry=76 +x=162 y=78 rx=160 ry=77 +x=161 y=79 rx=160 ry=78 +x=160 y=80 rx=156 ry=79 +x=159 y=81 rx=156 ry=80 +x=158 y=82 rx=156 ry=81 +x=157 y=83 rx=156 ry=82 +x=156 y=84 rx=152 ry=83 +x=155 y=85 rx=152 ry=84 +x=154 y=86 rx=152 ry=85 +x=153 y=87 rx=152 ry=86 +x=152 y=88 rx=148 ry=87 +x=151 y=89 rx=148 ry=88 +x=150 y=90 rx=148 ry=89 +x=149 y=91 rx=148 ry=90 +x=148 y=92 rx=144 ry=91 +x=147 y=93 rx=144 ry=92 +x=146 y=94 rx=144 ry=93 +x=145 y=95 rx=144 ry=94 +x=144 y=96 rx=140 ry=95 +x=143 y=97 rx=140 ry=96 +x=142 y=98 rx=140 ry=97 +x=141 y=99 rx=140 ry=98 +x=140 y=100 rx=136 ry=99 +x=139 y=101 rx=136 ry=100 +x=138 y=102 rx=136 ry=101 +x=137 y=103 rx=136 ry=102 +x=136 y=104 rx=132 ry=103 +x=135 y=105 rx=132 ry=104 +x=134 y=106 rx=132 ry=105 +x=133 y=107 rx=132 ry=106 +x=132 y=108 rx=128 ry=107 +x=131 y=109 rx=128 ry=108 +x=130 y=110 rx=128 ry=109 +x=129 y=111 rx=128 ry=110 +x=128 y=112 rx=124 ry=111 +x=127 y=113 rx=124 ry=112 +x=126 y=114 rx=124 ry=113 +x=125 y=115 rx=124 ry=114 +x=124 y=116 rx=120 ry=115 +x=123 y=117 rx=120 ry=116 +x=122 y=118 rx=120 ry=117 +x=121 y=119 rx=120 ry=118 +x=120 y=120 rx=116 ry=119 +x=119 y=121 rx=116 ry=120 +x=118 y=122 rx=116 ry=121 +x=117 y=123 rx=116 ry=122 +x=116 y=124 rx=112 ry=123 +x=115 y=125 rx=112 ry=124 +x=114 y=126 rx=112 ry=125 +x=113 y=127 rx=112 ry=126 +x=112 y=128 rx=108 ry=127 +x=111 y=129 rx=108 ry=128 +x=110 y=130 rx=108 ry=129 +x=109 y=131 rx=108 ry=130 +x=108 y=132 rx=104 ry=131 +x=107 y=133 rx=104 ry=132 +x=106 y=134 rx=104 ry=133 +x=105 y=135 rx=104 ry=134 +x=104 y=136 rx=100 ry=135 +x=103 y=137 rx=100 ry=136 +x=102 y=138 rx=100 ry=137 +x=101 y=139 rx=100 ry=138 +x=100 y=140 rx=96 ry=139 +x=99 y=141 rx=96 ry=140 +x=98 y=142 rx=96 ry=141 +x=97 y=143 rx=96 ry=142 +x=96 y=144 rx=92 ry=143 +x=95 y=145 rx=92 ry=144 +x=94 y=146 rx=92 ry=145 +x=93 y=147 rx=92 ry=146 +x=92 y=148 rx=88 ry=147 +x=91 y=149 rx=88 ry=148 +x=90 y=150 rx=88 ry=149 +x=89 y=151 rx=88 ry=150 +x=88 y=152 rx=84 ry=151 +x=87 y=153 rx=84 ry=152 +x=86 y=154 rx=84 ry=153 +x=85 y=155 rx=84 ry=154 +x=84 y=156 rx=80 ry=155 +x=83 y=157 rx=80 ry=156 +x=82 y=158 rx=80 ry=157 +x=81 y=159 rx=80 ry=158 +x=80 y=158 rx=76 ry=157 +x=79 y=157 rx=76 ry=156 +x=78 y=156 rx=76 ry=155 +x=77 y=155 rx=76 ry=154 +x=76 y=154 rx=72 ry=153 +x=75 y=153 rx=72 ry=152 +x=74 y=152 rx=72 ry=151 +x=73 y=151 rx=72 ry=150 +x=72 y=150 rx=68 ry=149 +x=71 y=149 rx=68 ry=148 +x=70 y=148 rx=68 ry=147 +x=69 y=147 rx=68 ry=146 +x=68 y=146 rx=64 ry=145 +x=67 y=145 rx=64 ry=144 +x=66 y=144 rx=64 ry=143 +x=65 y=143 rx=64 ry=142 +x=64 y=142 rx=60 ry=141 +x=63 y=141 rx=60 ry=140 +x=62 y=140 rx=60 ry=139 +x=61 y=139 rx=60 ry=138 +x=60 y=138 rx=56 ry=137 +x=59 y=137 rx=56 ry=136 +x=58 y=136 rx=56 ry=135 +x=57 y=135 rx=56 ry=134 +x=56 y=134 rx=52 ry=133 +x=55 y=133 rx=52 ry=132 +x=54 y=132 rx=52 ry=131 +x=53 y=131 rx=52 ry=130 +x=52 y=130 rx=48 ry=129 +x=51 y=129 rx=48 ry=128 +x=50 y=128 rx=48 ry=127 +x=49 y=127 rx=48 ry=126 +x=48 y=126 rx=44 ry=125 +x=47 y=125 rx=44 ry=124 +x=46 y=124 rx=44 ry=123 +x=45 y=123 rx=44 ry=122 +x=44 y=122 rx=40 ry=121 +x=43 y=121 rx=40 ry=120 +x=42 y=120 rx=40 ry=119 +x=41 y=119 rx=40 ry=118 +x=40 y=118 rx=36 ry=117 +x=39 y=117 rx=36 ry=116 +x=38 y=116 rx=36 ry=115 +x=37 y=115 rx=36 ry=114 +x=36 y=114 rx=32 ry=113 +x=35 y=113 rx=32 ry=112 +x=34 y=112 rx=32 ry=111 +x=33 y=111 rx=32 ry=110 +x=32 y=110 rx=28 ry=109 +x=31 y=109 rx=28 ry=108 +x=30 y=108 rx=28 ry=107 +x=29 y=107 rx=28 ry=106 +x=28 y=106 rx=24 ry=105 +x=27 y=105 rx=24 ry=104 +x=26 y=104 rx=24 ry=103 +x=25 y=103 rx=24 ry=102 +x=24 y=102 rx=20 ry=101 +x=23 y=101 rx=20 ry=100 +x=22 y=100 rx=20 ry=99 +x=21 y=99 rx=20 ry=98 +x=20 y=98 rx=16 ry=97 +x=19 y=97 rx=16 ry=96 +x=18 y=96 rx=16 ry=95 +x=17 y=95 rx=16 ry=94 +x=16 y=94 rx=12 ry=93 +x=15 y=93 rx=12 ry=92 +x=14 y=92 rx=12 ry=91 +x=13 y=91 rx=12 ry=90 +x=12 y=90 rx=8 ry=89 +x=11 y=89 rx=8 ry=88 +x=10 y=88 rx=8 ry=87 +x=9 y=87 rx=8 ry=86 +x=8 y=86 rx=4 ry=85 +x=7 y=85 rx=4 ry=84 +x=6 y=84 rx=4 ry=83 +x=5 y=83 rx=4 ry=82 +x=4 y=82 rx=0 ry=81 +x=3 y=81 rx=0 ry=80 +x=2 y=80 rx=0 ry=79 +x=1 y=79 rx=0 ry=78 +x=0 y=78 rx=-16 ry=77 +x=-1 y=77 rx=-4 ry=76 +x=-2 y=76 rx=-4 ry=75 +x=-3 y=75 rx=-4 ry=74 +x=-4 y=74 rx=-8 ry=73 +x=-5 y=73 rx=-8 ry=72 +x=-6 y=72 rx=-8 ry=71 +x=-7 y=71 rx=-8 ry=70 +x=-8 y=70 rx=-12 ry=69 +x=-9 y=69 rx=-12 ry=68 +x=-10 y=68 rx=-12 ry=67 +x=-11 y=67 rx=-12 ry=66 +x=-12 y=66 rx=-16 ry=65 +x=-13 y=65 rx=-16 ry=64 +x=-14 y=64 rx=-16 ry=63 +x=-15 y=63 rx=-16 ry=62 +x=-16 y=62 rx=-20 ry=61 +x=-15 y=61 rx=-16 ry=60 +x=-14 y=60 rx=-16 ry=59 +x=-13 y=59 rx=-16 ry=58 +x=-12 y=58 rx=-16 ry=57 + +Project 16 0.exe. This is just a test file! +version Jan 13 2017 10:14:07 +mv 0 +- tx=1 ty=1 dx=16 dy=16 +mv 1 +- tx=1 ty=1 dx=16 dy=16 diff --git a/makefile b/makefile index 7ae42ed1..e6f0d7d6 100755 --- a/makefile +++ b/makefile @@ -198,6 +198,7 @@ TESTEXEC3= & pcxtest2.exe UTILEXEC = & palettel.exe & + palllist.exe & palettec.exe !ifdef __LINUX__ SPRIUTILEXEC = & @@ -245,8 +246,9 @@ inputest.exe: inputest.$(OBJ) $(16LIB) $(DOSLIB) pcxtest.exe: pcxtest.$(OBJ) gfx.lib $(DOSLIB) $(16LIB) vrstest.exe: vrstest.$(OBJ) $(16LIB) gfx.lib $(DOSLIB) #vgacamm.exe: vgacamm.$(OBJ) $(16LIB) gfx.lib $(DOSLIB) -palettec.exe: palettec.$(OBJ) gfx.lib $(DOSLIB) -palettel.exe: palettel.$(OBJ) gfx.lib $(DOSLIB) +palettec.exe: palettec.$(OBJ) gfx.lib $(DOSLIB) +palettel.exe: palettel.$(OBJ) gfx.lib $(DOSLIB) +palllist.exe: palllist.$(OBJ) gfx.lib $(DOSLIB) pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib $(DOSLIB) #planrpcx.exe: planrpcx.$(OBJ) gfx.lib maptest.exe: maptest.$(OBJ) 16_map.$(OBJ) 16_head.$(OBJ) gfx.lib $(DOSLIB) $(16LIB) @@ -269,8 +271,9 @@ vrstest.$(OBJ):$(SRC)/vrstest.c $(SRCLIB)/16_vl.h #vgacamm.$(OBJ):$(SRC)/vgacamm.c $(SRCLIB)/16_vl.h #planrpcx.$(OBJ): $(SRC)/planrpcx.c $(SRCLIB)/16_vl.h pcxtest2.$(OBJ):$(SRC)/pcxtest2.c $(SRCLIB)/16_vl.h -palettec.$(OBJ):$(SRC)/palettec.c -palettel.$(OBJ):$(SRC)/palettel.c +palettec.$(OBJ): $(SRC)/palettec.c +palettel.$(OBJ): $(SRC)/palettel.c +palllist.$(OBJ): $(SRC)/palllist.c maptest.$(OBJ):$(SRC)/maptest.c $(SRCLIB)/16_vl.h #emmtest.$(OBJ):$(SRC)/emmtest.c #emsdump.$(OBJ):$(SRC)/emsdump.c diff --git a/src/0.c b/src/0.c index 2eceb18a..c4d0ece3 100755 --- a/src/0.c +++ b/src/0.c @@ -176,6 +176,7 @@ int main(int argc,char **argv) /* then the sprite. note modding ram ptr means we just draw to (x&3,0) */ draw_vrl1_vgax_modex(x-rx,y-ry,vrl_header,vrl_lineoffs,buffer+sizeof(*vrl_header),bufsz-sizeof(*vrl_header)); +//printf("x=%d y=%d rx=%d ry=%d\n", x, y, rx, ry); /* restore ptr */ vga_state.vga_graphics_ram = omemptr; diff --git a/src/lib/16_sprit.c b/src/lib/16_sprit.c index c11ff638..5aad1893 100755 --- a/src/lib/16_sprit.c +++ b/src/lib/16_sprit.c @@ -109,11 +109,19 @@ void animate_spri(struct sprite *spri, global_game_variables_t *gv) { Quit (gv, "Error retriving required sprite"); } - draw_vrl1_vgax_modex( spri->x,// - spri->sprite_vrl_cont->vrl_header->width-28, - spri->y,// - spri->sprite_vrl_cont->vrl_header->height*2 -(gv->video.page[0].sh/2), - spri->sprite_vrl_cont->vrl_header, spri->sprite_vrl_cont->line_offsets, - spri->sprite_vrl_cont->buffer + sizeof(struct vrl1_vgax_header), - spri->sprite_vrl_cont->data_size); +// draw_vrl1_vgax_modex(x-rx,y-ry,vrl_header,vrl_lineoffs,buffer+sizeof(*vrl_header),bufsz-sizeof(*vrl_header)); + draw_vrl1_vgax_modex( + spri->x,// - spri->sprite_vrl_cont->vrl_header->width-28, + spri->y,// - spri->sprite_vrl_cont->vrl_header->height*2 -(gv->video.page[0].sh/2), + //vrl_header, + spri->sprite_vrl_cont->vrl_header, + //vrl_lineoffs, + spri->sprite_vrl_cont->line_offsets, + //buffer+sizeof(*vrl_header), + spri->sprite_vrl_cont->buffer + sizeof(struct vrl1_vgax_header), + //bufsz-sizeof(*vrl_header)); + spri->sprite_vrl_cont->data_size + ); // Depending on delay, update indices switch(spri->delay){ diff --git a/src/palllist.c b/src/palllist.c new file mode 100755 index 00000000..e15d8625 --- /dev/null +++ b/src/palllist.c @@ -0,0 +1,66 @@ +/* Project 16 Source Code~ + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * + * This file is part of Project 16. + * + * Project 16 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * Project 16 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see , or + * write to the Free Software Foundation, Inc., 51 Franklin Street, + * Fifth Floor, Boston, MA 02110-1301 USA. + * + */ +/* + * palllist experiment + */ +/* + * An experiment where I make 2 small linked list which points to 2 arrays + * one is the "hardware palette" array + * the other is "image palette" array + * and their respectable pointers point to their [i] stuff + * + * the palette updater stuff i want to make is this: + * + * VGA IMG + * 1- 2- + * 2- 4- + * 3- 0- + * 4- 9- + * 5- 0-(I will figure this out later if there is dup numbs) + * 6- + * 7- + * 8- + * + * MERGE THEM INTO + * + * VGA + * 1- + * 2->IMG[0] + * 3- + * 4->IMG[1] + * 5 + * 6 + * 7 + * 8 + * 9->IMG[3] + * 0->IMG[2]->IMG[4] + * + * i am going to work on a really big area of code it will be on the refresh system, the walking/scrolling system, things that use showpage, adding disableing 8087 functions if no 8087 detected, and a bunch of other things i cannot remember off the top of my head because i am BURNT. I need a small break~ -- -- -- -- update! i am working on this i made ZC_WALK and i am going to move to VRL/VRS soon! . + * ==== PRE SHOWPAGE TO SHOWMV CONVERSION ==== i am going to work on a really big area of code it will be on the refresh system, the walking/scrolling system, things that use showpage, adding disableing 8087 functions if no 8087 detected, and a bunch of other things i cannot remember off the top of my head because i am BURNT. I need a small break~ -- -- -- -- update! i am working on this i made ZC_WALK and i am going to move to VRL/VRS soon! + */ +#include + +void +main(int argc, char *argv[]) +{ +//TOO TIREDWWWW +} diff --git a/src/vrstest.c b/src/vrstest.c index 79338763..55067804 100755 --- a/src/vrstest.c +++ b/src/vrstest.c @@ -97,7 +97,7 @@ void main() { return; } - spri.x = 5; + spri.x = 16; spri.y = 100; // Uncomment to see broken sprites @@ -134,7 +134,7 @@ void main() w++; break; }*/ - if(IN_KeyDown(24)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); } //p + if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[0]); IN_UserInput(1,1); } //p FUNCTIONKEYFUNCTIONS; } VGAmodeX(0, 1, &gvar); -- 2.39.2