fixed assets location

This commit is contained in:
klangner 2020-10-17 22:30:28 +02:00
parent 633ec7a535
commit 6d25e17e44
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<link rel="icon" type="image/png" href="/assets/favicon.ico" />
<link rel="icon" type="image/png" href="assets/favicon.ico" />
<title>Mapgen demo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">

View File

@ -18,7 +18,7 @@ canvas.height = CELL_SIZE * height;
canvas.width = CELL_SIZE * width;
// Load tiles bitmap
let tiles_image = new Image();
tiles_image.src = '/assets/tiles.png';
tiles_image.src = 'assets/tiles.png';
const ctx = canvas.getContext('2d');

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<link rel="icon" type="image/png" href="/assets/favicon.ico" />
<link rel="icon" type="image/png" href="assets/favicon.ico" />
<title>Mapgen demo</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">