Skip to content

Commit 834a7d3

Browse files
author
Artur Ostręga
committed
Add barebones example game
1 parent 9b60631 commit 834a7d3

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

example/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Example Game
2+
3+
A barebones example game included with Yeah.
4+
5+
## Usage
6+
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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ExampleGame < Yeah::Game
2+
def initialize
3+
puts "Hello!"
4+
end
5+
end

0 commit comments

Comments
 (0)