Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2c1e3915 authored by DETROYAT Alexis's avatar DETROYAT Alexis
Browse files

Slight changes to crepes level to add binds into in-game messages and added a...

Slight changes to crepes level to add binds into in-game messages and added a restart method (seems to have fixed some restart bugs)
parent 132cb6bd
No related branches found
No related tags found
2 merge requests!21Merging the multi-character sprite handling system into avoid_monster,!13Merge crepes level with main
......@@ -153,6 +153,9 @@ class Level(AbstractLevel):
self.register_leave_function("enter_building", hide_player)
player.post_update = post_update
def arcade_custom_restart(self):
self.arcade_custom_first_start()
def pre_validation(self):
self.checker.append_inputs(
[
......
......@@ -170,10 +170,10 @@ void enter_ingredient_building(game_instance* game, char* building_name) {
// Load building map
if (strcmp(building_name, "egg_shop") == 0) {
m = create_building_map(game, building_name, egg_map, 1);
message("Entering the *EGG SHOP*.\nType TAKE to take the ingredient, or EXIT in the terminal.");
message("Entering the *EGG SHOP*.\nType TAKE (UP ARROW) to take the ingredient,\nor EXIT (DOWN ARROW) in the terminal.");
} else if (strcmp(building_name, "flour_shop") == 0) {
m = create_building_map(game, building_name, flour_map, 2);
message("Entering the *FLOUR SHOP*.\nType TAKE to take the ingredient, or EXIT in the terminal.");
message("Entering the *FLOUR SHOP*.\nType TAKE (UP ARROW) to take the ingredient,\nor EXIT (DOWN ARROW) in the terminal.");
} else {
printf("not a valid building name");
exit(EXIT_FAILURE);
......@@ -259,7 +259,7 @@ void consume_ingredients(map* m) {
void enter_main_building(game_instance* game) {
map* m = create_building_map(game, "crepes", crepes_shop_map, 0);
message("Welcome to the *CREPE SHOP*.\nType GIVE to give an ingredient, COOK to make a crepe, or EXIT in the terminal.");
message("Welcome to the *CREPES SHOP*.\nType GIVE (UP ARROW) to give an ingredient,\nCOOK (A) to make a crepe,\nor EXIT (DOWN ARROW) in the terminal.");
// infinite command loop until exit
command* command;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment