From 3bde4f9739c3cadc69d35cc58343d10e2663f9a8 Mon Sep 17 00:00:00 2001 From: Youenn AIGNELOT <E243619D@u-inf-j-c001-11.ad.iut-nantes.univ-nantes.prive> Date: Tue, 21 Jan 2025 15:49:00 +0100 Subject: [PATCH] derniere maj --- cmd/config.json | 10 +++++----- floor/update.go | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/config.json b/cmd/config.json index 78eadd4..1e67c7d 100644 --- a/cmd/config.json +++ b/cmd/config.json @@ -8,12 +8,12 @@ "NumTileForDebug": 6, "CameraMode": 1, "FloorKind": 2, - "FloorFile": "../floor-files/validation", + "FloorFile": "../floor-files/royal", - "RandomFieldGeneration" : false, + "RandomFieldGeneration" : true, "RFGWidth" : 20, "RFGHeight" : 20, - "FileRegistration" : true, + "FileRegistration" : false, "NoWalkOnWater" : false, @@ -25,12 +25,12 @@ "EnablePortals": false, - "Zoom": true, + "Zoom": false, - "ParticulesEffect":true, + "ParticulesEffect":false, "ParticuleDuration":2, "ParticuleSpeed":1 diff --git a/floor/update.go b/floor/update.go index 94bc9ae..12e08c0 100644 --- a/floor/update.go +++ b/floor/update.go @@ -24,7 +24,7 @@ func (f *Floor) Update(camXPos, camYPos int) { if inpututil.IsKeyJustPressed(ebiten.KeyL) { f.dezoom() } - + } switch configuration.Global.FloorKind { case GridFloor: f.updateGridFloor(topLeftX, topLeftY) @@ -38,7 +38,7 @@ func (f *Floor) Update(camXPos, camYPos int) { } - } + if inpututil.IsKeyJustPressed(ebiten.KeyF) && configuration.Global.FileRegistration && !f.registration { // enregistre le terrain si F est préssé mais ne peut être enregistré qu'une seul fois f.registration = true -- GitLab