This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Menu | |
Menu = class() | |
function Menu:init() | |
end | |
function Menu:draw() | |
if self.main then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# PointSizeHelper | |
function pointsScaled(width) | |
if WIDTH == 1024 then | |
pointRatio = WIDTH / 10000 | |
else | |
pointRatio = WIDTH / 5500 | |
end | |
return width * pointRatio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This test passes: | |
it "should tell me how params are passed" do | |
# that new car smell | |
car = Car.new | |
car.colour = "blue" | |
# this car smells like hash | |
car_hash = {'colour' => 'blue'} | |
# both cars were created blue yeah? |
OlderNewer