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
| :bottom] = SIZE-WALL_THICKNESS | |
| attr_reader :walls | |
| def initialize(x, y, left, right, top,bottom) | |
| @x,@y,@z = x,y,Z::GRID | |
| @walls = {} | |
| @walls[:le |
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
| ICKNESS | |
| attr_reader :walls | |
| def initialize(x, y, left, right |
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
| attr_reader :walls | |
| def initialize(x, y, left, right, top,bottom) | |
| @x,@y,@z = x,y,Z::GRID | |
| @walls = {} |
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
| require 'gosu' | |
| require './tile' | |
| require './z' | |
| module Visible | |
| NO, YES, ON_HIT, STATES = *0..3 | |
| end | |
| class Wall | |
| THICKNESS = 8 |
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
| "package_name_map": { | |
| "soda-theme": "Theme - Soda" | |
| } | |
| } |
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
| def ok | |
| a = [] | |
| end |
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
Show hidden characters
| t+m |
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
| framework 'Cocoa' | |
| class NSColor | |
| def toCGColor | |
| color_RGB = colorUsingColorSpaceName(NSCalibratedRGBColorSpace) | |
| ## approach #1 | |
| # components = Array.new(4){Pointer.new(:double)} | |
| # color_RGB.getRed(components[0], | |
| # green: components[1], | |
| # blue: components[2], |
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
| #!/usr/local/bin/macruby | |
| framework 'Cocoa' | |
| framework 'AVFoundation' | |
| # because we love blocks, we make NSTimer blocks :-) | |
| class NSTimer | |
| def self.scheduledTimerWithTimeInterval interval, repeats: repeat_flag, block: block | |
| self.scheduledTimerWithTimeInterval interval, | |
| target: self, | |
| selector: 'executeBlockFromTimer:', |
OlderNewer