This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60959b4
commit 3dc86c2
Showing
9 changed files
with
2,025 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local term = require("terminal") | ||
term.execute("save") flip() | ||
term.execute("tileset") flip() | ||
|
||
clear(0) | ||
printCursor(0,0,0) | ||
while true do | ||
cam() | ||
pal() | ||
palt() | ||
printCursor(false,false,0) | ||
color(7) | ||
print("Press any key to run") | ||
for event, key in pullEvent do | ||
if event == "keypressed" then | ||
if key == "escape" then return end | ||
break | ||
end | ||
end | ||
term.execute("tiled") | ||
flip() | ||
term.execute("run") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
local mapcode = fs.load("D:/LD/map.lua")() | ||
local layer = mapcode.layers[1] | ||
local tdata = "LK12;TILEMAP;"..layer.width.."x"..layer.height..";" | ||
tdata = tdata..table.concat(layer.data,";")..";" | ||
|
||
local eapi = require("Editors") | ||
|
||
local teditor = eapi.leditors[eapi.editors.tile] | ||
teditor:import(tdata) | ||
fs.write("D:/LD/map.lk12",tdata) | ||
|
||
local term = require("terminal") | ||
term.execute("save") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
local term = require("terminal") | ||
term.execute("export","D:/LD/tileset.png","-opaque") | ||
flip() | ||
term.execute("save") |