ruby2d 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/ruby2d +15 -11
- data/ext/ruby2d/extconf.rb +2 -2
- data/ext/ruby2d/ruby2d-opal.rb +1 -1
- data/ext/ruby2d/ruby2d.c +92 -34
- data/lib/ruby2d.rb +2 -2
- data/lib/ruby2d/circle.rb +29 -0
- data/lib/ruby2d/color.rb +14 -13
- data/lib/ruby2d/dsl.rb +12 -9
- data/lib/ruby2d/exceptions.rb +1 -1
- data/lib/ruby2d/image.rb +5 -4
- data/lib/ruby2d/line.rb +9 -5
- data/lib/ruby2d/music.rb +8 -2
- data/lib/ruby2d/quad.rb +6 -6
- data/lib/ruby2d/rectangle.rb +6 -8
- data/lib/ruby2d/renderable.rb +25 -9
- data/lib/ruby2d/sound.rb +3 -2
- data/lib/ruby2d/sprite.rb +200 -61
- data/lib/ruby2d/square.rb +4 -4
- data/lib/ruby2d/text.rb +4 -4
- data/lib/ruby2d/triangle.rb +4 -4
- data/lib/ruby2d/version.rb +2 -2
- data/lib/ruby2d/window.rb +153 -24
- metadata +6 -8
- data/assets/ios/MyApp.xcodeproj/project.xcworkspace/xcuserdata/Tom.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- data/assets/ios/MyApp.xcodeproj/xcuserdata/Tom.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- data/lib/ruby2d/application.rb +0 -47
Binary file
|
data/assets/ios/MyApp.xcodeproj/xcuserdata/Tom.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>SchemeUserState</key>
|
6
|
-
<dict>
|
7
|
-
<key>MyApp.xcscheme</key>
|
8
|
-
<dict>
|
9
|
-
<key>orderHint</key>
|
10
|
-
<integer>0</integer>
|
11
|
-
</dict>
|
12
|
-
</dict>
|
13
|
-
</dict>
|
14
|
-
</plist>
|
data/lib/ruby2d/application.rb
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# application.rb
|
2
|
-
|
3
|
-
module Ruby2D::Application
|
4
|
-
class << self
|
5
|
-
@@window = Ruby2D::Window.new
|
6
|
-
|
7
|
-
def get(sym)
|
8
|
-
@@window.get(sym)
|
9
|
-
end
|
10
|
-
|
11
|
-
def set(opts)
|
12
|
-
@@window.set(opts)
|
13
|
-
end
|
14
|
-
|
15
|
-
def on(event, &proc)
|
16
|
-
@@window.on(event, &proc)
|
17
|
-
end
|
18
|
-
|
19
|
-
def off(event_descriptor)
|
20
|
-
@@window.off(event_descriptor)
|
21
|
-
end
|
22
|
-
|
23
|
-
def add(o)
|
24
|
-
@@window.add(o)
|
25
|
-
end
|
26
|
-
|
27
|
-
def remove(o)
|
28
|
-
@@window.remove(o)
|
29
|
-
end
|
30
|
-
|
31
|
-
def clear
|
32
|
-
@@window.clear
|
33
|
-
end
|
34
|
-
|
35
|
-
def update(&proc)
|
36
|
-
@@window.update(&proc)
|
37
|
-
end
|
38
|
-
|
39
|
-
def show
|
40
|
-
@@window.show
|
41
|
-
end
|
42
|
-
|
43
|
-
def close
|
44
|
-
@@window.close
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|