We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d4f3a commit 48c0d1bCopy full SHA for 48c0d1b
README.md
@@ -18,6 +18,7 @@ Last tested against DragonRuby Game Toolkit v3.24.
18
- `#init` method that gets run once on game boot
19
- `CHEATSHEET.md` with common APIs from DRGTK and Scale
20
- `#version` to get the version of your game
21
+- Constants for various values and enums: `FPS`, `BLEND_*`, `ALIGN_*`
22
23
## Use It
24
app/main.rb
@@ -1,5 +1,14 @@
1
+FPS = 60
2
TRUE_BLACK = { r: 0, g: 0, b: 0 }
3
WHITE = { r: 255, g: 255, b: 255 }
4
+ALIGN_LEFT = 0
5
+ALIGN_CENTER = 1
6
+ALIGN_RIGHT = 2
7
+BLEND_NONE = 0
8
+BLEND_ALPHA = 1
9
+BLEND_ADDITIVE = 2
10
+BLEND_MODULO = 3
11
+BLEND_MULTIPLY = 4
12
13
# Access in code with `SPATHS[:my_sprite]`
14
# Replace with your sprites!
0 commit comments