rename project to impostor

This commit is contained in:
2026-01-12 21:19:45 +01:00
parent 4907c9cadf
commit b3158bdc37
10 changed files with 47 additions and 13 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
mranderson.lua
impostor.lua

View File

@@ -1,5 +1,5 @@
environment: &environment
GAME_NAME: mranderson
GAME_NAME: impostor
GAME_LANG: lua
steps:

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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
View File

@@ -0,0 +1,19 @@
MapBedroom = {
"10101010101010101010101010101010",
"10141410101010101010101010101010",
"10141410101010101010101010101010",
"10101010101010101010101010101010",
"10101010101010101010101010101010",
"10101010101010101010101010101010",
"10101010101010101010101010101010",
"10101010101010101010101010101010",
"10101010101010101010101010101010",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111516111213111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111",
"11111111111111111111111111111111"
}

View File

@@ -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>

View File

@@ -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

View File

@@ -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()