Compare commits

..

8 Commits

381 changed files with 403974 additions and 3 deletions

46
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,46 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Windows",
"type": "shell",
"command": "mkdir -p release/windows && go build -o release/windows/regin_mountain_game.exe . && cp -r assets release/windows/ && mkdir -p release/windows/assets/maps && cp mapp-maker/*.tmj mapp-maker/*.tsj release/windows/assets/maps/ 2>/dev/null || true",
"options": {
"env": {
"GOOS": "windows",
"GOARCH": "amd64"
}
},
"group": "build",
"problemMatcher": [
"$go"
]
},
{
"label": "Build Linux",
"type": "shell",
"command": "mkdir -p release/linux && go build -o release/linux/regin_mountain_game . && cp -r assets release/linux/ && mkdir -p release/linux/assets/maps && cp mapp-maker/*.tmj mapp-maker/*.tsj release/linux/assets/maps/ 2>/dev/null || true",
"options": {
"env": {
"GOOS": "linux",
"GOARCH": "amd64"
}
},
"group": "build",
"problemMatcher": [
"$go"
]
},
{
"label": "Build All",
"dependsOn": [
"Build Windows",
"Build Linux"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@@ -25,3 +25,28 @@ https://sv.wikipedia.org/wiki/Regin
https://sv.wikipedia.org/wiki/Gram_(mytologi) https://sv.wikipedia.org/wiki/Gram_(mytologi)
https://sv.wikipedia.org/wiki/Reidmar https://sv.wikipedia.org/wiki/Reidmar
## Bygginstruktioner
### Systemkrav & Beroenden
Eftersom spelet använder Ebitengine behöver du ha följande installerat för att kunna kompilera.
**På Windows:**
Inget speciellt krävs utöver en modern version av Go. Ebitengine klarar sig bra för Windows-bygge även på Windows (ibland kan gcc/MinGW vara bra vid ljud-tjafs/cgo).
**På Linux:**
Du behöver installera Go samt följande C-bibliotek för X11 och ljud:
```bash
sudo apt-get install libc6-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev libasound2-dev pkg-config
```
### Bygg spelet (VS Code Tasks)
Spelet stödjer publisering via fördefinierade VS Code Tasks.
Gå till `Terminal -> Run Task...` i VS Code. Följande alternativ finns:
* **Build Windows**: Kompilerar projektet för Windows (.exe) i mappen `release/windows`.
* **Build Linux**: Kompilerar projektet för Linux i mappen `release/linux`.
* **Build All**: Kompilerar för båda ovanstående plattformar.
För att bygga manuellt:
* Linux: `GOOS=linux go build -o release/linux/regin_mountain_game .`
* Windows: `GOOS=windows go build -o release/windows/regin_mountain_game.exe .`

45
assets/entity_defs.json Normal file
View File

@@ -0,0 +1,45 @@
{
"entity_types": {
"ground_grass": {
"id": 1,
"tiled_id": 1,
"solid": true,
"sprites": {
"top": "Tile_31",
"side": "Tile_02"
}
},
"ground_dirt": {
"id": 2,
"tiled_id": 2,
"solid": true,
"sprites": {
"top": "Tile_12",
"side": "Tile_12"
}
},
"portal_grass": {
"id": 3,
"tiled_id": 3,
"solid": false,
"sprites": {
"top": "Tile_31",
"side": "Tile_31"
},
"target_map": "room2"
},
"player": {
"id": 100,
"solid": true,
"sprites": {
"top": "player_idle",
"side": "player_idle"
},
"animations": {
"idle": {"frames": [0], "speed": 1},
"walk": {"frames": [1, 2, 3, 4], "speed": 5},
"jump": {"frames": [5, 6], "speed": 4}
}
}
}
}

4
assets/images/.directory Normal file
View File

@@ -0,0 +1,4 @@
[Dolphin]
PreviewsShown=true
Timestamp=2018,1,22,14,58,44
Version=4

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
assets/images/Boxes/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Boxes/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Boxes/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Boxes/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/Boxes/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Boxes/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Grass/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/Grass/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

BIN
assets/images/Grass/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/Grass/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 B

BIN
assets/images/Grass/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

BIN
assets/images/Grass/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1012 B

BIN
assets/images/Grass/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

BIN
assets/images/Grass/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

BIN
assets/images/Grass/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

BIN
assets/images/Grass/9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 B

BIN
assets/images/Ladders/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/Ladders/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1011 B

BIN
assets/images/Ladders/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

BIN
assets/images/Ladders/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Ladders/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/Ladders/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1016 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

BIN
assets/images/Ridges/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
assets/images/Ridges/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/images/Ridges/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/images/Ridges/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/images/Ridges/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Some files were not shown because too many files have changed in this diff Show More