From aac3a43890294f89211652a4da4f34c4a02c9f06 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sat, 16 Jul 2022 16:24:10 +0000 Subject: [PATCH] initial commit --- .gitignore | 1 + .gitmodules | 3 +++ .luarc.json | 4 ++++ LICENSE | 20 ++++++++++++++++++ game.lua | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ run | 2 ++ tic80-lsp-config | 1 + 7 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .luarc.json create mode 100644 LICENSE create mode 100644 game.lua create mode 100755 run create mode 160000 tic80-lsp-config diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a47f082 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.local/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..26daa50 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "tic80-lsp-config"] + path = tic80-lsp-config + url = https://github.com/RokasPuzonas/tic80-lsp-config diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..02851a7 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", + "Lua.workspace.ignoreSubmodules": false +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..db0f47b --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) +Copyright © 2022 Rokas Puzonas + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/game.lua b/game.lua new file mode 100644 index 0000000..b0a2429 --- /dev/null +++ b/game.lua @@ -0,0 +1,54 @@ +-- title: game title +-- author: game developer, email, etc. +-- desc: short description +-- site: website link +-- license: MIT License (change this to your license of choice) +-- version: 0.1 +-- script: lua + +t=0 +x=96 +y=24 + +function TIC() + + if btn(0) then y=y-1 end + if btn(1) then y=y+1 end + if btn(2) then x=x-1 end + if btn(3) then x=x+1 end + + cls(13) + spr(1+t%60//30*2,x,y,14,3,0,0,2,2) + print("HELLO WORLD!",84,84) + t=t+1 +end + +-- +-- 001:eccccccccc888888caaaaaaaca888888cacccccccacc0ccccacc0ccccacc0ccc +-- 002:ccccceee8888cceeaaaa0cee888a0ceeccca0ccc0cca0c0c0cca0c0c0cca0c0c +-- 003:eccccccccc888888caaaaaaaca888888cacccccccacccccccacc0ccccacc0ccc +-- 004:ccccceee8888cceeaaaa0cee888a0ceeccca0cccccca0c0c0cca0c0c0cca0c0c +-- 017:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec +-- 018:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee +-- 019:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec +-- 020:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee +-- + +-- +-- 000:00000000ffffffff00000000ffffffff +-- 001:0123456789abcdeffedcba9876543210 +-- 002:0123456789abcdef0123456789abcdef +-- + +-- +-- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000 +-- + +-- +-- 000:100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +-- + +-- +-- 000:1a1c2c5d275db13e53ef7d57ffcd75a7f07038b76425717929366f3b5dc941a6f673eff7f4f4f494b0c2566c86333c57 +-- + diff --git a/run b/run new file mode 100755 index 0000000..29a77ce --- /dev/null +++ b/run @@ -0,0 +1,2 @@ +#!/bin/sh +tic80 game.lua --fs . --skip diff --git a/tic80-lsp-config b/tic80-lsp-config new file mode 160000 index 0000000..b9bec30 --- /dev/null +++ b/tic80-lsp-config @@ -0,0 +1 @@ +Subproject commit b9bec3035fe96439ed6463db25a2ae58cd47b243