shoesgem 0.1429.0 → 0.1430.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.
- data/shoes/VERSION.txt +1 -1
- data/shoes/freetype6.dll +0 -0
- data/shoes/lib/shoes/chipmunk.rb +35 -0
- data/shoes/libcairo-2.dll +0 -0
- data/shoes/libeay32.dll +0 -0
- data/shoes/libexpat-1.dll +0 -0
- data/shoes/libfontconfig-1.dll +0 -0
- data/shoes/libgio-2.0-0.dll +0 -0
- data/shoes/libglib-2.0-0.dll +0 -0
- data/shoes/libgmodule-2.0-0.dll +0 -0
- data/shoes/libgobject-2.0-0.dll +0 -0
- data/shoes/libgthread-2.0-0.dll +0 -0
- data/shoes/libiconv2.dll +0 -0
- data/shoes/libjpeg-8.dll +0 -0
- data/shoes/libpango-1.0-0.dll +0 -0
- data/shoes/libpangocairo-1.0-0.dll +0 -0
- data/shoes/libpangoft2-1.0-0.dll +0 -0
- data/shoes/libpangowin32-1.0-0.dll +0 -0
- data/shoes/libpng14-14.dll +0 -0
- data/shoes/libportaudio-2.dll +0 -0
- data/shoes/libshoes.dll +0 -0
- data/shoes/libssl32.dll +0 -0
- data/shoes/libungif4.dll +0 -0
- data/shoes/msvcrt-ruby191.dll +0 -0
- data/shoes/nsis/shoes.nsi +1 -1
- data/shoes/readline5.dll +0 -0
- data/shoes/ruby/gems/1.9.1/gems/hpricot-0.8.1/lib/fast_xs.so +0 -0
- data/shoes/ruby/gems/1.9.1/gems/hpricot-0.8.1/lib/hpricot_scan.so +0 -0
- data/shoes/ruby/gems/1.9.1/gems/json-shoes-1.1.3/lib/json/ext/generator.so +0 -0
- data/shoes/ruby/gems/1.9.1/gems/json-shoes-1.1.3/lib/json/ext/parser.so +0 -0
- data/shoes/ruby/gems/1.9.1/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3_api.so +0 -0
- data/shoes/ruby/lib/i386-mingw32/binject.so +0 -0
- data/shoes/ruby/lib/i386-mingw32/bloops.so +0 -0
- data/shoes/ruby/lib/i386-mingw32/chipmunk.so +0 -0
- data/shoes/ruby/lib/i386-mingw32/ftsearchrt.so +0 -0
- data/shoes/samples/simple-chipmunk.rb +26 -0
- data/shoes/shoes.exe +0 -0
- data/shoes/sqlite3.dll +0 -0
- data/shoes/zlib.dll +0 -0
- data/shoes/zlib1.dll +0 -0
- metadata +6 -4
data/shoes/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
shoes policeman (0.
|
1
|
+
shoes policeman (0.r1430) [i386-mingw32 Ruby1.9.1]
|
data/shoes/freetype6.dll
CHANGED
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'chipmunk'
|
2
|
+
|
3
|
+
module ChipMunk
|
4
|
+
def cp_space
|
5
|
+
@space = CP::Space.new
|
6
|
+
@space.damping = 0.8
|
7
|
+
@space.gravity = vec2 0, 25
|
8
|
+
@space
|
9
|
+
end
|
10
|
+
|
11
|
+
def cp_oval l, t, r, opts = {}
|
12
|
+
b = CP::Body.new 1,1
|
13
|
+
b.p = vec2 l, t
|
14
|
+
@space.add_body b
|
15
|
+
@space.add_shape CP::Shape::Circle.new(b, r, vec2(0, 0))
|
16
|
+
|
17
|
+
img = image left: l-r-1, top: t-r-1, width: 2*r+2, height: 2*r+2, body: b, inflate: r-2 do
|
18
|
+
oval 1, 1, 2*r, opts
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def cp_line x0, y0, x1, y1, opts = {}
|
23
|
+
opts[:strokewidth] = 5 unless opts[:strokewidth]
|
24
|
+
sb = CP::Body.new 1.0/0.0, 1.0/0.0
|
25
|
+
seg = CP::Shape::Segment.new sb, vec2(x0, y0), vec2(x1, y1), opts[:strokewidth]
|
26
|
+
@space.add_shape seg
|
27
|
+
line x0, y0, x1, y1, opts
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Shoes::Image.class_eval do
|
32
|
+
def cp_move
|
33
|
+
move style[:body].p.x.to_i - style[:inflate], style[:body].p.y.to_i - style[:inflate]
|
34
|
+
end
|
35
|
+
end
|
data/shoes/libcairo-2.dll
CHANGED
Binary file
|
data/shoes/libeay32.dll
CHANGED
Binary file
|
data/shoes/libexpat-1.dll
CHANGED
Binary file
|
data/shoes/libfontconfig-1.dll
CHANGED
Binary file
|
data/shoes/libgio-2.0-0.dll
CHANGED
Binary file
|
data/shoes/libglib-2.0-0.dll
CHANGED
Binary file
|
data/shoes/libgmodule-2.0-0.dll
CHANGED
Binary file
|
data/shoes/libgobject-2.0-0.dll
CHANGED
Binary file
|
data/shoes/libgthread-2.0-0.dll
CHANGED
Binary file
|
data/shoes/libiconv2.dll
CHANGED
Binary file
|
data/shoes/libjpeg-8.dll
CHANGED
Binary file
|
data/shoes/libpango-1.0-0.dll
CHANGED
Binary file
|
Binary file
|
data/shoes/libpangoft2-1.0-0.dll
CHANGED
Binary file
|
Binary file
|
data/shoes/libpng14-14.dll
CHANGED
Binary file
|
data/shoes/libportaudio-2.dll
CHANGED
Binary file
|
data/shoes/libshoes.dll
CHANGED
Binary file
|
data/shoes/libssl32.dll
CHANGED
Binary file
|
data/shoes/libungif4.dll
CHANGED
Binary file
|
data/shoes/msvcrt-ruby191.dll
CHANGED
Binary file
|
data/shoes/nsis/shoes.nsi
CHANGED
data/shoes/readline5.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# simple-chipmunk.rb
|
2
|
+
require 'shoes/chipmunk'
|
3
|
+
|
4
|
+
Shoes.app title: 'A Tiny Chipmunk Physics Demo' do
|
5
|
+
extend ChipMunk
|
6
|
+
space = cp_space
|
7
|
+
balls = []
|
8
|
+
|
9
|
+
nofill
|
10
|
+
cp_line 0, 180, 200, 280, stroke: gold
|
11
|
+
cp_line 200, 280, 300, 270, stroke: gold
|
12
|
+
cp_line 250, 350, 350, 330
|
13
|
+
cp_line 170, 370, 220, 380
|
14
|
+
cp_line 100, 450, 300, 430, stroke: lightslategray
|
15
|
+
cp_line 300, 430, 500, 450, stroke: lightslategray
|
16
|
+
|
17
|
+
nostroke
|
18
|
+
oval(10, 30, 40, fill: blue).click{balls << cp_oval(30, 50, 20, stroke: blue, strokewidth: 2)}
|
19
|
+
oval(70, 40, 20, fill: green).click{balls << cp_oval(80, 50, 10, fill: green)}
|
20
|
+
oval(105, 45, 10, fill: red).click{balls << cp_oval(110, 50, 5, fill: red)}
|
21
|
+
|
22
|
+
every do
|
23
|
+
6.times{space.step 1.0/60}
|
24
|
+
balls.each{|ball| ball.cp_move}
|
25
|
+
end
|
26
|
+
end
|
data/shoes/shoes.exe
CHANGED
Binary file
|
data/shoes/sqlite3.dll
CHANGED
Binary file
|
data/shoes/zlib.dll
CHANGED
Binary file
|
data/shoes/zlib1.dll
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoesgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5703
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 1430
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.1430.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- ashbb
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-26 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- shoes/freetype6.dll
|
53
53
|
- shoes/lib/shoes.rb
|
54
54
|
- shoes/lib/shoes/cache.rb
|
55
|
+
- shoes/lib/shoes/chipmunk.rb
|
55
56
|
- shoes/lib/shoes/data.rb
|
56
57
|
- shoes/lib/shoes/help.rb
|
57
58
|
- shoes/lib/shoes/image.rb
|
@@ -779,6 +780,7 @@ files:
|
|
779
780
|
- shoes/samples/simple-arc.rb
|
780
781
|
- shoes/samples/simple-bounce.rb
|
781
782
|
- shoes/samples/simple-calc.rb
|
783
|
+
- shoes/samples/simple-chipmunk.rb
|
782
784
|
- shoes/samples/simple-control-sizes.rb
|
783
785
|
- shoes/samples/simple-curve.rb
|
784
786
|
- shoes/samples/simple-dialogs.rb
|