We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b60631 commit 834a7d3Copy full SHA for 834a7d3
example/Gemfile
@@ -0,0 +1,6 @@
1
+source 'https://rubygems.org'
2
+
3
+gem 'yeah', github: 'yeahrb/yeah'
4
+#gem 'yeah', path: '../'
5
+gem 'yeah-web', github: 'yeahrb/yeah-web'
6
+gem 'opal', github: 'opal/opal'
example/README.md
@@ -0,0 +1,17 @@
+# Example Game
+A barebones example game included with Yeah.
+## Usage
7
+Install the game's dependencies.
8
9
+`$ bundle install`
10
11
+Start a web server for the game.
12
13
+`$ bundle exec yeah server`
14
15
+Finally, visit http://localhost:1234 to run the game in your web browser.
16
17
+Note: graphical output is in the works.
example/src/game.rb
@@ -0,0 +1,5 @@
+class ExampleGame < Yeah::Game
+ def initialize
+ puts "Hello!"
+ end
+end
0 commit comments