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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/consolegl.rb +13 -0
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9948053027ea47463cf5bd93e023a660c1483b85587def0778b3c4de298257d
4
- data.tar.gz: 91f59449b87650e344ebd2920c8d7810bd38beddc490ec7754ccd392a64d112d
3
+ metadata.gz: 1e21346a99d89d4bec6eaa92b63cc8d39f33574a811779d328ab82c90ebc2ace
4
+ data.tar.gz: 0b067b96c6da60aef36684a6a23e6031ae8204bd4b841c28be8bbee5c60c3dda
5
5
  SHA512:
6
- metadata.gz: ae9b9439a08e76d08ead728bdcf6e0aaaea6e50180a2824d992066315195cc621beda32da9e9022634f8684e1783dcc702dd92b00f93edad5f0a69615b8bd743
7
- data.tar.gz: e4f8bcd389a6326e8f395384454c938c50c9e52f31d8780b770dfc8dd9994d2a43a892daf2346e6ca5222d46e4eeb35e3ed7f243c37ac07167832d92ca6862b8
6
+ metadata.gz: 817a0db2a0bde2b144da91314d2aaaac3e1dd4369e81df31886c427ada5465a887e28a8bb92059ee0094742fa199fa185abf9b96765bd5843fcd901433c2afb7
7
+ data.tar.gz: abcea8d1fd5d18b41f2599a629bcefcdd21c6cf54bdc474fd5b8f4bef0ffcf309b58dee1345db030e40001708d824d4c4dfb220857043630255a8db7af22f9f4
@@ -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.10
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-17 00:00:00.000000000 Z
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.10 Updates: Fixed Issue #3 from Github'
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: []