{
"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": {
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{};
#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};