minor art updates

This commit is contained in:
Shoofle 2025-03-12 11:52:47 -04:00
parent 40073aefea
commit b4c858b89f
7 changed files with 18 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -8,6 +8,17 @@ TheLovers:
dw .BackgroundCopy
dw .KeyArtTilesEnd - .KeyArtTiles
dw .KeyArtTiles
dw .SpriteTilesEnd - .SpriteTiles
dw .SpriteTiles
dw .fInit
dw .fUpdate
dw .fDraw
.fInit: ret
.fUpdate: ret
.fDraw: ret
.SpriteTiles:
.SpriteTilesEnd:
; original export script by gabriel reis, modified by shoofle

Binary file not shown.

View File

@ -23,7 +23,7 @@
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<g id="point">
<rect id="sprite" x="-0.5" y="-0.5" width="8" height="8" stroke="none" fill="gray" fill-opacity="25%"/>
<rect id="sprite" x="0" y="0" width="8" height="8" stroke="none" fill="gray" fill-opacity="25%"/>
<circle cx="0.5" cy="0.5" r="2" fill="black" fill-opacity="25%"/>
<circle cx="0.5" cy="0.5" r="0.5" fill="black" fill-opacity="100%"/>
</g>
@ -94,6 +94,8 @@
var text_output = null;
var moving_point_index = -1;
var the_list = [];
var current_viewport = {center: {x: 0, y: 0}, radius: {x: 176, y: 176}};
var max_viewport = {center: {x: 0, y: 0}, radius: {x: 176, y:176}};
function length(dx, dy) {return Math.sqrt(dx*dx + dy*dy);}
@ -188,16 +190,12 @@
}
const changetextarea = (event) => {
let raw = event.target.value;
let stripped = raw.replace(/db [0-9]+,/, "");
let pairs = stripped.matchAll(/ ?[0-9]+, ?[0-9]+/g);
let splits = pairs.map((x) => x[0].split(/,/));
let points = splits.map(([a, b]) => { return {y: Number(a), x: Number(b)}; } );
let numbers = splits.map(([a, b]) => { return {y: Number(a), x: Number(b)}; } );
the_list = [... numbers];
the_list = [... points];
regenerate_svg_list();
regenerate_text_list();
@ -292,6 +290,8 @@
if (event.key == 'd') { delete_radio.checked = true; }
if (event.key == 'g') { move_radio.checked = true; }
}
}
</script>
</html>

Binary file not shown.