Просмотр исходного кода

Make the ground move with the camera

master
Fen Dweller 5 лет назад
Родитель
Сommit
94f44bf0bb
3 измененных файлов: 4 добавлений и 2 удалений
  1. +1
    -1
      macrovision.css
  2. +1
    -1
      macrovision.html
  3. +2
    -0
      macrovision.js

+ 1
- 1
macrovision.css Просмотреть файл

@@ -544,7 +544,7 @@ body.toggle-height-bars .height-bar,
display: none; display: none;
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 10vh;
height: 100vh;
left: 0%; left: 0%;
top: calc(100% - 51px); top: calc(100% - 51px);
background: black; background: black;


+ 1
- 1
macrovision.html Просмотреть файл

@@ -294,7 +294,7 @@
</div> </div>
<canvas id="display"> <canvas id="display">
</canvas> </canvas>
<div class="bottom-cover"></div>
<div id="ground" class="bottom-cover"></div>
</div> </div>
</div> </div>




+ 2
- 0
macrovision.js Просмотреть файл

@@ -340,6 +340,8 @@ function updateSizes(dirtyOnly = false) {
zIndex -= 1; zIndex -= 1;
}); });


document.querySelector("#ground").style.top = pos2pix({x: 0, y: 0}).y + "px";



} }




Загрузка…
Отмена
Сохранить