Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Upload the source files of the game
Browse files Browse the repository at this point in the history
  • Loading branch information
Rami-Sabbagh committed Aug 2, 2017
1 parent 60959b4 commit 3dc86c2
Show file tree
Hide file tree
Showing 9 changed files with 2,025 additions and 0 deletions.
1,397 changes: 1,397 additions & 0 deletions Appdata/LD/game.lua

Large diffs are not rendered by default.

264 changes: 264 additions & 0 deletions Appdata/LD/ld.lk12

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Appdata/LD/map.lk12

Large diffs are not rendered by default.

185 changes: 185 additions & 0 deletions Appdata/LD/map.lua

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions Appdata/LD/map.tmx

Large diffs are not rendered by default.

Binary file added Appdata/LD/tileset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions Appdata/Programs/arun.lua
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
13 changes: 13 additions & 0 deletions Appdata/Programs/tiled.lua
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")
4 changes: 4 additions & 0 deletions Appdata/Programs/tileset.lua
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")

0 comments on commit 3dc86c2

Please sign in to comment.