Добавил документацию и лицензию

This commit is contained in:
SkrinVex
2025-12-25 17:16:57 +05:00
parent 47368b374f
commit 70bbef315f
4 changed files with 198 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
int coins = 100;
string playerName = "Alex";
// Коментприй
void showStats() {
print("--- Stats ---");
print("Player: " + playerName);
print("Coins: " + coins);
}
void mainLogic() {
print("Welcome to Fox Game!");
showStats();
print("You found a chest! Adding 50 coins.");
coins = coins + 50;
showStats();
print("Enter new name:");
playerName = input();
print("Updated profile:");
showStats();
}
void init() {
print("Initializing libs...");
}
+30
View File
@@ -0,0 +1,30 @@
{
include("script.fox");
// Глоб. Переменные
string Player = "Artem";
int hpplayer = 100;
int level = 1;
int usr_input = 0;
void Hello() {
print("Привет, " + Player + "!");
print("Тебе предстоит пройти это подземелье");
}
Hello();
void ShowStats() {
print("-----------Статистика-----------");
print("Имя игрока: " + Player);
print("Здоровье: " + hpplayer);
print("Уровень: " + level);
}
ShowStats();
usr_input = input();
if (usr_input == 1) {
init();
} else {
print("Не найдено действие для этого ввода.");
}
}