execute onWaking.js

It’s been awhile since I’ve posted anything, to be honest I got bored with the characters and stories I was writing and more interested in code!

I haven’t abandoned the characters or short stories I have in progress, I’ve just been lost in code land… but my ever-present daemons have been yearning to write some poetry lately.  Some weird little muse has been hounding at me to write poetry from the perspective of a computer.  So I didn’t do that.  Well, not yet anyway, but I did realize something about myself.

I can’t stop thinking in terms of code.

Hence, this blog post will now execute a javascript story.

I’ll be posting a series of these during the next couple of weeks.  This one is javascript inspired, Jabba the Scripter, ‘I’ve drank way to much java(script)’, I’m going off(java)script now!

If you’re unfamiliar with javascript, don’t panic, what is written here isn’t actual javascript, it’s more pseudocode, and can be read just as easily as one reads any collection of miniature, digital symbols arranged by a loon.  One at a time, and with a familiarity of javascript.

this first section looks best on desktop – for better viewing experience on mobile see the image at the bottom in landscape

var onWaking = function(this.body, this.dreams) {

      if(this.dreams!=null) {
            alert(‘I should write down ‘ + this.dreams + 
            ‘ before I forget it!’);

            this.body.move(this.body.arms, {“desiredObj”:”pen and paper”}, function(res) {
                      if(res.err) {
                              console.log(res.err);
                       };

                       console.log(res + ‘% successfully 
                       reached ‘ + res.heldObj);

                       if(res==100) {
                               console.log(‘Successfully reached ‘ 
                               + res.heldObj + ‘!  Now invoking the 
                               writeDownDreams function!’);
                        };
             });



            this.dreams.destroy();

                                    

 

 

 

            alert(‘dammit’);

    };
                               
};

Screen Shot 2017-09-02 at 3.43.00 PM.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s