This website works better with JavaScript.
Home
Explore
Help
Sign In
chemicalcrux
/
macrovision
Watch
1
Star
0
Fork
0
Code
Issues
5
Pull Requests
0
Releases
10
Wiki
Activity
Browse Source
Make the ground move with the camera
master
Fen Dweller
5 years ago
parent
7c2466cffd
commit
94f44bf0bb
3 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
macrovision.css
+1
-1
macrovision.html
+2
-0
macrovision.js
+ 1
- 1
macrovision.css
View File
@@ -544,7 +544,7 @@ body.toggle-height-bars .height-bar,
display: none;
position: absolute;
width: 100%;
height: 10vh;
height: 10
0
vh;
left: 0%;
top: calc(100% - 51px);
background: black;
+ 1
- 1
macrovision.html
View File
@@ -294,7 +294,7 @@
</div>
<canvas id="display">
</canvas>
<div class="bottom-cover"></div>
<div
id="ground"
class="bottom-cover"></div>
</div>
</div>
+ 2
- 0
macrovision.js
View File
@@ -340,6 +340,8 @@ function updateSizes(dirtyOnly = false) {
zIndex -= 1;
});
document.querySelector("#ground").style.top = pos2pix({x: 0, y: 0}).y + "px";
}
Write
Preview
Loading…
Cancel
Save