135 posts
Posted 05 November 2013 - 12:26 AM
Laserbox 2
New Features
Spoiler
SheildsPlayer1 Shield: DPlayer2 Shield: LMax Sheilds: 3MovementPlayer1: W and SPlayer2: Up and DownShoot Laser:Player1: LeftShiftPlayer2:RightShiftGui :
Brand New look
Edited on 10 November 2013 - 12:45 AM
6 posts
Location
Europe
Posted 05 November 2013 - 10:01 AM
That's cool :D/>
621 posts
Location
U.S.A.
Posted 05 November 2013 - 11:40 AM
Pastebin?
135 posts
Posted 05 November 2013 - 03:47 PM
1852 posts
Location
Sweden
Posted 07 November 2013 - 03:42 PM
You should really make an installer when you have multiple files
What's in here? .-.
Oh, This is just an example how you can make an installer ;)/>
--# Example installer
local function pGet(hCode,file)
hResponse = http.get("http://pastebin.com/raw.php?i="..textutils.urlEncode(hCode))
if hResponse then
hFile = fs.open(file,"w")
local sCode = hResponse.readAll()
hResponse.close()
hFile.write(sCode)
hFile.close() --Always important to close file :3
else
error("Error getting the file "..file,0)
end
end
local files = {
[1] = {
name = "LaserBox2",
code = "y3FE6xcd",
},
[2] = {
name = "Laserbox_back",
code = "2mpqLzkb",
},
[3] = {
name = "Laserbox_sprite1",
code = "i4QknDa3",
},
[4] = {
name = "Laserbox_sprite2",
code = "bBiewE7C",
},
[5] = {
name = "Laserbox_Shield",
code = "SbLag1ec",
},
}
for i = 1,#files do
pGet(files[i].code, files[i].name)
end
135 posts
Posted 09 November 2013 - 02:35 PM
You should really make an installer when you have multiple files
What's in here? .-.
Oh, This is just an example how you can make an installer ;)/>
--# Example installer
local function pGet(hCode,file)
hResponse = http.get("http://pastebin.com/raw.php?i="..textutils.urlEncode(hCode))
if hResponse then
hFile = fs.open(file,"w")
local sCode = hResponse.readAll()
hResponse.close()
hFile.write(sCode)
hFile.close() --Always important to close file :3
else
error("Error getting the file "..file,0)
end
end
local files = {
[1] = {
name = "LaserBox2",
code = "y3FE6xcd",
},
[2] = {
name = "Laserbox_back",
code = "2mpqLzkb",
},
[3] = {
name = "Laserbox_sprite1",
code = "i4QknDa3",
},
[4] = {
name = "Laserbox_sprite2",
code = "bBiewE7C",
},
[5] = {
name = "Laserbox_Shield",
code = "SbLag1ec",
},
}
for i = 1,#files do
pGet(files[i].code, files[i].name)
end
Thanks :)/>
P.S im not too experienced with pastebin installers
1852 posts
Location
Sweden
Posted 09 November 2013 - 03:31 PM
You should really make an installer when you have multiple files
What's in here? .-.
Oh, This is just an example how you can make an installer ;)/>
--# Example installer
local function pGet(hCode,file)
hResponse = http.get("http://pastebin.com/raw.php?i="..textutils.urlEncode(hCode))
if hResponse then
hFile = fs.open(file,"w")
local sCode = hResponse.readAll()
hResponse.close()
hFile.write(sCode)
hFile.close() --Always important to close file :3
else
error("Error getting the file "..file,0)
end
end
local files = {
[1] = {
name = "LaserBox2",
code = "y3FE6xcd",
},
[2] = {
name = "Laserbox_back",
code = "2mpqLzkb",
},
[3] = {
name = "Laserbox_sprite1",
code = "i4QknDa3",
},
[4] = {
name = "Laserbox_sprite2",
code = "bBiewE7C",
},
[5] = {
name = "Laserbox_Shield",
code = "SbLag1ec",
},
}
for i = 1,#files do
pGet(files[i].code, files[i].name)
end
Thanks :)/>
P.S im not too experienced with pastebin installers
You should change the names in the installer to the corret ones.. It errors if you try to run the main file( I think it is trying to load an image with a different name from what the installer downloaded ) ;)/>
Also, In the main post > Shield*
Edited on 09 November 2013 - 02:33 PM