Skip to content

Commit a29fe02

Browse files
author
Artur Ostręga
committed
example: Add display size configuration
1 parent ff03439 commit a29fe02

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

example/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
33
gem 'yeah', github: 'yeahrb/yeah'
44
#gem 'yeah', path: '../'
55
gem 'yeah-web', github: 'yeahrb/yeah-web'
6+
#gem 'yeah-web', path: '../../yeah-web'
67
gem 'opal', github: 'opal/opal'

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Example Game
22

3-
A barebones example game included with Yeah.
3+
Barebones example game for Yeah
44

55
## Usage
66

@@ -14,4 +14,4 @@ Start a web server for the game.
1414

1515
Finally, visit [http://localhost:1234](http://localhost:1234) to run the game in your web browser.
1616

17-
Note: graphical output is in the works.
17+
Note: graphical output in the game framework is in the works.

example/src/game.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
class ExampleGame < Yeah::Game
22
def initialize
3+
super
4+
35
puts "Hello!"
6+
display.size = 320, 240
47
end
58
end

0 commit comments

Comments
 (0)