Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
26100dedc2 | |||
a23c088fea | |||
0b6ae0fe38 | |||
cda0877fd0 | |||
0a6264bba6 | |||
8f2bca2422 | |||
0edd9e7a49 | |||
64194172c1 |
3 changed files with 57 additions and 9 deletions
16
README.md
16
README.md
|
@ -6,13 +6,25 @@ A small work in progress game about a set of ships being piloted by though capta
|
||||||
Eventually it will become an endless twin stick shooter with multiplayer capabilities.
|
Eventually it will become an endless twin stick shooter with multiplayer capabilities.
|
||||||
|
|
||||||
Current placeholder ships
|
Current placeholder ships
|
||||||
|
|
||||||
![Blackstar 5](./assets/ships/blackstar-5.png), piloted by Steve Layer
|
![Blackstar 5](./assets/ships/blackstar-5.png), piloted by Steve Layer
|
||||||
|
|
||||||
![Excalibur IV](./assets/ships/excalibur-iv.png), piloted by Robert Davis
|
![Excalibur IV](./assets/ships/excalibur-iv.png), piloted by Robert Davis
|
||||||
|
|
||||||
![The Decorator](./assets/ships/decorator.png), piloted by John Danger
|
![The Decorator](./assets/ships/decorator.png), piloted by John Danger
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
Install Love2D. Execute the love command from your path, or drag the folder onto your Love2D shortcut.
|
## Windows
|
||||||
Code can be verified against Lua 5.4, with luacheck +love.
|
Download the vision-win64.zip file from the latest release, unpack and execute vision.exe
|
||||||
|
|
||||||
|
## MacOS
|
||||||
|
Download the vision-macos.zip file from the latest release, unpack and execute vision.app, do whatever MacOS wants you to do nowadays to run an "untrusted" binary.
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
Install Love2D from the website, download vision.love from the latest release. Run the love file. Sadly automatically creating an AppImage file failed for me.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
Install Love2D. Execute the love command from your path, or drag the folder onto your Love2D shortcut. Code can be verified against Lua 5.4, with luacheck +love.
|
||||||
|
|
||||||
# License
|
# License
|
||||||
- The artwork/assets (and artwork/assets placeholders) are prohibited from usage outside of this game and repositories.
|
- The artwork/assets (and artwork/assets placeholders) are prohibited from usage outside of this game and repositories.
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Slightly based on love-exporter at https://github.com/dmoa/love-export/blob/master/main.sh
|
# Slightly based on love-exporter at https://github.com/dmoa/love-export/blob/master/main.sh
|
||||||
|
|
||||||
VISION_COMMIT=`git ls-remote https://git.biggetje.net/martijn/vision.git | grep "refs/heads/main" | cut -f 1 | head -c 8`
|
|
||||||
LOVE_VERSION=11.4
|
LOVE_VERSION=11.4
|
||||||
LOVE_WIN64=https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-win64.zip
|
LOVE_WIN64=https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-win64.zip
|
||||||
LOVE_MACOS=https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-macos.zip
|
LOVE_MACOS=https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-macos.zip
|
||||||
|
LOVE_LINUX=https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-x86_64.AppImage
|
||||||
|
APPIMAGETOOL=https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
echo "Building release"
|
echo "Building release"
|
||||||
|
@ -32,7 +33,17 @@ downloadlove() {
|
||||||
rm love-$LOVE_VERSION-macos.zip
|
rm love-$LOVE_VERSION-macos.zip
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# todo appimage
|
#mkdir linux
|
||||||
|
#cd linux
|
||||||
|
#curl -L -O $LOVE_LINUX
|
||||||
|
#curl -L -O $APPIMAGETOOL
|
||||||
|
|
||||||
|
#./appimagetool-x86_64.AppImage --appimage-extract
|
||||||
|
#mv squashfs-root appimage
|
||||||
|
#chmod +x appimage/AppRun
|
||||||
|
#./love-$LOVE_VERSION-x86_64.AppImage --appimage-extract
|
||||||
|
#chmod +x squashfs-root/AppRun
|
||||||
|
#cd ..
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
@ -40,26 +51,40 @@ downloadlove() {
|
||||||
makelove() {
|
makelove() {
|
||||||
cd build/game
|
cd build/game
|
||||||
echo "Generating love file"
|
echo "Generating love file"
|
||||||
zip -9 -r ../../release/vision-$VISION_COMMIT.love .
|
zip -9 -r ../../release/vision.love .
|
||||||
cd ../..
|
cd ../..
|
||||||
}
|
}
|
||||||
|
|
||||||
makewin64() {
|
makewin64() {
|
||||||
echo "Generating Win64 build"
|
echo "Generating Win64 build"
|
||||||
cat "build/win/love.exe" "release/vision-$VISION_COMMIT.love" > "build/win/vision.exe"
|
cat "build/win/love.exe" "release/vision.love" > "build/win/vision.exe"
|
||||||
rm "build/win/love.exe"
|
rm "build/win/love.exe"
|
||||||
cd build/win
|
cd build/win
|
||||||
zip -9 -r ../../release/vision-$VISION_COMMIT-win64.zip .
|
zip -9 -r ../../release/vision-win64.zip .
|
||||||
cd ../..
|
cd ../..
|
||||||
}
|
}
|
||||||
|
|
||||||
makemac() {
|
makemac() {
|
||||||
echo "Generating MacOS build"
|
echo "Generating MacOS build"
|
||||||
cp "release/vision-$VISION_COMMIT.love" "build/mac/love.app/Contents/Resources"
|
cp "release/vision.love" "build/mac/love.app/Contents/Resources"
|
||||||
mv "build/mac/love.app" "build/mac/vision.app"
|
mv "build/mac/love.app" "build/mac/vision.app"
|
||||||
cd build/mac
|
cd build/mac
|
||||||
cp -f "../../tools/macos-info.plist" "vision.app/Contents/Info.plist"
|
cp -f "../../tools/macos-info.plist" "vision.app/Contents/Info.plist"
|
||||||
zip -9 -r ../../release/vision-$VISION_COMMIT-macos.zip .
|
zip -9 -r ../../release/vision-macos.zip .
|
||||||
|
cd ../..
|
||||||
|
}
|
||||||
|
|
||||||
|
makelinux() {
|
||||||
|
cd "build/linux/"
|
||||||
|
cat "squashfs-root/bin/love" "../../release/vision.love" > "squashfs-root/bin/vision"
|
||||||
|
chmod +x "squashfs-root/bin/vision"
|
||||||
|
cp -f "../../tools/vision.desktop" "squashfs-root/vision.desktop"
|
||||||
|
rm "squashfs-root/love.desktop"
|
||||||
|
cd "squashfs-root"
|
||||||
|
tar zcvf ../../../release/vision-linux-appdir.tar.gz *
|
||||||
|
cd ..
|
||||||
|
./appimage/AppRun squashfs-root ../../release/vision-linux.AppImage
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,3 +98,4 @@ downloadlove
|
||||||
makelove
|
makelove
|
||||||
makewin64
|
makewin64
|
||||||
makemac
|
makemac
|
||||||
|
#makelinux
|
10
tools/vision.desktop
Normal file
10
tools/vision.desktop
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Vision
|
||||||
|
Comment=The unquestionably awesome 2D game engine
|
||||||
|
MimeType=application/x-love-game;
|
||||||
|
Exec=vision %f
|
||||||
|
Type=Application
|
||||||
|
Categories=Game
|
||||||
|
Terminal=false
|
||||||
|
Icon=love
|
||||||
|
NoDisplay=true
|
Loading…
Reference in a new issue