diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-03 21:13:19 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-03 21:13:19 -0600 |
commit | f922fe4669080d1633e0a345a3f8981867c9e841 (patch) | |
tree | 7c2c98bfca20fda37fe34ba99e2d3caa9a39ca02 /src/global.gd | |
parent | 898877f09808691a5e5d45850d27ae85f270db16 (diff) |
add working world gen, fixed food placing, minor refactoring
Diffstat (limited to 'src/global.gd')
-rw-r--r-- | src/global.gd | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/global.gd b/src/global.gd index 2885443..72cb294 100644 --- a/src/global.gd +++ b/src/global.gd @@ -1,9 +1,12 @@ extends Node var GAME_SCALE: float = 2.0 +var TILE_SIZE: int = 16 +var WORLD_TILE_PATH: int = 0 +var WORLD_TILE_WALL: int = 1 var SNAKE_SPEED: float = 50.0 -var SNAKE_ROT_SPEED: float = 200.0 -var SNAKE_POSITION_UPDATE_INTERVAL: float = 0.01 +var SNAKE_ROT_SPEED: float = 300.0 +var SNAKE_POSITION_UPDATE_INTERVAL: float = 0.001 # this usually corresponds to the sprite size -var SNAKE_SEGMENT_SIZE: float = 14.0 +var SNAKE_SEGMENT_SIZE: float = 6.0 |