diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..f9e25a4 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + release: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install 7zip + run: sudo apt-get install p7zip-full + + - name: Create bundle + run: 7z a -xr'!.*' -t7z -m0=lzma -mx=6 -mfb=64 -md=32m -ms=on bundle.7z . + + - name: Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.event.inputs.tagName }} + prerelease: ${{ github.events.inputs.prerelease }} + files: bundle.7z diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/blobs/fx.ogg b/blobs/fx.ogg new file mode 100644 index 0000000..2a9b95d Binary files /dev/null and b/blobs/fx.ogg differ diff --git a/blobs/sample.ogg b/blobs/sample.ogg new file mode 100644 index 0000000..1bcd2c5 Binary files /dev/null and b/blobs/sample.ogg differ diff --git a/blobs/spritesheet.png b/blobs/spritesheet.png new file mode 100644 index 0000000..40d4063 Binary files /dev/null and b/blobs/spritesheet.png differ diff --git a/entities/megarick.json b/entities/megarick.json new file mode 100644 index 0000000..ce4f069 --- /dev/null +++ b/entities/megarick.json @@ -0,0 +1,19 @@ +{ + "spritesheet": "blobs/spritesheet.png", + "animations": { + "idle": { + "frames": [ + { + "x": 32, + "y": 0, + "width": 27, + "height": 63, + "duration": 100 + } + ] + }, + "walk": {}, + "jump": {}, + "attack": {} + } +} diff --git a/scripts/main.lua b/scripts/main.lua new file mode 100644 index 0000000..784a6bb --- /dev/null +++ b/scripts/main.lua @@ -0,0 +1,26 @@ +local engine = EngineFactory.new() + :set_title("Mega Rick") + :set_width(854) + :set_height(480) + :set_fullscreen(false) + :create() + +engine:prefetch({ + "blobs/fx.ogg", +}) + +local sm = engine:soundmanager() + +sm:play("blobs/fx.ogg") +sleep(1000) +sm:play("blobs/sample.ogg") + +-- local mr = engine:spawn("megarick") + +-- mr:on_update(function(self) +-- print("bump") +-- end) + +-- local head = engine:spawn() + +engine:run()