Commit d0968963 authored by Raphaël Bastide's avatar Raphaël Bastide

Fixes typo, platform behaviours, adds favicon

parent 318dfbe2
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="200"
height="200"
viewBox="0 0 52.916668 52.916668"
version="1.1"
id="svg8"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="favicon.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4"
inkscape:cx="21.068821"
inkscape:cy="67.920754"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1080"
inkscape:window-height="1892"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1"
units="px"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-object-midpoints="true"
inkscape:snap-page="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:snap-global="false" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(46.310902,285.37685)">
<g
id="g839"
transform="matrix(0.99238553,0,0,0.9923411,-0.15116588,-1.9830296)"
style="stroke-width:1.00769544"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998">
<circle
inkscape:export-ydpi="57.439999"
inkscape:export-xdpi="57.439999"
r="25.796873"
cy="-258.91852"
cx="-19.85257"
style="opacity:1;vector-effect:none;fill:#ec82be;fill-opacity:1;stroke:#000000;stroke-width:1.3330971;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
id="path817" />
</g>
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -23.821319,-276.49441 c -8.691206,-0.16604 -14.174107,8.91828 -14.174107,16.81994"
id="path73"
inkscape:connector-curvature="0"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -28.546021,-244.74441 c 4.528188,5.95666 15.867539,5.85171 19.5077337,0.37387"
id="path75"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -5.8674498,-250.22506 c 4.3845195,-7.10364 7.2251894,-17.62717 -2.834822,-22.48958"
id="path77"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -22.876379,-262.13131 c -3.185146,0.10429 -6.908,6.83592 -4.91369,9.82738 0.929543,1.39432 3.321585,0.90101 4.346726,2.26786"
id="path79"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -11.537094,-264.21018 c -2.581545,-3.38225 -6.902014,-8.24164 -11.339284,-4.91369"
id="path81"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -37.7539,-255.72027 c 0.610557,2.81962 2.812531,4.7459 3.987307,7.02025"
id="path83"
inkscape:connector-curvature="0"
inkscape:transform-center-x="-3.6463205"
inkscape:transform-center-y="3.4362163"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -17.017747,-249.46911 c 5.5631,-1.53936 6.236607,-5.31816 6.236607,-10.39435"
id="path85"
inkscape:connector-curvature="0"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
<path
style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#333333;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.98431373;paint-order:fill markers stroke"
d="m -20.041558,-278.38429 c 2.490497,0.13379 5.470427,1.37227 6.99256,3.40178"
id="path87"
inkscape:connector-curvature="0"
inkscape:export-xdpi="7.7399998"
inkscape:export-ydpi="7.7399998" />
</g>
</svg>
......@@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
<link rel="shortcut icon" href="img/favicon.png">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="fonts/stylesheet.css">
......@@ -20,7 +21,7 @@
<summary>Help</summary>
<p>To make a track for the ball, add some characters after a “#” in this url, just like that: <a href="#dff">#dff</a>.</p><p>Available characters are listed in the inventory.</p>
<p>Some characters need to be unlocked by making the ball touch bonuses.</p>
<p class="credits">Burl is an experiment by <a href="https://raphaelbastide.com/">Raphaël Bastide</a>.<br><a href="https://gitlab.com/raphaelbastide/burl">Sources on Gitlab</a> <br>→ Dedicated <a href="reddit.com/rl/burl">subReddit</a><br><a href="https://niu.moe/@burl">Burl on Mastodon</a></p>
<p class="credits">Burl is an experiment by <a href="https://raphaelbastide.com/">Raphaël Bastide</a>.<br><a href="https://gitlab.com/raphaelbastide/burl">Sources on Gitlab</a> <br>→ Dedicated <a href="http://reddit.com/r/burl">subReddit</a><br><a href="https://niu.moe/@burl">Burl on Mastodon</a></p>
</details>
</aside>
<script type="text/javascript" src="lib/decomp.js"></script>
......
......@@ -95,14 +95,12 @@
"name": "buildUp",
"role": "buildPlace",
"char": "1",
"role": "platform",
"verticalShift": -500
},
{
"name": "buildDown",
"role": "buildPlace",
"char": "0",
"role": "platform",
"verticalShift": 500
},
{
......
......@@ -101,7 +101,8 @@ function launch(units, isRefresh){
// Building terrain from the character array
function buildUnit(char, nextPos){
var unit = findObjectsByKey(data.units, 'char', char)[0];
if (unit.role == "buildPlace") {
if (unit.role === "buildPlace") {
console.log('t');
nextPos.x += 0
nextPos.y += unit.verticalShift
}else{
......@@ -167,7 +168,7 @@ function launch(units, isRefresh){
}
}
World.remove(world, bonus)
var message = toUnLock.name+' ['+toUnLock.char+'] unlocked!'
var message = '['+toUnLock.char+'] '+toUnLock.name+' unlocked!'
updateInventory(toUnLock.char)
promptInfo(message)
}
......@@ -181,7 +182,7 @@ function launch(units, isRefresh){
// Render after each Tick
Events.on( engine, 'afterTick', (e)=> {
if (bulletTime) {
engine.timing.timeScale
engine.timing.timeScale = .5
zoom += (zoomTarget - zoom) * 0.05;
if (counterZoom >= 60 * 3.5) {
zoomTarget = 500
......@@ -190,10 +191,8 @@ function launch(units, isRefresh){
zoomTarget = 200
timeScaleTarget = 0.05
}
if (counterZoom >= 60 * 3.6) {
ball.render.sprite.texture = 'img/burl-ball.svg'
}
if (counterTime >= 60 * 4.5) {
ball.render.sprite.texture = 'img/burl-ball.svg'
engine.timing.timeScale = 1
timeScaleTarget = 1
zoomTarget = 500
......@@ -232,8 +231,8 @@ function launch(units, isRefresh){
b1.render.fillStyle = '#00FF00';
Body.setVelocity(ball, { x: 40, y: 0 });
b1.inactiveBuffer = true
}else if(b1.name === 'bulletTime') {
ball.render.sprite.texture = 'img/ball-bullettime.svg'
}else if(b2.name === 'bulletTime') {
ball.render.sprite.texture = 'img/burl-bullettime.svg'
bulletTime = true
}else if(b1.role === 'bonus') {
bonusTime = true
......@@ -243,13 +242,14 @@ function launch(units, isRefresh){
}else if(b2.name === 'jump') {
Body.setVelocity(ball, { x: ball.speed, y: -30 });
}else if(b2.name === 'invertedGravity') {
console.log('i');
if (engine.world.gravity.y == -1) {
engine.world.gravity.y = 1;
}else {
engine.world.gravity.y = -1;
}
}else if(b2.name === 'teleport') {
var currentCollided = pair.bodyB.id; // avoid repeated collision
var currentCollided = b2.id; // avoid repeated collision
if ( lastCollided != currentCollided) {
if (isTeleported) {
Body.setPosition(ball,{x:checkPoint.x, y:checkPoint.y})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment