Balance changes
authorArvid Sjöblom <arvsj277@student.liu.se>
Mon, 11 Dec 2023 10:03:28 +0000 (11:03 +0100)
committerArvid Sjöblom <arvsj277@student.liu.se>
Mon, 11 Dec 2023 10:03:28 +0000 (11:03 +0100)
assets/data.json
assets/highscore.csv
src/_main.cc
src/constants.h

index a2352628ee456f5408e20a6ae77ca5fe86359ab5..79aed33a1d7b7c9040444abd0aeedfc805fe98f2 100644 (file)
@@ -1,14 +1,14 @@
 {
     "player": {
         "start_pos": [
-            200,
-            200
+            500,
+            500
         ],
         "scale": [
-            0.5,
-            0.5
+            0.6,
+            0.6
         ],
-        "max_speed": 5,
+        "max_speed": 7,
         "degrees_per_second": 360,
         "sack": {
             "offset": [
                 -5
             ],
             "scale": [
-                0.3,
-                0.3
+                0.4,
+                0.4
             ],
             "angle": -25
         }
     },
     "helper": {
         "start_pos": [
-            1000,
+            1500,
             50
         ],
         "scale": [
-            0.3,
-            0.3
+            0.4,
+            0.4
         ],
         "max_speed": 2,
         "direction": [
             1
         ],
         "stop_top": 50,
-        "stop_bot": 500
+        "stop_bot": 700
     },
     "bottle": {
         "scale": [
-            0.5,
-            0.5
+            0.7,
+            0.7
         ]
     },
     "game_constants": {
         "scoreboard": 5,
-        "bottles_per_second": 1.5,
-        "game_time": 30,
-        "yf_per_second": 0.125,
-        "bikes_per_second": 0.17,
+        "bottles_per_second": 1,
+        "game_time": 90,
+        "yf_per_second": 0.25,
+        "bikes_per_second": 0.25,
         "point_scale_div": 3.0,
         "highscore_file": "assets/highscore.csv"
     },
     },
     "main_enemy": {
         "scale": [
-            0.35,
-            0.35
+            0.40,
+            0.40
         ],
         "start_pos": [
             50,
             600
         ],
-        "max_speed": 2.0,
+        "max_speed": 4,
         "degrees_per_second": 360
     },
     "yf": {
         "scale": [
-            1,
-            1
+            1.25,
+            1.25
         ],
-        "max_speed": 2.0,
+        "max_speed": 4.5,
         "direction": [
             0,
             -1
     },
     "bike_enemy": {
         "scale": [
-            0.25,
-            0.25
+            0.35,
+            0.35
         ],
-        "max_speed": 5.0,
+        "max_speed": 9,
         "direction": [
             0,
             1
         ],
-        "sin_amplitude": 50,
+        "sin_amplitude": 100,
         "sin_omega": 5
     },
     "game_state_assets": {
index 39e24836db39ebfbe02129f33e97e11ab056e859..70069afdfbde107c641ad14bf71c76c59fb03320 100644 (file)
@@ -1,5 +1,5 @@
-, 9
-Nils, 6
-Nisseboi, 5
-Lukas is KUNG, 5
-NissePisse, 4
+NissePisse is KING, 51
+Lukas IS king, 50
+NissePisse, 30
+, 25
+arre, 15
index f6a529b61b09cc893056eaca995570330b7c2511..127f55221afa711ea0d388e3d28f424b1a6e7c78 100644 (file)
@@ -20,8 +20,9 @@ using json = nlohmann::json;
 int main ()
 {
     sf::RenderWindow window{
-        sf::VideoMode{S_WIDTH, S_HEIGHT},
-        "DespYrat"
+        sf::VideoMode{S_WIDTH, S_HEIGHT}, 
+        "DespYrat",
+        sf::Style::Fullscreen
     };
     //skapar en start meny
     Context game_context{};
index b76a1b5cd4b6891551a18f1556b51db9b0e48ec8..0f6845e0b959157f8c714a440a2e1d04f55285c7 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef CONSTANTS_H
 #define CONSTANTS_H
 
-const unsigned int S_WIDTH {1280};
-const unsigned int S_HEIGHT {720};
+const unsigned int S_WIDTH {1920};
+const unsigned int S_HEIGHT {1080};
 
-const double S_SCALE_KOEFF {S_WIDTH / 1920.0};
+const double S_SCALE_KOEFF {1};
 
 const unsigned int FPS {60};