draw overlay + move gold to overlay in pure raylib
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package game
|
||||
|
||||
import rl "vendor:raylib"
|
||||
|
||||
MAP_W :: 30 // map width in tiles
|
||||
MAP_H :: 20 // map height in tiles
|
||||
TILE_SIZE :: 32 // size of tiles in pixels
|
||||
@@ -17,3 +19,9 @@ MAX_PROJECTILES :: 64
|
||||
PROJECTILE_SPEED :: 280 // pixels per second
|
||||
PROJECTILE_HIT_RADIUS :: 10
|
||||
|
||||
OVERLAY_BAR_H :: 28
|
||||
OVERLAY_PADDING :: 6
|
||||
|
||||
OVERLAY_BAR_COLOR :: rl.Color{20, 24, 20, 200}
|
||||
OVERLAY_GOLD_COLOR :: rl.Color{255, 215, 80, 255}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user