broadfield-dev commited on
Commit
18bd7bf
·
verified ·
1 Parent(s): 14a2846

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +10 -14
index.html CHANGED
@@ -21,22 +21,18 @@
21
  font-family: 'RetroArcade', monospace;
22
  }
23
  #tv-frame {
24
- position: relative;
25
- width: 1000px;
26
- height: 737.5px; /* Maintains aspect ratio: 1000 * (590/800) */
27
- background: url('/assets/tv.png') no-repeat center;
28
- background-size: contain;
29
  }
30
  #game-container {
31
- position: absolute;
32
- /* Screen area inside the TV frame - 298x224 canvas (256 + 42px borders) */
33
- /* Scaled up by 1.25x (1000/800) to match TV frame increase */
34
- /* 298 * 2.485 = 740.73px width */
35
- width: 741px;
36
- height: 556.25px;
37
- /* Move 6px left from center: (1000 - 741) / 2 = 129.5, then 129.5 - 6 = 123.5 */
38
- left: 118px;
39
- top: 73.75px;
40
  }
41
  #game-container canvas {
42
  image-rendering: -moz-crisp-edges;
 
21
  font-family: 'RetroArcade', monospace;
22
  }
23
  #tv-frame {
24
+ position: relative;
25
+ width: 100%;
26
+ height: 500px;
27
+ background: url(assets/tv.png) no-repeat center;
28
+ background-size: contain;
29
  }
30
  #game-container {
31
+ position: absolute;
32
+ width: 512px;
33
+ height: 390.25px;
34
+ left: 200px;
35
+ top: 46.75px;
 
 
 
 
36
  }
37
  #game-container canvas {
38
  image-rendering: -moz-crisp-edges;