rabbit-slide-myokoym-sinatrasapporo02 2014.5.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a029e85502341956efc6e77857af019dde446741
4
+ data.tar.gz: 27affa52efccd97b0c07bb509342e3ec7fcc2273
5
+ SHA512:
6
+ metadata.gz: 8b2a0498a7e81890ad40510a8410c4f7e2f200fe9dbf4eefd1bfd234a4cef14dc7d122dab49fcfd18bc92c6ad065c4e071f625cf8d2cba519bb28d867b7d15fe
7
+ data.tar.gz: 005bdfcaa092b31676f5f06911d3d604e1baf6cd28258f657094cf4eb60dd96b1345c4825980a0bbbf4f11d5e7e0313a3047ad0b634048b384110b81e42317df
data/.rabbit ADDED
@@ -0,0 +1 @@
1
+ introduction-of-gosu-zen.rab
data/README.rd ADDED
@@ -0,0 +1,24 @@
1
+ = Sinatra風マルチメディアプログラミング
2
+
3
+ Sinatraっぽい文法でゲームを書けるGosu Zenの紹介
4
+
5
+ == 作者向け
6
+
7
+ === 表示
8
+
9
+ rake
10
+
11
+ === 公開
12
+
13
+ rake publish
14
+
15
+ == 閲覧者向け
16
+
17
+ === インストール
18
+
19
+ gem install rabbit-slide-myokoym-sinatrasapporo02
20
+
21
+ === 表示
22
+
23
+ rabbit rabbit-slide-myokoym-sinatrasapporo02.gem
24
+
data/Rakefile ADDED
@@ -0,0 +1,17 @@
1
+ require "rabbit/task/slide"
2
+
3
+ # Edit ./config.yaml to customize meta data
4
+
5
+ spec = nil
6
+ Rabbit::Task::Slide.new do |task|
7
+ spec = task.spec
8
+ # task.spec.files += Dir.glob("doc/**/*.*")
9
+ # task.spec.files -= Dir.glob("private/**/*.*")
10
+ # task.spec.add_runtime_dependency("YOUR THEME")
11
+ end
12
+
13
+ desc "Tag #{spec.version}"
14
+ task :tag do
15
+ sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
16
+ sh("git", "push", "--tags")
17
+ end
data/config.yaml ADDED
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: sinatrasapporo02
3
+ base_name: introduction-of-gosu-zen
4
+ tags:
5
+ - sinatrasapporo
6
+ presentation_date: 2014/05/10
7
+ version: 2014.5.10.0
8
+ licenses:
9
+ - CC BY 3.0
10
+ slideshare_id:
11
+ speaker_deck_id:
12
+ ustream_id:
13
+ vimeo_id:
14
+ youtube_id:
15
+ author:
16
+ markup_language: :rd
17
+ name: Masafumi Yokoyama
18
+ email: myokoym@gmail.com
19
+ rubygems_user: myokoym
20
+ slideshare_user: myokoym
21
+ speaker_deck_user: myokoym
@@ -0,0 +1,143 @@
1
+ = Sinatra風\nマルチメディア\nプログラミング
2
+
3
+ # : subtitle
4
+ # Sinatraっぽい文法でゲームを書こう
5
+ : author
6
+ @myokoym
7
+ # : institution
8
+ # Sinatra札幌
9
+ : content-source
10
+ 勉強会@Sinatra札幌
11
+ : date
12
+ 2014/05/10
13
+ : allotted-time
14
+ 5m
15
+ : theme
16
+ nyankosakana
17
+
18
+ = 自己紹介
19
+
20
+ * 横山昌史(@myokoym)
21
+ * Rabbitショッカー
22
+ * Ruby-GNOME2 Project Team
23
+ * Groonga勉強会@札幌
24
+
25
+ = よろしくお願いします。\n\nm(_ _)m
26
+
27
+ = ここでクイズです。
28
+
29
+ = Q. Sinatraは好きですか?\n\nA. 好きです
30
+
31
+ = Q. ゲームは好きですか?\n\nA. 好きです
32
+
33
+ = Q. プログラミングは?\n\nA. 好きです
34
+
35
+ = そんなあなたに
36
+
37
+ * ((*Sinatra*))っぽい文法で
38
+ * ((*ゲーム*))を書ける
39
+ * ライブラリのご紹介です。
40
+
41
+ = その名は…\n\nGosu::Zen
42
+
43
+ = その名は…\n\n((*Gosu*))::Zen
44
+
45
+ = Gosu is 何
46
+
47
+ # blockquote
48
+ # title = http://www.libgosu.org/
49
+ Gosu is a 2D game development library for the Ruby and
50
+ C++ programming languages, available for Mac OS X,
51
+ Windows, and Linux.
52
+
53
+ = Gosu is 何
54
+
55
+ * 2Dゲーム開発ライブラリ
56
+ * RubyとC++向け
57
+ * マルチプラットフォーム
58
+ * Mac OS X
59
+ * Windows
60
+ * Linux
61
+
62
+ = Gosu 0.7.x
63
+
64
+ * 現時点での最新リリース版
65
+ * SDLベース
66
+ * C++版はiOSに対応
67
+
68
+ = インストール
69
+
70
+ gem install gosu
71
+
72
+ (('note:WindowsはRuby1.9のみ対応'))\n
73
+ (('note:Linuxでは事前にSDLなどをインストールしておく(See https://github.com/jlnr/gosu/wiki/Getting-Started-on-Linux)'))\n
74
+ (('note:OS Xは?(試してみてください!)'))\n
75
+
76
+ = こんな感じで書きます
77
+
78
+ # coderay ruby
79
+ require "gosu"
80
+
81
+ # 1フレームごとにupdateとdrawが呼ばれる
82
+ class Window < Gosu::Window
83
+ def update
84
+ # 主要ロジック(移動、衝突判定など)
85
+ end
86
+
87
+ def draw
88
+ # 描画コード(ロジックは含めない)
89
+ end
90
+ end
91
+
92
+ = 実行例
93
+
94
+ # coderay ruby
95
+
96
+ width = 800
97
+ height = 600
98
+ fullscreen = false
99
+
100
+ window = Window.new(width,
101
+ height,
102
+ fullscreen)
103
+
104
+ # メインループ開始(デフォルトは60fps)
105
+ window.show
106
+
107
+ = Gosu 0.8
108
+
109
+ * 次期リリース版
110
+ * gem install gosu --pre
111
+ * SDL2ベース
112
+ * Raspbian(Raspberry Pi)対応
113
+ * Android対応予定
114
+
115
+ = その名は…\n\nGosu::((*Zen*))
116
+
117
+ = Gosu::Zen is 何
118
+
119
+ * GosuのSinatra風ラッパー
120
+ * Zen was inspired by:
121
+ * http://www.sinatrarb.com/configuration.html
122
+ * まだ実験段階(仕様変更あり)
123
+
124
+ = こんな感じで書きます
125
+
126
+ # coderay ruby
127
+ require "gosu/zen"
128
+ include Gosu::Zen
129
+
130
+ update do
131
+ # 主要ロジック(移動、衝突判定など)
132
+ end
133
+
134
+ draw do
135
+ # 描画コード(ロジックは含めない)
136
+ end
137
+
138
+ = デモ
139
+
140
+ == property
141
+
142
+ :as_large_as_possible
143
+ true
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rabbit-slide-myokoym-sinatrasapporo02
3
+ version: !ruby/object:Gem::Version
4
+ version: 2014.5.10.0
5
+ platform: ruby
6
+ authors:
7
+ - Masafumi Yokoyama
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rabbit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.2
27
+ description: Sinatraっぽい文法でゲームを書けるGosu Zenの紹介
28
+ email:
29
+ - myokoym@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rabbit"
35
+ - README.rd
36
+ - Rakefile
37
+ - config.yaml
38
+ - introduction-of-gosu-zen.rab
39
+ - pdf/sinatrasapporo02-introduction-of-gosu-zen.pdf
40
+ homepage: http://slide.rabbit-shocker.org/authors/myokoym/sinatrasapporo02/
41
+ licenses:
42
+ - CC BY 3.0
43
+ metadata: {}
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 2.2.2
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: Sinatra風マルチメディアプログラミング
64
+ test_files: []