ConsoleGL 1.0.10 → 1.1.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/consolegl.rb +13 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e21346a99d89d4bec6eaa92b63cc8d39f33574a811779d328ab82c90ebc2ace
|
4
|
+
data.tar.gz: 0b067b96c6da60aef36684a6a23e6031ae8204bd4b841c28be8bbee5c60c3dda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817a0db2a0bde2b144da91314d2aaaac3e1dd4369e81df31886c427ada5465a887e28a8bb92059ee0094742fa199fa185abf9b96765bd5843fcd901433c2afb7
|
7
|
+
data.tar.gz: abcea8d1fd5d18b41f2599a629bcefcdd21c6cf54bdc474fd5b8f4bef0ffcf309b58dee1345db030e40001708d824d4c4dfb220857043630255a8db7af22f9f4
|
data/lib/consolegl.rb
CHANGED
@@ -23,6 +23,19 @@
|
|
23
23
|
#Color = COLOR ID
|
24
24
|
#Usage:
|
25
25
|
#LineVertical(Color.BLUE)
|
26
|
+
require 'io/console'
|
27
|
+
|
28
|
+
class Input
|
29
|
+
def KeyPressed(key)
|
30
|
+
ch = STDIN.getch
|
31
|
+
if ch.to_s == key
|
32
|
+
return true
|
33
|
+
else
|
34
|
+
return false
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
26
39
|
|
27
40
|
|
28
41
|
class Color
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ConsoleGL
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Okistuff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Rendering Engine for Ruby kind of similar to OpenGL. It runs in the
|
14
|
-
console: 1.0
|
14
|
+
console: 1.1.0 Updates: Added Keyboard Input. Please see the wiki on the github
|
15
|
+
repo to learn how to use it'
|
15
16
|
email: okistuffyt@gmail.com
|
16
17
|
executables: []
|
17
18
|
extensions: []
|