mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-04 17:37:23 +00:00
Initial commit
This commit is contained in:
commit
dfc2894240
3 changed files with 84 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.local/
|
||||
build/
|
||||
28
Makefile
Normal file
28
Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
game_name := MorsePit
|
||||
|
||||
game_src := ./game.js
|
||||
build_dir := ./build
|
||||
|
||||
tic_cmd := tic80 --skip --fs './'
|
||||
|
||||
run:
|
||||
${tic_cmd} ${game_src}
|
||||
|
||||
cleanup:
|
||||
rm -rf ${build_dir}
|
||||
mkdir ${build_dir}
|
||||
|
||||
export_tic:
|
||||
${tic_cmd} --cli \
|
||||
--cmd 'load ${game_src} & save ${build_dir}/${game_name} & exit'
|
||||
|
||||
export_png:
|
||||
${tic_cmd} --cli \
|
||||
--cmd 'load ${game_src} & save ${build_dir}/${game_name}.png & exit'
|
||||
|
||||
release:
|
||||
@make cleanup
|
||||
@make export_tic
|
||||
@make export_png
|
||||
|
||||
# vim: set ts=4 sw=4 autoindent noexpandtab:
|
||||
54
game.js
Normal file
54
game.js
Normal file
|
|
@ -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: js
|
||||
|
||||
var t=0
|
||||
var x=96
|
||||
var y=24
|
||||
|
||||
function TIC()
|
||||
{
|
||||
if(btn(0))y--
|
||||
if(btn(1))y++
|
||||
if(btn(2))x--
|
||||
if(btn(3))x++
|
||||
|
||||
cls(13)
|
||||
spr(1+((t%60)/30|0)*2,x,y,14,3,0,0,2,2)
|
||||
print("HELLO WORLD!",84,84)
|
||||
t++
|
||||
}
|
||||
|
||||
// <TILES>
|
||||
// 001:eccccccccc888888caaaaaaaca888888cacccccccacc0ccccacc0ccccacc0ccc
|
||||
// 002:ccccceee8888cceeaaaa0cee888a0ceeccca0ccc0cca0c0c0cca0c0c0cca0c0c
|
||||
// 003:eccccccccc888888caaaaaaaca888888cacccccccacccccccacc0ccccacc0ccc
|
||||
// 004:ccccceee8888cceeaaaa0cee888a0ceeccca0cccccca0c0c0cca0c0c0cca0c0c
|
||||
// 017:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec
|
||||
// 018:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee
|
||||
// 019:cacccccccaaaaaaacaaacaaacaaaaccccaaaaaaac8888888cc000cccecccccec
|
||||
// 020:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee
|
||||
// </TILES>
|
||||
|
||||
// <WAVES>
|
||||
// 000:00000000ffffffff00000000ffffffff
|
||||
// 001:0123456789abcdeffedcba9876543210
|
||||
// 002:0123456789abcdef0123456789abcdef
|
||||
// </WAVES>
|
||||
|
||||
// <SFX>
|
||||
// 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
|
||||
// </SFX>
|
||||
|
||||
// <TRACKS>
|
||||
// 000:100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
// </TRACKS>
|
||||
|
||||
// <PALETTE>
|
||||
// 000:1a1c2c5d275db13e53ef7d57ffcd75a7f07038b76425717929366f3b5dc941a6f673eff7f4f4f494b0c2566c86333c57
|
||||
// </PALETTE>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue