Wednesday, 9 April 2014

Untrusted

quote [ /*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
* Now, let's get what we came here for and then get you out of
* here. Easy peasy.
*
* I've given you as much access to their code as I could, but
* it's not perfect. The red background indicates lines that
* are off-limits from editing.
*
* The code currently places blocks in a rectangle surrounding
* you. All you need to do is make a gap. You don't even need
* to do anything extra. In fact, you should be doing less.
*/ ]

Interesting meta Javascript game
[SFW] [games] [+10 Good]
[by macst34@11:03amGMT]

Comments

Bleb said @ 9:42pm GMT on 9th Apr
+1 just for "Dr. Eval"
arrowhen said @ 5:38am GMT on 10th Apr
Woot, finally beat it! That was fun!
Bleb said @ 7:15am GMT on 10th Apr
How many levels are there? Just so I know how much hair-pulling I have to look forward to.
arrowhen said @ 5:18pm GMT on 10th Apr
20, I think it was? The menu button will show you -- and also let you go back and look at the code from previous levels, which is handy if you're a noob like me and need to keep referring to code examples for even the simplest tasks.
lilmookieesquire said @ 8:35am GMT on 10th Apr
Anyone have some lvl 7 color lock advice?
snagUber said @ 4:49pm GMT on 10th Apr
same here. I added

player.setColor('#ff0');

and used the phone call back to reload and now my player is yellow ?!? red is said to be color: "#f00", // red ffs !
arrowhen said @ 5:43pm GMT on 10th Apr
Make a phone callback function to cycle the player through the colors.
arrowhen said @ 11:30pm GMT on 10th Apr
Here's what I did:


player.setPhoneCallback(function () {

var col = player.getColor();

if (col == "#0f0") {
player.setColor("#f00")};

if (col == "#ff0") {
player.setColor("#0f0")};

if (col == "#f00") {
player.setColor("#ff0")};
});

arrowhen said @ 11:34pm GMT on 10th Apr
Apparently code tags don't work.
lilmookieesquire said @ 11:23pm GMT on 14th Apr
Ahhhh!!
Bleb said @ 6:15pm GMT on 10th Apr
This is where I am now. I'm trying to use if/else to cycle through the colours, but it stops cycling after the first change from green to red.
Kelyn said @ 3:31pm GMT on 10th Apr
Is it wrong that this makes me want to learn javascript?
mechanical contrivance said @ 4:47pm GMT on 10th Apr
No, that means it's working.
arrowhen said @ 5:41pm GMT on 10th Apr
It's making me want to dig out the FlashPunk roguelike I was fiddling around with about a year ago.
arrowhen said @ 4:50pm GMT on 9th Apr [Score:-1 Flamebait]
filtered comment under your threshold
arrowhen said @ 11:42pm GMT on 9th Apr
Turns out I had the right idea, my problem was just that I know absolutely fuck-all about javascript syntax.

13 is kicking my ass, though.

Post a comment
[note: if you are replying to a specific comment, then click the reply link on that comment instead]

You must be logged in to comment on posts.



Posts of Import
If you got logged out, log back in.
4 More Years!
SE v2 Closed BETA
First Post
Subscriptions and Things
AskSE: What do you look like?

Karma Rankings
ScoobySnacks
arrowhen
lilmookieesquire
HoZay
XregnaR