M assets/dist/spritesheet-125.png => assets/dist/spritesheet-125.png +0 -0
M assets/dist/spritesheet-125.ron => assets/dist/spritesheet-125.ron +1 -1
@@ 1,1 1,1 @@
-(texture_width:256,texture_height:1408,sprites:[(name:"earth",x:0,y:0,width:256,height:256,offsets:None,),(name:"autoplr_cfg",x:0,y:256,width:64,height:64,offsets:None,),(name:"superthruster_on",x:0,y:320,width:64,height:64,offsets:None,),(name:"hearty",x:0,y:384,width:64,height:64,offsets:None,),(name:"ecothruster_on",x:0,y:448,width:64,height:64,offsets:None,),(name:"superthruster_off",x:0,y:512,width:64,height:64,offsets:None,),(name:"landingleg",x:0,y:576,width:64,height:64,offsets:None,),(name:"hub_off",x:0,y:640,width:64,height:64,offsets:None,),(name:"powerhub_off",x:0,y:704,width:64,height:64,offsets:None,),(name:"powerhub_on",x:0,y:768,width:64,height:64,offsets:None,),(name:"cargo_off",x:0,y:832,width:64,height:64,offsets:None,),(name:"thruster_on",x:0,y:896,width:64,height:64,offsets:None,),(name:"landingthruster_on",x:0,y:960,width:64,height:64,offsets:None,),(name:"landingthruster_off",x:0,y:1024,width:64,height:64,offsets:None,),(name:"autoplr_on",x:0,y:1088,width:64,height:64,offsets:None,),(name:"thruster_off",x:0,y:1152,width:64,height:64,offsets:None,),(name:"cargo_on",x:0,y:1216,width:64,height:64,offsets:None,),(name:"autoplr_error",x:0,y:1280,width:64,height:64,offsets:None,),(name:"hub_on",x:0,y:1344,width:64,height:64,offsets:None,),],)>
\ No newline at end of file
+(texture_width:256,texture_height:1472,sprites:[(name:"earth",x:0,y:0,width:256,height:256,offsets:None,),(name:"ecothruster_on",x:0,y:256,width:64,height:64,offsets:None,),(name:"landingleg",x:0,y:320,width:64,height:64,offsets:None,),(name:"superthruster_on",x:0,y:384,width:64,height:64,offsets:None,),(name:"cargo_on",x:0,y:448,width:64,height:64,offsets:None,),(name:"autoplr_cfg",x:0,y:512,width:64,height:64,offsets:None,),(name:"landingthruster_off",x:0,y:576,width:64,height:64,offsets:None,),(name:"superthruster_off",x:0,y:640,width:64,height:64,offsets:None,),(name:"autoplr_on",x:0,y:704,width:64,height:64,offsets:None,),(name:"thruster_off",x:0,y:768,width:64,height:64,offsets:None,),(name:"cargo_off",x:0,y:832,width:64,height:64,offsets:None,),(name:"thruster_on",x:0,y:896,width:64,height:64,offsets:None,),(name:"autoplr_error",x:0,y:960,width:64,height:64,offsets:None,),(name:"hub_off",x:0,y:1024,width:64,height:64,offsets:None,),(name:"powerhub_off",x:0,y:1088,width:64,height:64,offsets:None,),(name:"hearty",x:0,y:1152,width:64,height:64,offsets:None,),(name:"hub_on",x:0,y:1216,width:64,height:64,offsets:None,),(name:"starfield",x:0,y:1280,width:64,height:64,offsets:None,),(name:"landingthruster_on",x:0,y:1344,width:64,height:64,offsets:None,),(name:"powerhub_on",x:0,y:1408,width:64,height:64,offsets:None,),],)<
\ No newline at end of file
M assets/dist/spritesheet-375.png => assets/dist/spritesheet-375.png +0 -0
M assets/dist/spritesheet-375.ron => assets/dist/spritesheet-375.ron +1 -1
@@ 1,1 1,1 @@
-(texture_width:768,texture_height:4224,sprites:[(name:"earth",x:0,y:0,width:768,height:768,offsets:None,),(name:"autoplr_cfg",x:0,y:768,width:192,height:192,offsets:None,),(name:"superthruster_on",x:0,y:960,width:192,height:192,offsets:None,),(name:"hearty",x:0,y:1152,width:192,height:192,offsets:None,),(name:"ecothruster_on",x:0,y:1344,width:192,height:192,offsets:None,),(name:"superthruster_off",x:0,y:1536,width:192,height:192,offsets:None,),(name:"landingleg",x:0,y:1728,width:192,height:192,offsets:None,),(name:"hub_off",x:0,y:1920,width:192,height:192,offsets:None,),(name:"powerhub_off",x:0,y:2112,width:192,height:192,offsets:None,),(name:"powerhub_on",x:0,y:2304,width:192,height:192,offsets:None,),(name:"cargo_off",x:0,y:2496,width:192,height:192,offsets:None,),(name:"thruster_on",x:0,y:2688,width:192,height:192,offsets:None,),(name:"landingthruster_on",x:0,y:2880,width:192,height:192,offsets:None,),(name:"landingthruster_off",x:0,y:3072,width:192,height:192,offsets:None,),(name:"autoplr_on",x:0,y:3264,width:192,height:192,offsets:None,),(name:"thruster_off",x:0,y:3456,width:192,height:192,offsets:None,),(name:"cargo_on",x:0,y:3648,width:192,height:192,offsets:None,),(name:"autoplr_error",x:0,y:3840,width:192,height:192,offsets:None,),(name:"hub_on",x:0,y:4032,width:192,height:192,offsets:None,),],)>
\ No newline at end of file
+(texture_width:768,texture_height:4224,sprites:[(name:"earth",x:0,y:0,width:768,height:768,offsets:None,),(name:"ecothruster_on",x:0,y:768,width:192,height:192,offsets:None,),(name:"landingleg",x:0,y:960,width:192,height:192,offsets:None,),(name:"superthruster_on",x:0,y:1152,width:192,height:192,offsets:None,),(name:"cargo_on",x:0,y:1344,width:192,height:192,offsets:None,),(name:"autoplr_cfg",x:0,y:1536,width:192,height:192,offsets:None,),(name:"landingthruster_off",x:0,y:1728,width:192,height:192,offsets:None,),(name:"superthruster_off",x:0,y:1920,width:192,height:192,offsets:None,),(name:"autoplr_on",x:0,y:2112,width:192,height:192,offsets:None,),(name:"thruster_off",x:0,y:2304,width:192,height:192,offsets:None,),(name:"cargo_off",x:0,y:2496,width:192,height:192,offsets:None,),(name:"thruster_on",x:0,y:2688,width:192,height:192,offsets:None,),(name:"autoplr_error",x:0,y:2880,width:192,height:192,offsets:None,),(name:"hub_off",x:0,y:3072,width:192,height:192,offsets:None,),(name:"powerhub_off",x:0,y:3264,width:192,height:192,offsets:None,),(name:"hearty",x:0,y:3456,width:192,height:192,offsets:None,),(name:"hub_on",x:0,y:3648,width:192,height:192,offsets:None,),(name:"starfield",x:0,y:3840,width:192,height:192,offsets:None,),(name:"landingthruster_on",x:0,y:4032,width:192,height:192,offsets:None,),(name:"powerhub_on",x:192,y:768,width:192,height:192,offsets:None,),],)<
\ No newline at end of file
M assets/dist/spritesheet-full.png => assets/dist/spritesheet-full.png +0 -0
M assets/dist/spritesheet-full.ron => assets/dist/spritesheet-full.ron +1 -1
@@ 1,1 1,1 @@
-(texture_width:3072,texture_height:4096,sprites:[(name:"earth",x:0,y:0,width:2048,height:2048,offsets:None,),(name:"autoplr_cfg",x:0,y:2048,width:512,height:512,offsets:None,),(name:"superthruster_on",x:0,y:2560,width:512,height:512,offsets:None,),(name:"hearty",x:0,y:3072,width:512,height:512,offsets:None,),(name:"ecothruster_on",x:0,y:3584,width:512,height:512,offsets:None,),(name:"superthruster_off",x:512,y:2048,width:512,height:512,offsets:None,),(name:"landingleg",x:512,y:2560,width:512,height:512,offsets:None,),(name:"hub_off",x:512,y:3072,width:512,height:512,offsets:None,),(name:"powerhub_off",x:512,y:3584,width:512,height:512,offsets:None,),(name:"powerhub_on",x:1024,y:2048,width:512,height:512,offsets:None,),(name:"cargo_off",x:1024,y:2560,width:512,height:512,offsets:None,),(name:"thruster_on",x:1024,y:3072,width:512,height:512,offsets:None,),(name:"landingthruster_on",x:1024,y:3584,width:512,height:512,offsets:None,),(name:"landingthruster_off",x:1536,y:2048,width:512,height:512,offsets:None,),(name:"autoplr_on",x:1536,y:2560,width:512,height:512,offsets:None,),(name:"thruster_off",x:1536,y:3072,width:512,height:512,offsets:None,),(name:"cargo_on",x:1536,y:3584,width:512,height:512,offsets:None,),(name:"autoplr_error",x:2048,y:0,width:512,height:512,offsets:None,),(name:"hub_on",x:2560,y:0,width:512,height:512,offsets:None,),],)>
\ No newline at end of file
+(texture_width:3584,texture_height:4096,sprites:[(name:"earth",x:0,y:0,width:2048,height:2048,offsets:None,),(name:"ecothruster_on",x:0,y:2048,width:512,height:512,offsets:None,),(name:"landingleg",x:0,y:2560,width:512,height:512,offsets:None,),(name:"superthruster_on",x:0,y:3072,width:512,height:512,offsets:None,),(name:"cargo_on",x:0,y:3584,width:512,height:512,offsets:None,),(name:"autoplr_cfg",x:512,y:2048,width:512,height:512,offsets:None,),(name:"landingthruster_off",x:512,y:2560,width:512,height:512,offsets:None,),(name:"superthruster_off",x:512,y:3072,width:512,height:512,offsets:None,),(name:"autoplr_on",x:512,y:3584,width:512,height:512,offsets:None,),(name:"thruster_off",x:1024,y:2048,width:512,height:512,offsets:None,),(name:"cargo_off",x:1024,y:2560,width:512,height:512,offsets:None,),(name:"thruster_on",x:1024,y:3072,width:512,height:512,offsets:None,),(name:"autoplr_error",x:1024,y:3584,width:512,height:512,offsets:None,),(name:"hub_off",x:1536,y:2048,width:512,height:512,offsets:None,),(name:"powerhub_off",x:1536,y:2560,width:512,height:512,offsets:None,),(name:"hearty",x:1536,y:3072,width:512,height:512,offsets:None,),(name:"hub_on",x:1536,y:3584,width:512,height:512,offsets:None,),(name:"starfield",x:2048,y:0,width:512,height:512,offsets:None,),(name:"landingthruster_on",x:2560,y:0,width:512,height:512,offsets:None,),(name:"powerhub_on",x:3072,y:0,width:512,height:512,offsets:None,),],)<
\ No newline at end of file
A assets/final/125/starfield.png => assets/final/125/starfield.png +0 -0
A assets/final/375/starfield.png => assets/final/375/starfield.png +0 -0
A assets/final/full/starfield.png => assets/final/full/starfield.png +0 -0
A assets/src/starfield.ink.svg => assets/src/starfield.ink.svg +470 -0
@@ 0,0 1,470 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="768"
+ height="768"
+ viewBox="0 0 203.19999 203.20001"
+ version="1.1"
+ id="svg3372"
+ inkscape:export-filename="/home/tm85/prj/stk_sprites/starfield.png"
+ inkscape:export-xdpi="64"
+ inkscape:export-ydpi="64"
+ inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
+ sodipodi:docname="starfield.ink.svg"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview3374"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0.0"
+ inkscape:pagecheckerboard="true"
+ inkscape:document-units="px"
+ showgrid="false"
+ units="px"
+ width="512px"
+ inkscape:snap-object-midpoints="true"
+ inkscape:zoom="1"
+ inkscape:cx="512.5"
+ inkscape:cy="351.5"
+ inkscape:window-width="1270"
+ inkscape:window-height="1412"
+ inkscape:window-x="4"
+ inkscape:window-y="20"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="layer1" />
+ <defs
+ id="defs3369" />
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="fill:#000000;fill-opacity:1;stroke-width:0.264582"
+ id="rect3420"
+ width="203.2"
+ height="203.2"
+ x="7.1054274e-15"
+ y="7.1054274e-15" />
+ <circle
+ style="fill:#ffffff;fill-opacity:1;stroke-width:0.132291"
+ id="path3542"
+ cx="195.87514"
+ cy="245.92468"
+ r="1.5875" />
+ <circle
+ style="fill:#ffffff;fill-opacity:1;stroke-width:0.132291"
+ id="path3544"
+ cx="171.50687"
+ cy="217.02829"
+ r="1.0583333" />
+ <circle
+ style="fill:#ffffff;fill-opacity:1;stroke-width:0.132291"
+ id="path3546"
+ cx="196.42812"
+ cy="219.08032"
+ r="2.1166666" />
+ <use
+ id="use9119"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-117.70647,90.433444)" />
+ <use
+ id="use9121"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-74.466367,39.830974)" />
+ <use
+ id="use9123"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-87.026677,57.668596)" />
+ <use
+ id="use9123-2"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,116.17339,57.668596)" />
+ <use
+ id="use9125"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-27.602197,41.067791)" />
+ <use
+ id="use9127"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,2.5243312,57.170401)" />
+ <use
+ id="use9129"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,12.167156,-3.2600651)" />
+ <use
+ id="use9131"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,89.028973,36.353197)" />
+ <use
+ id="use9133"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,95.86754,10.585474)" />
+ <use
+ id="use9135"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,27.276996,29.994654)" />
+ <use
+ id="use9137"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,61.996373,-80.498595)" />
+ <use
+ id="use9139"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-2.2781878,-62.090325)" />
+ <use
+ id="use9141"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,64.896114,-9.2519051)" />
+ <use
+ id="use9141-6"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-64.869047,-18.896665)" />
+ <use
+ id="use9141-6-2"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-40.718957,-107.77145)" />
+ <use
+ id="use9141-6-2-9"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-40.718967,95.428541)" />
+ <use
+ id="use9143"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-23.695727,-12.656745)" />
+ <use
+ id="use9145"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-102.76199,-58.706835)" />
+ <use
+ id="use9147"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-73.678867,-45.603105)" />
+ <use
+ id="use9149"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-113.96472,-90.033295)" />
+ <use
+ id="use9151"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-95.963797,-117.61499)" />
+ <use
+ id="use9153"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-54.019037,-96.873615)" />
+ <use
+ id="use9155"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-44.816717,-59.764305)" />
+ <use
+ id="use9157"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,64.030044,-162.1849)" />
+ <use
+ id="use9159"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,109.16826,-85.269965)" />
+ <use
+ id="use9161"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,159.2623,-75.335595)" />
+ <use
+ id="use9163"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,101.24301,-40.605745)" />
+ <use
+ id="use9165"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,165.31357,-101.14033)" />
+ <use
+ id="use10351"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,26.622351,-40.804639)" />
+ <use
+ id="use10353"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,12.252463,-0.22730887)" />
+ <use
+ id="use9129-0"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,31.615387,-103.19598)" />
+ <use
+ id="use9129-9"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,82.02536,74.996004)" />
+ <use
+ id="use10355"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-31.446262,-52.611369)" />
+ <use
+ id="use10357"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-40.750042,22.854617)" />
+ <use
+ id="use10359"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,72.769863,-73.105809)" />
+ <use
+ id="use10361"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-67.880292,57.91203)" />
+ <use
+ id="use10363"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,93.57234,-33.857509)" />
+ <use
+ id="use10365"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-1.0893901,-97.090089)" />
+ <use
+ id="use10367"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,45.021777,22.343368)" />
+ <use
+ id="use10369"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,95.44009,96.823387)" />
+ <use
+ id="use10369-1"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,95.44009,-106.37654)" />
+ <use
+ id="use10371"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,38.374784,60.568013)" />
+ <use
+ id="use10373"
+ inkscape:spray-origin="#path3546"
+ xlink:href="#path3546"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,20.710442,83.652262)" />
+ <use
+ id="use9129-6"
+ inkscape:spray-origin="#path3544"
+ xlink:href="#path3544"
+ x="0"
+ y="0"
+ width="100%"
+ height="100%"
+ transform="matrix(0.5,0,0,0.5,-20.962797,-86.013975)" />
+ </g>
+</svg>
M client/Cargo.toml => client/Cargo.toml +2 -1
@@ 50,7 50,8 @@ features = [
'HitRegionOptions',
'ImageData',
'TextMetrics',
- 'DomMatrix'
+ 'DomMatrix',
+ 'CssStyleDeclaration'
]
[features]
M client/src/rendering/renderer_playercentric.rs => client/src/rendering/renderer_playercentric.rs +4 -0
@@ 7,6 7,8 @@ use wasm_bindgen::{JsCast, JsValue};
use crate::CLIENT;
use crate::textures::TextureManager;
+pub const STARFIELD_RENDER_SCALE: f64 = 1.0;
+
#[derive(Debug)]
pub struct WebRenderer {
canvas_element_id: String
@@ 40,6 42,8 @@ impl Renderer for WebRenderer {
//let camera_translate_y = -client.y + (typed_canvas_element.height() / 2) as f64;
let viewer_size_y = typed_canvas_element.height() as f64;
+ typed_canvas_element.style().set_property("background-position", &format!("{}px {}px", -client.x / STARFIELD_RENDER_SCALE, -client.y / STARFIELD_RENDER_SCALE)).map_err(|e| e.as_string().unwrap())?;
+
context.set_transform(1f64, 0f64, 0f64, 1f64, 0f64, 0f64).map_err(|e: JsValue| e.as_string().unwrap())?;
context.clear_rect(0f64, 0f64, viewer_size_x, viewer_size_y);
M web/play.html => web/play.html +4 -2
@@ 20,7 20,7 @@
</div>
</div>
-<canvas style="background-color: purple;" id="canvas"></canvas>
+<canvas id="canvas"></canvas>
<script type="module">
// If you're getting build errors here | you need to run `just build_client_bundle` first, to compile client code
@@ 70,7 70,7 @@
let start;
- let textures = ["autoplr_cfg", "autoplr_error", "autoplr_on", "cargo_off", "cargo_on", "earth", "ecothruster_on", "hearty", "hub_off", "hub_on", "landingleg", "landingthruster_off", "landingthruster_on", "powerhub_off", "powerhub_on", "superthruster_off", "superthruster_on", "thruster_off", "thruster_on"];
+ let textures = ["autoplr_cfg", "autoplr_error", "autoplr_on", "cargo_off", "cargo_on", "earth", "ecothruster_on", "hearty", "hub_off", "hub_on", "landingleg", "landingthruster_off", "landingthruster_on", "powerhub_off", "powerhub_on", "superthruster_off", "superthruster_on", "thruster_off", "thruster_on", "starfield"];
for (let i = 0; i < textures.length; i++) {
let texture = textures[i];
@@ 93,6 93,8 @@
document.getElementById("textures").style = "";
}
+ document.getElementById("canvas").style.backgroundImage = "url(" + get_texture("starfield") + ")";
+
// Textures must be fully loaded (above) before rendering can start
// They are all put on the DOM, in a hidden element, so they arent visible to the user unless showTextures=1
// but they need to have been loaded for the canvas to render them
M web/static/css/play.css => web/static/css/play.css +6 -0
@@ 1,4 1,10 @@
.texturebox {
display: inline;
margin: 5px;
+}
+
+#canvas {
+ position: absolute;
+ top: 0;
+ left: 0;
}=
\ No newline at end of file