17 Commits

Author SHA1 Message Date
nick f68d473704 feat: title screen 2026-03-31 21:10:20 +13:00
nick 5557b7ce58 feat: slowly making the title text... 2025-12-08 23:08:54 +13:00
nick 8db0d3a5c8 Merge branch 'master' into feat/art 2025-12-08 21:50:25 +13:00
nick 3369e74b47 chore: upload artifact?
Build TIC-80 Cartridge / Build PNG Cartridge (push) Successful in 33s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 21:47:30 +13:00
nick 0948d01b87 chore: fix png save
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 3s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 21:45:30 +13:00
nick b41366a4c7 chore: upload artifact?
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 8s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 21:44:37 +13:00
nick 838eb8061c chore: fix png save
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 29s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 21:16:28 +13:00
nick 90fef18471 chore: include tic80 pro to make this work
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 31s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 21:08:56 +13:00
nick fab1acd0a4 chore: still working on CI
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 27s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 20:58:52 +13:00
nick 6737b804ff chore: getting steps working
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 7s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 20:54:58 +13:00
nick 2df8ef179b feat: correct path again 2025-12-08 20:51:44 +13:00
nick 7d97db914a chore: correct path
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 8s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 20:50:56 +13:00
nick 2cf1e46e9f chore: working on CI
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 7s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
2025-12-08 20:46:25 +13:00
nick 0354a158ae Merge pull request 'feat: added gitea actions' (#3) from feat/ci into master
Build TIC-80 Cartridge / Build PNG Cartridge (push) Failing after 20s
Build TIC-80 Cartridge / Build Releases (tic80, linux, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip) (push) Has been skipped
Build TIC-80 Cartridge / Build Releases (tic80.exe, windows, https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip) (push) Has been skipped
Reviewed-on: #3
2025-12-08 04:13:03 +00:00
nick c9593baf5d feat: added gitea actions 2025-12-08 16:44:35 +13:00
nick f1896d2e00 Merge pull request 'feat/stamina' (#2) from feat/stamina into master
Reviewed-on: #2
2025-12-08 03:26:41 +00:00
nick 101f33b80b Merge pull request 'feat/stamina' (#1) from feat/stamina into master
Reviewed-on: #1
2025-10-10 00:29:46 +00:00
3 changed files with 175 additions and 1 deletions
+106
View File
@@ -0,0 +1,106 @@
name: Build TIC-80 Cartridge
on:
push:
branches:
- main
- master
tags:
- 'v*'
jobs:
build-cartridge:
name: Build PNG Cartridge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install TIC-80
run: |
sudo dpkg -i ./tools/tic80-v1.1-linux-pro.deb || sudo apt-get install -f -y
- name: Install OpenGL Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgl1
- name: Export PNG cartridge
run: |
tic80 --fs=. --skip --cli --cmd="load lucksmith.lua & save lucksmith.png & exit"
- name: Upload PNG cartridge as artifact
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
with:
name: lucksmith-cartridge
path: lucksmith.png
- name: Commit PNG cartridge
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
git config user.name "Gitea Actions"
git config user.email "actions@gitea.local"
git add lucksmith.png
git diff --staged --quiet || git commit -m "Update PNG cartridge [skip ci]"
git push
build-releases:
name: Build Releases
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build-cartridge
strategy:
matrix:
include:
- platform: linux
url: https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-linux.zip
binary: tic80
- platform: windows
url: https://github.com/nesbox/TIC-80/releases/download/v1.1.2837/tic80-v1.1-windows.zip
binary: tic80.exe
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download TIC-80
run: |
wget -q ${{ matrix.url }} -O tic80.zip
unzip -q tic80.zip
- name: Download PNG cartridge
uses: actions/download-artifact@v4
with:
name: lucksmith-cartridge
- name: Prepare release package
run: |
mkdir -p release
cp ${{ matrix.binary }} release/
cp lucksmith.png release/
cp lucksmith.lua release/
cd release
if [ "${{ matrix.platform }}" = "windows" ]; then
zip -r ../lucksmith-${{ matrix.platform }}.zip .
else
tar czf ../lucksmith-${{ matrix.platform }}.tar.gz .
fi
- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./lucksmith-${{ matrix.platform }}.${{ matrix.platform == 'windows' && 'zip' || 'tar.gz' }}
asset_name: lucksmith-${{ matrix.platform }}-${{ github.ref_name }}.${{ matrix.platform == 'windows' && 'zip' || 'tar.gz' }}
asset_content_type: application/${{ matrix.platform == 'windows' && 'zip' || 'gzip' }}
+69 -1
View File
@@ -743,7 +743,7 @@ enemy = get_enemy(level)
msg = ""
-- State
phase = "choose"
phase = "title"
phase_time = 0
roll_text = ""
damage_applied = false
@@ -1676,6 +1676,26 @@ function TIC()
end
end
if phase == "title" then
spr(320, 60, 20, 0,1,0,0,16,8)
print("smith", 98, 60, 10, false, 2, false)
print("Press X to Start", 84, 100, 14, false, 1, true)
if btnp(5) then
phase = "choose"
level = 1
player = {
hp = 10,
roll_mod = 0,
mult = 1,
energy = 3
}
enemy = get_enemy(level)
initialize_deck()
draw_hand()
end
return
end
-- draw player and enemy portraits
spr(32, 5, 70, 0,1,0,0,2,2) -- player
spr(34, 220, 70, 0,1,0,0,2,2) -- enemy
@@ -2272,6 +2292,54 @@ end
-- 057:ff666660f666f660666fff60666fff606666f660666666006666600000000000
-- 058:06666666066f666606fff6ff06fff6ff066f666f006666660006666600000000
-- 059:66666660f666f660ff6fff60ff6fff606666f660666666006666600000000000
-- 068:0000000000000000000000000000000000000000000000000000000000000022
-- 069:0000000000000000000000000000000000000000002220002222222022222222
-- 075:0000000000000000000000000000000000000000000220000222220022222220
-- 081:0000000000000000000000000000000000000000000002220000222200022222
-- 082:0000000000000000000000000000000002200000222200002220000000000000
-- 084:0000022200002222000222200002220000222000022220000222000022200000
-- 085:2200002200000002000000020000000200000002000000220000002200000222
-- 086:2000000020000000200000002000000020000000200000002000000000000000
-- 090:0000000200000022000002220000222000022200000220000022200002220000
-- 091:2200022020000220000022200000220000022200000222000022200002220000
-- 097:0022220002222000022220000222000002200000022000000222000002222000
-- 099:0000000000000002000000020000002200000022000002220000022200000220
-- 100:2220000022000000220000002000000020000000000000220000222200222222
-- 101:0000222200022220002222000222200022220000222000022200002200000022
-- 104:0000000000000000000000000000000000000000000000000022222002222222
-- 105:0000000000000000000000000000000200000002000000220002222200222222
-- 106:0220000022200002220000222000022220022220222222022222222222222222
-- 107:2220000022000000200000000000000000000000222000002222000000220000
-- 113:0022222000022222000002220000000000000000000000000000000000000000
-- 114:0000000022222222222222222222222200000000000000000000000000000000
-- 115:0000222022222222222222222222222000022200000222000022200022220000
-- 116:2222220022220000220000000000000000000000000000000000000000000000
-- 117:0000022200000222000022220002222000022200002220000222000002220000
-- 118:2000000000000022000002220000222200022220002222200222220022222200
-- 119:0000000200000022000002220000022200002220000222200022222002222200
-- 120:2222222222000022200000220000022000002220000002000000000000000000
-- 121:0000222200002200000022000002220200022002000220220022022002222200
-- 122:2022220002220000222000002200002220022222002222200222000002200000
-- 123:0022000002220000222000002200000020000000000000000000000000000000
-- 128:0000000000000002000022220002222200222200002220000222000002220000
-- 129:0000000022222222222222222220022200000000000000000000000000000000
-- 130:0000000000000002222000222222222200222222000022220002220200222200
-- 131:2220000022000000220000002000000000000000220000002222000002222220
-- 132:0000000000000002000000020000000200000002000000020000000000000000
-- 133:2220000222000022220002222200222022222200222200002200000000000000
-- 134:2202200020022000002220220022222200222220000220000000000000000000
-- 135:2222200022222000202220000022200000222000002222220002222200000000
-- 136:0000000000000000000000020000222200222220222220002200000000000000
-- 137:2222220022222000222220002222000022200000222000002200000022000000
-- 138:0220000002200000222000002220000022200000022000020022222200000000
-- 139:0000022000002200000220000222000022200000220000002000000000000000
-- 144:0022200000222200000222220000222200000002000000000000000000000000
-- 145:0000000000000022222222222222222022220000000000000000000000000000
-- 146:2222200022200000220000000000000000000000000000000000000000000000
-- 147:0002222200000222000000000000000000000000000000000000000000000000
-- 148:2000000022220000222222200022222200000222000000000000000000000000
-- 149:0000000000000000000000002200000022222000222222220002222200000000
-- 150:0000000000000000000000000000000000000000222000002200000000000000
-- </SPRITES>
-- <WAVES>
Binary file not shown.