minimap: move camera with mouse, show camera pos on map

This commit is contained in:
Antti Hakkarainen 2023-02-14 23:32:52 +02:00
parent 0f6343b44f
commit 14aa4f0e9a
6 changed files with 68 additions and 23 deletions

View file

@ -55,16 +55,18 @@ var map_tile_data:Array[Array] = [[]]
# CAMERA SETTINGS #
###################################
var camera_marker
# GAME WINDOW DEFAULT SIZE
const DEFAULT_X_RES:int = 1920
const DEFAULT_Y_RES:int = 1080
# current camera zoom level
var CAMERA_ZOOM_LEVEL: float = 1.0
var CAMERA_POSITION
var CAMERA_POSITION:Vector2i
# camera movement settings
const CAMERA_MIN_ZOOM_LEVEL: float = 0.1
const CAMERA_MIN_ZOOM_LEVEL: float = 0.5
const CAMERA_MAX_ZOOM_LEVEL: float = 2.0
const CAMERA_ZOOM_FACTOR: float = 0.1
const CAMERA_ZOOM_DURATION: float = 0.1