Skip to content

Commit

Permalink
feat: blend mode and align constants
Browse files Browse the repository at this point in the history
  • Loading branch information
brettchalupa committed Dec 31, 2022
1 parent a9d4f3a commit 48c0d1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Last tested against DragonRuby Game Toolkit v3.24.
- `#init` method that gets run once on game boot
- `CHEATSHEET.md` with common APIs from DRGTK and Scale
- `#version` to get the version of your game
- Constants for various values and enums: `FPS`, `BLEND_*`, `ALIGN_*`

## Use It

Expand Down
9 changes: 9 additions & 0 deletions app/main.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FPS = 60
TRUE_BLACK = { r: 0, g: 0, b: 0 }
WHITE = { r: 255, g: 255, b: 255 }
ALIGN_LEFT = 0
ALIGN_CENTER = 1
ALIGN_RIGHT = 2
BLEND_NONE = 0
BLEND_ALPHA = 1
BLEND_ADDITIVE = 2
BLEND_MODULO = 3
BLEND_MULTIPLY = 4

# Access in code with `SPATHS[:my_sprite]`
# Replace with your sprites!
Expand Down

0 comments on commit 48c0d1b

Please sign in to comment.