Compare commits
No commits in common. "main" and "v0.2.2" have entirely different histories.
|
|
@ -22,18 +22,11 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --no-restore
|
run: dotnet build --no-restore
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: cd Mine2d && make
|
run: dotnet publish -r linux-x64 --self-contained
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
# Artifact name
|
# Artifact name
|
||||||
name: Linux build
|
name: Linux build
|
||||||
# A file, directory or wildcard pattern that describes what to upload
|
# A file, directory or wildcard pattern that describes what to upload
|
||||||
path: Mine2d/build/linux-64.zip
|
path: Mine2d/bin/Debug/net6.0/linux-x64/publish/Mine2d
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v3.1.0
|
|
||||||
with:
|
|
||||||
# Artifact name
|
|
||||||
name: Windows build
|
|
||||||
# A file, directory or wildcard pattern that describes what to upload
|
|
||||||
path: Mine2d/build/win-64.zip
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,10 @@ all: win-64 linux-64
|
||||||
|
|
||||||
win-64:
|
win-64:
|
||||||
dotnet publish --runtime win-x64 --output build/win-64
|
dotnet publish --runtime win-x64 --output build/win-64
|
||||||
cp credits.md build/win-64
|
|
||||||
zip -r build/win-64.zip build/win-64
|
zip -r build/win-64.zip build/win-64
|
||||||
|
|
||||||
linux-64:
|
linux-64:
|
||||||
dotnet publish --runtime linux-x64 --output build/linux-64
|
dotnet publish --runtime linux-x64 --output build/linux-64
|
||||||
cp credits.md build/linux-64
|
|
||||||
zip -r build/linux-64.zip build/linux-64
|
zip -r build/linux-64.zip build/linux-64
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
# Credits of used assets and Libraries
|
|
||||||
|
|
||||||
## Assets
|
|
||||||
|
|
||||||
* Character - [CutieCatTv](https://github.com/CutieCatTv)
|
|
||||||
* Nova Mono Font - Open Font License
|
|
||||||
* audio/block_break.wav - dxeyes - CC BY 4.0
|
|
||||||
* audio/block_hit.wav - MattRuthSound - CC BY 4.0
|
|
||||||
* audio/block_hit_alt.wav - MattRuthSound - CC BY 4.0
|
|
||||||
* audio/music-loop.wav - [Chris aka el3usis](https://www.youtube.com/@Eleusis/featured)
|
|
||||||
|
|
||||||
## Libraries
|
|
||||||
|
|
||||||
* SDL2# - zlib
|
|
||||||
* SDL2 - zlib
|
|
||||||
* Newtonsoft.Json - MIT
|
|
||||||
* WatsonTcp - MIT
|
|
||||||
|
|
@ -15,6 +15,6 @@ public class Camera
|
||||||
var scale = ctx.FrontendGameState.Settings.GameScale;
|
var scale = ctx.FrontendGameState.Settings.GameScale;
|
||||||
var windowWidth = ctx.FrontendGameState.WindowWidth;
|
var windowWidth = ctx.FrontendGameState.WindowWidth;
|
||||||
var windowHeight = ctx.FrontendGameState.WindowHeight;
|
var windowHeight = ctx.FrontendGameState.WindowHeight;
|
||||||
this.Position = target - (new Vector2(windowWidth, windowHeight) / 2 / scale);
|
this.Position = target - (new Vector2(windowWidth, windowHeight) / 2) / scale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Mine2d.game.core;
|
namespace Mine2d.game.core;
|
||||||
|
|
||||||
public static class Debugger
|
public static class Debugger
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue