From ec52460de9129efa05384809154666c165efcf36 Mon Sep 17 00:00:00 2001 From: nokoe Date: Fri, 12 Jul 2024 14:46:56 +0200 Subject: init --- .gitignore | 2 + .gitmodules | 3 + custom.py | 44 ++++++++++++++ hurrycurry | 2 + org.metamuffin.hurrycurry.client.desktop | 12 ++++ org.metamuffin.hurrycurry.client.metainfo.xml | 63 +++++++++++++++++++ org.metamuffin.hurrycurry.client.yaml | 88 +++++++++++++++++++++++++++ shared-modules | 1 + 8 files changed, 215 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 custom.py create mode 100644 hurrycurry create mode 100644 org.metamuffin.hurrycurry.client.desktop create mode 100644 org.metamuffin.hurrycurry.client.metainfo.xml create mode 100644 org.metamuffin.hurrycurry.client.yaml create mode 160000 shared-modules diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e741811 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.flatpak-builder +/builddir diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1e7a990 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "shared-modules"] + path = shared-modules + url = https://github.com/flathub/shared-modules.git diff --git a/custom.py b/custom.py new file mode 100644 index 0000000..1b10dcb --- /dev/null +++ b/custom.py @@ -0,0 +1,44 @@ +platform = "linuxbsd" +CCFLAGS = "-I/app/include" +prefix = "/app" +unix_global_settings_path = "/app" +progress = "no" +builtin_freetype = "no" +builtin_libogg = "no" +builtin_libpng = "no" +builtin_libtheora = "no" +builtin_libvorbis = "no" +builtin_libwebp = "no" +builtin_libvpx = "no" +builtin_zlib = "no" +builtin_freetype = "no" +builtin_graphite = "no" +builtin_harfbuzz = "no" +udev = "no" +production = "yes" + +# Generated using https://godot-build-options-generator.github.io + +production = "yes" +minizip = "no" +module_bmp_enabled = "no" +module_camera_enabled = "no" +module_csg_enabled = "no" +module_dds_enabled = "no" +module_enet_enabled = "no" +module_gltf_enabled = "no" +module_gridmap_enabled = "no" +module_jsonrpc_enabled = "no" +module_ktx_enabled = "no" +module_minimp3_enabled = "no" +module_mobile_vr_enabled = "no" +module_msdfgen_enabled = "no" +module_multiplayer_enabled = "no" +module_navigation_enabled = "no" +module_openxr_enabled = "no" +module_regex_enabled = "no" +module_upnp_enabled = "no" +module_vhacd_enabled = "no" +module_webrtc_enabled = "no" +module_webxr_enabled = "no" +module_zip_enabled = "no" \ No newline at end of file diff --git a/hurrycurry b/hurrycurry new file mode 100644 index 0000000..b2867cc --- /dev/null +++ b/hurrycurry @@ -0,0 +1,2 @@ +#!/bin/sh +godot --main-pack /app/share/hurrycurry/client.pck \ No newline at end of file diff --git a/org.metamuffin.hurrycurry.client.desktop b/org.metamuffin.hurrycurry.client.desktop new file mode 100644 index 0000000..ca74768 --- /dev/null +++ b/org.metamuffin.hurrycurry.client.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Hurry Curry! +Icon=org.metamuffin.hurrycurry.client +GenericName[de]=Ein Spiel rund ums Kochen +GenericName=A game about cooking +Exec=hurrycurry +Terminal=false +StartupNotify=false +Type=Application +Categories=Game; +Keywords=game;cooking; +PrefersNonDefaultGPU=true diff --git a/org.metamuffin.hurrycurry.client.metainfo.xml b/org.metamuffin.hurrycurry.client.metainfo.xml new file mode 100644 index 0000000..bd28511 --- /dev/null +++ b/org.metamuffin.hurrycurry.client.metainfo.xml @@ -0,0 +1,63 @@ + + + org.metamuffin.hurrycurry.client + + Hurry Curry! + A fast-paced multiplayer game about cooking + + + The Hurry Curry! contributors + + + CC-BY-SA-4.0 + AGPL-3.0-only + + + pointing + keyboard + touch + gamepad + + + +

+ Hurry Curry! is a multiplayer game about cooking. Your goal is to run a + restaurant and gain points by serving meals you've cooked.

+

+ Keyboard Controls: Move character with WASD. Move camera with arrow keys. + Interact with Space or J. Boost with Left Shift or K. Open/close menus with Escape. + Press Enter to open chat. Reset view with R.

+

+ Controller Controls: Move character with Left Stick. Move camera with Right + Stick. Interact with A, Boost with B, Open/close menus with Menu button. Use keyboard + for chat. Reset view with Y.

+

+ Game developed by nokoe, metamuffin, tpart. Special thanks to RustyStriker for + playtesting and technical assistance. + Thanks to Sofviic for most of the maps. +

+
+ + org.metamuffin.hurrycurry.client.desktop + + https://hurrycurry.metamuffin.org/ + https://codeberg.org/hurrycurry/hurrycurry/issues + + https://codeberg.org/hurrycurry/hurrycurry + https://codeberg.org/hurrycurry/hurrycurry + + Game + + + + + + Post-Jam Release + https://codeberg.org/hurrycurry/hurrycurry/releases/tag/v1.1.0 + + + Purism Game jam release + https://codeberg.org/hurrycurry/hurrycurry/releases/tag/v1.0.0 + + +
\ No newline at end of file diff --git a/org.metamuffin.hurrycurry.client.yaml b/org.metamuffin.hurrycurry.client.yaml new file mode 100644 index 0000000..9eba529 --- /dev/null +++ b/org.metamuffin.hurrycurry.client.yaml @@ -0,0 +1,88 @@ +app-id: org.metamuffin.hurrycurry.client +runtime: org.freedesktop.Platform +runtime-version: "23.08" +sdk: org.freedesktop.Sdk +command: hurrycurry +finish-args: + - --share=ipc + - --socket=x11 + - --socket=pulseaudio + - --device=dri + - --share=network + +build-options: + arch: + x86_64: + env: + # Only enable link-time optimization when targeting x86_64 + # (causes issues on other architectures) + SCONS_FLAGS_EXTRA: use_lto=yes + + env: + BUILD_NAME: hurrycurry + +modules: + - shared-modules/glu/glu-9.json + + - name: scons + buildsystem: simple + cleanup: ["*"] + + sources: + - type: archive + sha256: 6e928fc97984e719814270f6863f2183b3b72180b0162a5ed09db68c9994100c + url: https://downloads.sourceforge.net/project/scons/scons/4.8.0/SCons-4.8.0.tar.gz + + build-commands: + - python3 -m pip install --no-index --no-build-isolation --prefix=/app . + + - name: godot + buildsystem: simple + + sources: + - type: archive + sha256: da14e36448f1efd2955fe85d7ededc9e6ac8c893f76723b4852e7587306c761d + url: https://downloads.tuxfamily.org/godotengine/4.2.2/godot-4.2.2-stable.tar.xz + + - type: file + path: custom.py + + build-commands: + - python3 /app/bin/scons $SCONS_FLAGS_EXTRA profile=custom.py target=editor -j "$FLATPAK_BUILDER_N_JOBS" + - python3 /app/bin/scons $SCONS_FLAGS_EXTRA profile=custom.py target=template_release -j "$FLATPAK_BUILDER_N_JOBS" + - install -Dm755 bin/godot.linuxbsd.template_release.* /app/bin/godot + - install -Dm755 bin/godot.linuxbsd.editor.* /app/bin/godot-editor + + - name: hurrycurry + buildsystem: simple + sources: + - type: archive + sha256: 5431d188965b357e7ab03892660a5feba508d22b759f57f405d87544ccbd645b + url: https://codeberg.org/hurrycurry/hurrycurry/archive/v1.1.0.tar.gz + + - type: file + sha256: cddc72a740395eaa760c2eb8e757a3f14ec377a286f257df542bd62614c6583a + url: https://s.metamuffin.org/static/hurrycurry/book.webp.tar.zst + + - type: file + path: hurrycurry + + - type: file + path: org.metamuffin.hurrycurry.client.desktop + + - type: file + path: org.metamuffin.hurrycurry.client.metainfo.xml + + build-commands: + - tar -xf book.webp.tar.zst -C client/menu/book + - install -dD /app/share/hurrycurry + - godot-editor --headless --export-pack wasm32-unknown-unknown /app/share/hurrycurry/client.pck client/project.godot + - rm /app/bin/godot-editor + - install -Dm755 hurrycurry /app/bin/hurrycurry + - install -Dm644 org.metamuffin.hurrycurry.client.desktop /app/share/applications/org.metamuffin.hurrycurry.client.desktop + - install -Dm644 org.metamuffin.hurrycurry.client.metainfo.xml /app/share/metainfo/org.metamuffin.hurrycurry.client.metainfo.xml + - > + for size in {32,64,128,256,512}; do + ffmpeg -i client/icon.png -vf scale=${size}:${size} "$size.png" + install -Dm644 "$size.png" "/app/share/icons/hicolor/${size}x${size}/apps/org.metamuffin.hurrycurry.client.png" + done diff --git a/shared-modules b/shared-modules new file mode 160000 index 0000000..93694ef --- /dev/null +++ b/shared-modules @@ -0,0 +1 @@ +Subproject commit 93694efc475bc1c0b9be39a0743e33b7426c9f12 -- cgit v1.2.3-70-g09d2