This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lewisk3's profile picture

Portalsim A Portal Simulator

Started by Lewisk3, 07 November 2013 - 02:29 AM
Lewisk3 #1
Posted 07 November 2013 - 03:29 AM
Portal Simulator By Redxone
Controls: w,a,s,d To Move
left shift = blue portal
right shift = orange portal

New-version:http://pastebin.com/b0ww2Sgb
Old-version: http://goo.gl/BXdTdZ

note: this is not an actual game it's just a
example of how portals would be possible
in computercraft if u want an actual game
check out: http://www.computerc...utercraft-game/
and: http://www.computercraft.info/forums2/index.php?/topic/15398-beams-a-computercraft-game/

Screenshots
Spoiler
Edited on 07 November 2013 - 06:59 PM
svdragster #2
Posted 07 November 2013 - 01:34 PM
Pretty cool idea.
You can improve your code alot by indenting the lines!

Also why did you use goo.gl for an already very very short url? :P/>
M4sh3dP0t4t03 #3
Posted 07 November 2013 - 03:14 PM
I havent't tested this yet, but I would like to say two things:
1. Please make a pastebin link
2. Please add screenshots
Lewisk3 #4
Posted 07 November 2013 - 04:27 PM
I havent't tested this yet, but I would like to say two things:
1. Please make a pastebin link
2. Please add screenshots
the goo.gl link links to pastebin
Screenshots Added!


Pretty cool idea.
You can improve your code alot by indenting the lines!

Also why did you use goo.gl for an already very very short url? :P/>
so i could know how many people download my program :)/>
Edited on 07 November 2013 - 03:31 PM
Yevano #5
Posted 07 November 2013 - 04:37 PM
This is unfinished, right? There are no physics and no levels. Just portals. There isn't even a way to exit the program. You're using os.pullEventRaw to get your events for some unknown reason so ctrl-t doesn't work either.
Edited on 07 November 2013 - 03:37 PM
Symmetryc #6
Posted 07 November 2013 - 05:20 PM
I havent't tested this yet, but I would like to say two things:
1. Please make a pastebin link
2. Please add screenshots
the goo.gl link links to pastebin
Screenshots Added!


Pretty cool idea.
You can improve your code alot by indenting the lines!

Also why did you use goo.gl for an already very very short url? :P/>
so i could know how many people download my program :)/>
Pastebin tells you that already (Number of hits)
Lewisk3 #7
Posted 07 November 2013 - 07:54 PM
This is unfinished, right? There are no physics and no levels. Just portals. There isn't even a way to exit the program. You're using os.pullEventRaw to get your events for some unknown reason so ctrl-t doesn't work either.
im not even sure if physics are possible in computercraft
Yevano #8
Posted 07 November 2013 - 09:05 PM
im not even sure if physics are possible in computercraft

Simple 2D bounding box collision physics are pretty simple as far as physics go. It's quite possible and has been done before in other CC games. Just give each moving entity a velocity and position value and have the physics engine calculate where each object should be in the next physics tick.