rename project to impostor
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
||||
mranderson.lua
|
||||
impostor.lua
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
environment: &environment
|
||||
GAME_NAME: mranderson
|
||||
GAME_NAME: impostor
|
||||
GAME_LANG: lua
|
||||
|
||||
steps:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# TIC-80 Lua Code Regularities
|
||||
|
||||
Based on the analysis of `mranderson.lua`, the following regularities and conventions should be followed for future modifications and development within this project:
|
||||
Based on the analysis of `impostor.lua`, the following regularities and conventions should be followed for future modifications and development within this project:
|
||||
|
||||
## General Structure & Lifecycle
|
||||
|
||||
|
||||
8
Makefile
8
Makefile
@@ -1,10 +1,10 @@
|
||||
# -----------------------------------------
|
||||
# Makefile – TIC-80 project builder
|
||||
# Usage:
|
||||
# make PROJECT=mranderson
|
||||
# make build PROJECT=mranderson
|
||||
# make watch PROJECT=mranderson
|
||||
# make export PROJECT=mranderson
|
||||
# make PROJECT=impostor
|
||||
# make build PROJECT=impostor
|
||||
# make watch PROJECT=impostor
|
||||
# make export PROJECT=impostor
|
||||
# -----------------------------------------
|
||||
|
||||
ifndef PROJECT
|
||||
|
||||
@@ -8,7 +8,7 @@ This game is designed for the TIC-80 fantasy computer. To play, follow these ste
|
||||
2. **Clone this repository** Clone this repository to tic80's cartridge folder (MacOS: ~Library/Application Support/com.nesbox.tic/TIC-80)
|
||||
2. **Launch TIC-80:** Start the TIC-80 application.
|
||||
3. **Load the Game:**
|
||||
* Navigate to the directory where `game.lua` is located using the TIC-80 command line (`cd mranderson`).
|
||||
* Navigate to the directory where `game.lua` is located using the TIC-80 command line (`cd impostor`).
|
||||
* Type `load game.lua` and press Enter.
|
||||
* Once loaded, type `run` and press Enter to start the game.
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ entity/entity.item.lua
|
||||
entity/entity.player.lua
|
||||
system/system.input.lua
|
||||
system/system.ui.lua
|
||||
map/map.bedroom.lua
|
||||
window/window.splash.lua
|
||||
window/window.intro.lua
|
||||
window/window.menu.lua
|
||||
19
inc/map/map.bedroom.lua
Normal file
19
inc/map/map.bedroom.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
MapBedroom = {
|
||||
"10101010101010101010101010101010",
|
||||
"10141410101010101010101010101010",
|
||||
"10141410101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"10101010101010101010101010101010",
|
||||
"11111111111111111111111111111111",
|
||||
"11111111111111111111111111111111",
|
||||
"11111111111111111111111111111111",
|
||||
"11111516111213111111111111111111",
|
||||
"11111111111111111111111111111111",
|
||||
"11111111111111111111111111111111",
|
||||
"11111111111111111111111111111111",
|
||||
"11111111111111111111111111111111"
|
||||
}
|
||||
@@ -8,6 +8,13 @@
|
||||
-- 006:9999999999999999999999999999999999999999999999999999999999999999
|
||||
-- 007:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-- 008:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||
-- 016:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
|
||||
-- 017:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-- 018:cc222222cc222222cc222222cc222222222222222222222222222222eeeeeeee
|
||||
-- 019:222222cc222222cc222222cc222222cc222222222222222222222222eeeeeeee
|
||||
-- 020:daaaabdddaaaabdddaaaabdddaaaabdddaaaabdddaaaabdddddddddddddddddd
|
||||
-- 021:f888888ff888888ff888888ff888888f8888888f8888888ffeeeeffeeeeffee
|
||||
-- 022:e000000ee000000ee000000ee000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-- </TILES>
|
||||
|
||||
-- <WAVES>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- title: Mr Anderson's Adventure
|
||||
-- author: Zsolt Tasnadi
|
||||
-- title: Definitely not an Impostor
|
||||
-- author: Teletype Games
|
||||
-- desc: Life of a programmer in the Vector
|
||||
-- site: https://github.com/rastasi/mranderson
|
||||
-- site: https://git.teletype.hu/games/impostor
|
||||
-- license: MIT License
|
||||
-- version: 0.15
|
||||
-- script: lua
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
function SplashWindow.draw()
|
||||
Print.text("Mr. Anderson's", 78, 60, Config.colors.green)
|
||||
Print.text("Addventure", 90, 70, Config.colors.green)
|
||||
for y, row in ipairs(MapBedroom) do
|
||||
for x = 1, #row, 2 do
|
||||
local tile_id_hex = string.sub(row, x, x + 1)
|
||||
local tile_id = tonumber(tile_id_hex, 16)
|
||||
local screen_x = (x - 1) / 2 * 8
|
||||
local screen_y = (y - 1) * 8
|
||||
spr(tile_id, screen_x, screen_y, -1, 1, 0, 0, 1, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function SplashWindow.update()
|
||||
|
||||
Reference in New Issue
Block a user