terminal_game_engine 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/terminal_game_engine.rb +1 -1
- data/lib/terminal_game_engine/frame.rb +3 -3
- data/lib/terminal_game_engine/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 007336af29788934644203dba0d58232cd8fec15
|
4
|
+
data.tar.gz: a00f2be1c0fe0222a1ac8ea2dbfd0273dcc83b5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecaa864e8aa8393a67b74300a8cf7f62dbee2ffe304bda7ea6041cfd54af7891b857568b077ffe6b709db37fb59313f90d44bab0298b2e5282e6d7252c8e3520
|
7
|
+
data.tar.gz: e245aa2378a74259b0a92049e3be150f858586686a344cf592da9a81b5691c4d21caec9760cd0c0ae6a203c2128063f58c3ad3f4153340d948bfbbf0aaa9064a
|
data/lib/terminal_game_engine.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
101
|
+
rubygems_version: 2.5.1
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Terminal Game Engine
|