adjust difficulty curve in level 1

This commit is contained in:
Lephenixnoir 2022-05-17 20:12:39 +01:00
parent e87e228926
commit 0f1b1a7e11
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
8 changed files with 23 additions and 15 deletions

View File

@ -61,7 +61,8 @@ def convert_level(input, params):
"item": re.compile(r'[a-zA-Z_][a-zA-Z0-9_]*'),
}
with open(input, "r") as fp:
lines = [l for l in fp.read().splitlines() if l]
lines = [l for l in fp.read().splitlines() if l
and not l.startswith("#")]
for i, l in enumerate(lines):
if ":" not in l:
raise fxconv.FxconvError(f"invalid line {l}: not a key/value")

View File

@ -7,15 +7,25 @@ spawner: 18,5
spawner: 5,7
wave: 9s 3*slime/1
wave: 12s 6*slime/1
item: armor1
wave: 2s 1*bat/2
wave: 20s 10*slime/1
wave: 8s 4*bat/2
wave: 12s 4*slime/1
wave: 4s 1*bat/2
wave: 20s 8*slime/1
item: sword1
wave: 8s 12*slime/1 4*bat/2
wave: 8s 2*bat/2
delay: 4s
# "Boss" wave #1
item: potion_hp
wave: 8s 12*slime/1 4*bat/2
delay: 8s
wave: 10s 10*slime/1
wave: 12s 4*slime/1 4*bat/2
wave: 4s 2*fire_slime/4
# "Boss" wave #2
item: potion_hp
wave: 6s 8*slime/1 8*bat/2 2*fire_slime/4
delay: 6s
delay: 5s
wave: 8s 12*bat/2 4*fire_slime/4 1*gunslinger/8

View File

@ -1,4 +1,4 @@
*.tsx:
custom-type: tiled-tileset
name_regex: (.*)\.tsx tileset_\1
profile: p4
profile: p4_rgb565a

View File

@ -26,7 +26,6 @@
#include <gint/cpu.h>
#include <gint/timer.h>
#include <gint/kmalloc.h>
#include <gint/drivers/r61524.h>
#include <gint/defs/util.h>
#include <gint/rtc.h>
@ -280,7 +279,7 @@ int main(void)
/* Instead of dupdate(); for accurate performance measurements. Leaving
the DMA running during the simulation affects the results in extreme
proportions (can turn 1 ms of simulation into 11 ms measured) */
r61524_display(gint_vram, 0, DHEIGHT, R61524_DMA_WAIT);
dupdate();
prof_leave(perf_render);
time_render = prof_time(perf_render);

View File

@ -7,7 +7,6 @@
#include <gint/defs/util.h>
#include <gint/usb.h>
#include <gint/usb-ff-bulk.h>
#include <gint/drivers/r61524.h>
#include <stdlib.h>
typedef struct {
@ -125,7 +124,7 @@ int menu_level_select(int start)
dsubimage(ARROW2_X, 93, &img_menu_arrows, 35, 0, 35, 42,
DIMAGE_NONE);
r61524_display(gint_vram, 0, DHEIGHT, R61524_DMA_WAIT);
dupdate();
for(int i = 0; i < OPTION_COUNT; i++)
menu_update_animations(options[i], dt);

View File

@ -4,7 +4,7 @@
static int xp_to_next_level(int level)
{
return 3 * (level + 2) * (level + 2);
return 5 * (level + 2) * (level + 2);
}
bool player_add_xp(entity_t *e, int points)

View File

@ -631,7 +631,6 @@ void render_game(game_t const *g, bool show_hitboxes)
prof_leave(ctx);
time_render_hud = prof_time(ctx);
dfont(old_font);
}

View File

@ -13,7 +13,7 @@ fixed_t skill_cooldown(int skill)
else if(skill == AOE_PROJECTILE)
return fix(2.0);
else if(skill == AOE_SHOCK)
return fix(4.0);
return fix(8.0);
else if(skill == AOE_JUDGEMENT)
return fix(3.0);
else if(skill == AOE_BULLET)