Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Sep 30, 2024
0 parents commit 04cdadd
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Binary file added blobs/fx.ogg
Binary file not shown.
Binary file added blobs/sample.ogg
Binary file not shown.
Binary file added blobs/spritesheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions entities/megarick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"spritesheet": "blobs/spritesheet.png",
"animations": {
"idle": {
"frames": [
{
"x": 32,
"y": 0,
"width": 27,
"height": 63,
"duration": 100
}
]
},
"walk": {},
"jump": {},
"attack": {}
}
}
26 changes: 26 additions & 0 deletions scripts/main.lua
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 04cdadd

Please sign in to comment.