Web build script and updates to web source.
Added Karl Zylinski web build script. Updated template for better width. Removed resizing function.
This commit is contained in:
@@ -10,13 +10,14 @@
|
||||
<meta name="viewport" content="width=device-width">
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
body {
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
background-color: black;
|
||||
}
|
||||
canvas.game_canvas {
|
||||
border: 0px none;
|
||||
canvas.game_canvas {
|
||||
max-width: 1550px;
|
||||
border: 0px none;
|
||||
background-color: black;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
|
||||
@@ -63,6 +63,4 @@ main_end :: proc "c" () {
|
||||
@export
|
||||
web_window_size_changed :: proc "c" (w: c.int, h: c.int) {
|
||||
context = web_context
|
||||
// TODO
|
||||
game.parent_window_size_changed(int(w), int(h))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user