This commit is contained in:
Igor Timofeev 2016-06-11 16:53:23 +03:00
parent 0caf4060fa
commit 77762d41fd
2 changed files with 53 additions and 49 deletions

View File

@ -540,53 +540,53 @@
},
},
},
{
name="MineOS/Applications/RayWalk",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/RayWalk.lua",
about="IgorTimofeev/OpenComputers/master/Applications/RayWalk/About/",
type="Application",
icon="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Icon.pic",
createShortcut="desktop",
version=1.41,
resources={
{
name="Worlds/ExampleWorld/Map.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/Map.cfg",
},
{
name="Worlds/ExampleWorld/Player.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/Player.cfg",
},
{
name="Worlds/ExampleWorld/World.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/World.cfg",
},
{
name="Worlds/ForeverDay/Map.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/Map.cfg",
},
{
name="Worlds/ForeverDay/Player.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/Player.cfg",
},
{
name="Worlds/ForeverDay/World.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/World.cfg",
},
{
name="Worlds/SundownBeams/Map.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/Map.cfg",
},
{
name="Worlds/SundownBeams/Player.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/Player.cfg",
},
{
name="Worlds/SundownBeams/World.cfg",
url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/World.cfg",
},
},
},
-- {
-- name="MineOS/Applications/RayWalk",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/RayWalk.lua",
-- about="IgorTimofeev/OpenComputers/master/Applications/RayWalk/About/",
-- type="Application",
-- icon="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Icon.pic",
-- createShortcut="desktop",
-- version=1.42,
-- resources={
-- {
-- name="Worlds/ExampleWorld/Map.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/Map.cfg",
-- },
-- {
-- name="Worlds/ExampleWorld/Player.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/Player.cfg",
-- },
-- {
-- name="Worlds/ExampleWorld/World.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ExampleWorld/World.cfg",
-- },
-- {
-- name="Worlds/ForeverDay/Map.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/Map.cfg",
-- },
-- {
-- name="Worlds/ForeverDay/Player.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/Player.cfg",
-- },
-- {
-- name="Worlds/ForeverDay/World.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/ForeverDay/World.cfg",
-- },
-- {
-- name="Worlds/SundownBeams/Map.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/Map.cfg",
-- },
-- {
-- name="Worlds/SundownBeams/Player.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/Player.cfg",
-- },
-- {
-- name="Worlds/SundownBeams/World.cfg",
-- url="IgorTimofeev/OpenComputers/master/Applications/RayWalk/Worlds/SundownBeams/World.cfg",
-- },
-- },
-- },
{
name="MineOS/Applications/GuessWord",
url="IgorTimofeev/OpenComputers/master/Applications/GuessWord/GuessWord.lua",

View File

@ -64,13 +64,17 @@ while (true) do
if e[5] == 1 then rayEngine.place(3) else rayEngine.destroy(3) end
elseif e[1] == "key_down" then
if ( e[4] == 30 ) then --a
rayEngine.rotate(-4)
rayEngine.move(0, -16)
elseif ( e[4] == 32 ) then --d
rayEngine.rotate(4)
rayEngine.move(0, 16)
elseif ( e[4] == 17 ) then --w
rayEngine.move(16, 0)
elseif ( e[4] == 31 ) then --s
rayEngine.move(-16, 0)
elseif ( e[4] == 16 ) then --q
rayEngine.rotate(-4)
elseif ( e[4] == 18 ) then --e
rayEngine.rotate(4)
elseif ( e[4] == 14 or e[4] == 28 ) then --backspace, enter
menu()
elseif ( e[4] == 50 ) then