adjust difficulty curve in level 1
This commit is contained in:
parent
e87e228926
commit
0f1b1a7e11
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
*.tsx:
|
||||
custom-type: tiled-tileset
|
||||
name_regex: (.*)\.tsx tileset_\1
|
||||
profile: p4
|
||||
profile: p4_rgb565a
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue