The 3.5 hour adventure with java script


Since I had a serious attack of apathy over break I neglected to work on
the floss homework. As such I was left to do the majority of it Monday night.
Which somehow I pulled off. The code is located in
this repo: https://github.com/posiden/rit-floss-hw1
For this homework my plan of attack was to first analysise how the 2 examples
worked seperately and then figure out how to integrate them into a single demo.
To implement the full functionality of builings and tiles I made a class
which holds all tiles that can possibly be placed. This makes it easier to add
new tiles later on. Once I had the Tiles class in place I could begin working
on the draw method. Combining both examples draw method, was surprisingly
easy. All I had to do was copy the image drawing code, and make it work using
my generic Tiles class. So at this point the 2 examples have been combined
and are working. However I have yet to work on switching event handling
over to jquery. I attempted to start working on this, and quickly realized
that my brain was no longer functioning at full capacity due to
lack of sleep. I will finish up that last little bit tomorrow morning.