terminal_game_engine 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d5e89be3b16dac322f0d73efaca372e026d0d5e
4
- data.tar.gz: 81e5e68033fb0d9f567bc980fc609acd7027eaff
3
+ metadata.gz: 007336af29788934644203dba0d58232cd8fec15
4
+ data.tar.gz: a00f2be1c0fe0222a1ac8ea2dbfd0273dcc83b5c
5
5
  SHA512:
6
- metadata.gz: 9cf2c7b404b247dd2b3a72fdfb47079056ea58f93171eb4c9347e4b6775f5af1b484bb8f1cd6fdb3d782a078e0411a79053da934b0834fe9fbdf8b3e9440ce1d
7
- data.tar.gz: 4961ccefbaff0971b9439375aba1d743ab67256ae959a73fb67f83ad0a49df9697a2188b674a7ed742662d359381819d87262356fd44f5ebf0ddb71716829c0e
6
+ metadata.gz: ecaa864e8aa8393a67b74300a8cf7f62dbee2ffe304bda7ea6041cfd54af7891b857568b077ffe6b709db37fb59313f90d44bab0298b2e5282e6d7252c8e3520
7
+ data.tar.gz: e245aa2378a74259b0a92049e3be150f858586686a344cf592da9a81b5691c4d21caec9760cd0c0ae6a203c2128063f58c3ad3f4153340d948bfbbf0aaa9064a
@@ -2,7 +2,7 @@ Dir[File.dirname(__FILE__) + "/**/*.rb"].each { |f| require f }
2
2
 
3
3
  module TerminalGameEngine
4
4
  def self.run(*args, &block)
5
- TerminalGameEngine::Frame.setup
5
+ TerminalGameEngine::Frame.setup(disable_cursor: false)
6
6
 
7
7
  EngineProxy.new(*args).instance_eval &block
8
8
  end
@@ -64,14 +64,14 @@ module TerminalGameEngine
64
64
  print "\x1B[?25h"
65
65
  end
66
66
 
67
- def self.setup
67
+ def self.setup(disable_cursor: true)
68
68
  clear_screen
69
- disable_cursor
69
+ disable_cursor if disable_cursor
70
70
 
71
71
  $stdin.raw!
72
72
  at_exit do
73
73
  puts "\r"
74
- enable_cursor
74
+ enable_cursor if disable_cursor
75
75
  $stdin.cooked!
76
76
  system 'stty sane'
77
77
  end
@@ -1,3 +1,3 @@
1
1
  module TerminalGameEngine
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal_game_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Odin Dutton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-16 00:00:00.000000000 Z
11
+ date: 2016-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.4.5
101
+ rubygems_version: 2.5.1
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Terminal Game Engine