README.md in cyberarm_engine-0.17.1 vs README.md in cyberarm_engine-0.18.0
- old
+ new
@@ -1,6 +1,6 @@
-# CyberarmEngine
+![CyberarmEngine](https://raw.githubusercontent.com/cyberarm/cyberarm_engine/master/assets/textures/logo.png)
Yet Another Game Engine On Top Of Gosu
## Features
* [Shoes-like](http://shoesrb.com) GUI support
@@ -30,10 +30,12 @@
```ruby
require "cyberarm_engine"
class Hello < CyberarmEngine::GuiState
def setup
+ background Gosu::Color::GRAY
+
stack do
label "Hello World!"
button "close" do
window.close
@@ -41,18 +43,17 @@
end
end
end
class Window < CyberarmEngine::Window
- def initialize
- super
+ def setup
self.show_cursor = true
push_state(Hello)
end
end
-Window.new.show
+Window.new(width: 800, height: 600, fullscreen: false, resizable: true).show
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.