adjust parameters using level 3 as a base

This commit is contained in:
Lephenixnoir 2021-08-21 16:45:08 +02:00
parent 96247fbcfa
commit 37b6d10b62
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
4 changed files with 22 additions and 5 deletions

View File

@ -2,12 +2,15 @@
left
left
left
left
left

View File

@ -38,6 +38,20 @@ def convert_level(input, output, params, target):
shape = 7
# Action
if "rotate_left" in r:
action = 1
if "rotate_right" in r:
action = 2
if "speed" in r:
action = 3
if "fadeout" in r:
action = 4
if "outer_rotate_left" in r:
action = 5
if "outer_rotate_right" in r:
action = 6
if "slide" in r:
action = 7
# Position
if "left" in r:
@ -61,7 +75,7 @@ def convert_level(input, output, params, target):
block_count += 1
o = fxconv.ObjectData()
o += fxconv.u32(0x40000000) # 2.0 as a float
o += fxconv.u32(0x3f800000) # 1.0 as a float
o += fxconv.u32(block_count)
o += fxconv.ref(blocks)

View File

@ -62,7 +62,7 @@ typedef struct {
#define PLAYER_SIZE 8
#define CORRIDOR_SIZE 120
#define RECT_SPEED 60 /* px/tempo */
#define RECT_SPEED 50 /* px/tempo */
typedef struct {
float w, h; /* px */

View File

@ -57,7 +57,7 @@ int main(void)
while (need_frame == 0) sleep();
need_frame = 0;
dt = (1.0 / 30) * game.level->tempo;
dt = (1.0 / 30) * game.level->tempo * 2.7;
game.time += dt;
/* Input analysis */
@ -113,9 +113,9 @@ int main(void)
}
if(rotate_left)
game.player_rota += 2.1 * dt;
game.player_rota += 1.57 * dt;
if(rotate_right)
game.player_rota -= 2.1 * dt;
game.player_rota -= 1.57 * dt;
/* Rendering */