You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-43Lines changed: 54 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,20 @@
1
1
# RichEngine
2
2
3
-
RichEngine is a tiny terminal game engine for Ruby. It gives you a simple game loop, a 2D character canvas with colors, non-blocking keyboard input, and a handful of helpers (timers, cooldowns, RNG, enums, matrices) so you can ship playful ASCII games quickly.
3
+
RichEngine is a tiny terminal game engine for Ruby. It gives you a simple game
4
+
loop, a 2D character canvas with colors, non-blocking keyboard input, and a
5
+
handful of helpers (timers, cooldowns, RNG, enums, matrices) so you can ship
6
+
playful ASCII games quickly.
4
7
5
-
At its core, you subclass `RichEngine::Game`, implement a few lifecycle hooks, and draw to a `Canvas` each frame.
8
+
At its core, you subclass `RichEngine::Game`, implement a few lifecycle hooks,
9
+
and draw to a `Canvas` each frame.
6
10
7
11
## Quick start: build a simple game
8
12
9
13
Below is a minimal, complete example showing how to:
10
14
- create a game by subclassing `RichEngine::Game`
11
15
- quit on a key press
12
-
- sleep to cap the frame rate
13
16
- draw text and shapes to the screen
17
+
- use canvas slots to keep a bottom HUD separate from the playfield
14
18
15
19
```ruby
16
20
require"rich_engine"
@@ -19,20 +23,19 @@ class MyGame < RichEngine::Game
0 commit comments