Compare commits

..

No commits in common. "69c8077f0c5960de934519cf958e00a879314285" and "92ddd42c9c5abcb92e6506872269e044b420ae01" have entirely different histories.

5 changed files with 19 additions and 33 deletions

16
docs/guide_danish.md Normal file
View File

@ -0,0 +1,16 @@
# Guide til at lave et Space Invaders-spil
## Hent koden
![download the game-platform files](images/download_code_zip.png)
![show zip in folder](images/show_in_folder.png)
![extract all](images/extract_all.png)
![show more options](images/show_more_options.png)
![open with code](images/open_with_code.png)

View File

@ -1,28 +0,0 @@
# Guide til at sætte kode-miljøet op
## Download VS Code
https://code.visualstudio.com/
Hent *Live Server*-udvidelsen til VS Code, fra udvidelses-menuen.
## Hent koden
Gå til https://git.sfja.dk/sfja/game-in-js og download koden som ZIP-fil.
![download the game-platform files](images/download_code_zip.png)
Find ZIP-mappen på computeren og udpak ZIP-mappen's filer. Vælg for eksempel at lægge filerne på Desktop/Skrivebordet.
![extract all](images/extract_all.png)
Herefter åben den ny-udpakkede mappe i VS Code.
![open with code](images/open_with_code.png)
## Start Live Server
Tryk på "Go Live" i bunden til højre i VS Code og åben http://localhost:5500/ i en web-browser som Chrome eller Firefox.
## Tegn

View File

@ -1,2 +0,0 @@
# Guide til at lave et Space Invaders-spil

View File

@ -1,4 +1,4 @@
import * as lib from "./lib/lib.js"
import * as lib from "./lib.js"
const playerSprite = await lib.texture.loadImage("assets/player.png", 64, 64);
const bulletSprite = await lib.texture.loadImage("assets/bullet1.png", 24, 24);

View File

@ -1,6 +1,6 @@
export * as canvas from "./canvas.js"
export * as texture from "./texture.js"
export * as canvas from "./lib/canvas.js"
export * as texture from "./lib/texture.js"
export let frameDeltaT = 0;