gilded-senior

byДавид

Промт для ИИ-агентов: Роль: Ты — Senior HTML5 / Game Developer, специализирующийся на изометрических 2.5D играх для мобильных устройств. Задача: Напиши полный, готовый к запуску код браузерной игры под названием «Жизнь» (атмосферный симулятор выживания в украинской малосемейке). Код должен быть оптимизирован под мобильные телефоны и скомпонован в один HTML-файл (включая CSS, Canvas 2D / JS). 🎨 Графический стиль и Вид: Вид: Изометрия / 2.5D (вид сверху под углом, как в Project Zomboid, Sims 1 или Fallout). Атмосфера: Реалистичная, мрачная эстетика панельной малосемейки — облупленная зелёная/синяя краска на стенах, мусор, атмосферное освещение. 📱 Управление (Mobile-First): Левая часть экрана: Виртуальный джойстик для перемещения персонажа. Правая часть экрана: Кнопка «Действие» (взаимодействие с объектами/NPC) и кнопка «Инвентарь/Статус». 🏙️ Сеттинг и Игровой процесс: Цель игры: Прожить 100 дней, начиная с 1 июня (1-й день лета). Локация: 9-этажный дом-малосемейка (один подъезд, длинные коридоры). Главный герой: Живёт на 7 этаже в квартире 125. Устройство квартиры: Коридор, Кухня, Спальня с рабочей мебелью: Холодильник: хранение и употребление еды. Кровать: функция сна (восстановительный пропуск времени). Телевизор: при включении выводит бегущую строку с текстовыми новостями дня внизу экрана. Хобби: возможность порисовать (проводит время). 📊 Интерфейс и 3 Хотбара (Индикатора): Здоровье (HP): Падает, если персонаж не ест. Сила (Выносливость): Тратится при подъёме по лестнице на 7 этаж пешком. Вонь: Заполняется со временем. При 100% экран накладывает полупрозрачный зелёный фильтр (эффект духоты), но персонаж не погибает. ⚙️ Механики дома и Мира: Лифт: Работает только первые 10 дней. На 11-й день лифт ломается навсегда — игроку приходится ходить на 7 этаж пешком через лестницу, расходуя шкалу «Силы». Крыша: Можно подняться на крышу дома, но при выходе моментально выписывается текстовый штраф 1900 гривен (списываются из бюджета игрока). Межэтажные пролёты: Днём и вечером на лестницах стоят соседи (курят, общаются, пьют). При клике/нажатии «Действие» они выдают случайные реплики. Стук в двери: В любую квартиру на этаже можно постучать. С шансом 50% открывает случайный жилец (пьяный, девушка, суровый мужик) и произносит случайный диалог. Магазин 41: Выход из подъезда ведёт в пристройку к дому («Магазин 41»). В нём за гривны покупаются еда, сигареты и алкоголь. 💼 График Работы 2/2: Расписание: 2 дня рабочих, 2 дня выходных. Смена длится с 07:00 до 18:00. Стоимость проезда: Маршрутка стоит 20 гривен в одну сторону. Оплата: Если персонаж выспался перед сменой: 1000 грн (минус 20 грн на проезд). Если пошёл сонный: 100 грн (минус 20 грн на проезд). Симуляция смены: При отправке на работу включается чёрный экран на 10 секунд. Вверху отображаются ускоренные часы (от 07:00 до 18:00) и воспроизводятся фоновые звуки/текстовые эффекты сборов, поездки на автобусе и работы. 🛠️ Требования к коду: Выдай полностью автономный, чистый HTML/JS файл, который запускается в любом мобильном браузере. Реализуй плавную изометрическую отрисовку стен, полей и объектов на Canvas 2D. Добавь обработку тач-событий (Touch Events) для сенсорного управления.

Landing
Landing

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 5

System Requirements Document for gilded-senior

Introduction

The project "gilded-senior" is a mobile-optimized isometric 2.5D survival simulation game set in a Ukrainian apartment. The game is designed to provide an atmospheric and realistic experience of surviving in a typical Ukrainian apartment block, with detailed mechanics and touch controls optimized for mobile devices.

System Overview

The "gilded-senior" project aims to deliver a standalone HTML5 game that runs smoothly on mobile browsers. The game will feature a realistic, atmospheric aesthetic with isometric 2.5D graphics, simulating life in a Ukrainian apartment block. The gameplay involves surviving for 100 days, managing resources, and interacting with the environment and NPCs.

Page 2 of 5

Functional Requirements as Story Points

  • As a Player, I should be able to control the character using a virtual joystick on the left side of the screen for movement.
  • As a Player, I should be able to interact with objects and NPCs using an "Action" button on the right side of the screen.
  • As a Player, I should be able to access my inventory and status using a dedicated button on the right side of the screen.
  • As a Player, I should be able to survive for 100 days starting from June 1st, managing health, stamina, and odor levels.
  • As a Player, I should be able to navigate a 9-story apartment building, with specific interactions on each floor.
  • As a Player, I should be able to manage my character's needs, such as eating, sleeping, and engaging in hobbies.
  • As a Player, I should be able to experience dynamic events such as the elevator breaking after 10 days.
  • As a Player, I should be able to interact with neighbors and experience random dialogues.
  • As a Player, I should be able to shop for necessities at "Shop 41" using in-game currency.
  • As a Player, I should be able to work on a 2/2 schedule, with different outcomes based on the character's rest status.

User Personas

  • Player: The primary user who interacts with the game, managing the character's survival and engaging with the environment.

Core User Flows

  • Player starts the game -> Controls character using virtual joystick -> Interacts with objects/NPCs using action button -> Manages inventory/status -> Navigates apartment building -> Engages in daily survival tasks -> Experiences dynamic events -> Completes work schedule -> Shops for necessities -> Survives for 100 days.
Page 3 of 5

Visuals Colors and Theme

  • primary: #2E8B57 (Sea Green)
  • primary_light: #66CDAA (Medium Aquamarine)
  • secondary: #4682B4 (Steel Blue)
  • accent: #FF4500 (Orange Red)
  • highlight: #FFD700 (Gold)
  • bg: #F5F5F5 (White Smoke)
  • surface: #FFFFFF (White)
  • text: #000000 (Black)
  • text_muted: #696969 (Dim Gray)
  • border: #D3D3D3 (Light Gray)

Signature Design Concept

The landing page of "gilded-senior" will feature an interactive isometric apartment building. Users can click and drag to rotate the building, revealing different floors and rooms. Each room will have animated elements that react to user interactions, such as lights turning on or off and characters moving within the space. This interactive model will provide an engaging overview of the game's environment, enticing users to explore further.

Landing Hero Motion Brief

The hero section will feature a continuous loop of the apartment building's exterior, with windows lighting up and shadows moving to simulate the passage of time. As users interact, they will see characters moving within the rooms, highlighting the dynamic nature of the game world. The animation will be built using motion/react for smooth transitions and interactions.

Page 4 of 5

Interaction Model & Motion Direction

The landing page will use an "animated" interaction model, with moderate scroll-triggered reveals and hover transitions. The hero section will include a continuous 2D motion loop, enhancing the storytelling aspect of the game.

Non-Functional Requirements

  • The game must run smoothly on mobile browsers without requiring additional plugins.
  • The HTML file should be self-contained, including all necessary CSS and JavaScript.
  • The game should support touch events for intuitive mobile controls.

Tech Stack

  • Frontend: HTML5, CSS, JavaScript (Canvas 2D)
  • Backend: Not applicable (single HTML file)
  • Database: Not applicable (single HTML file)
  • AI Models: Not applicable

Assumptions and Constraints

  • The game will be optimized for mobile devices, specifically targeting modern mobile browsers.
  • The game will be delivered as a single HTML file for ease of distribution and use.
Page 5 of 5

Glossary

  • Isometric 2.5D: A graphical projection that simulates three dimensions on a two-dimensional plane.
  • NPC: Non-Playable Character, characters in the game that the player can interact with.
  • HUD: Heads-Up Display, the part of the game interface that displays important information to the player.
Landing design preview
Landing: View Info
Landing: Start Game
Apartment: Move Character
Apartment: Use Action
Apartment: Check Inventory
Kitchen: Eat Food
Bedroom: Sleep
Bedroom: Draw Hobby
Elevator: Ride Elevator
Stairwell: Climb Stairs
Stairwell: Talk Neighbor
Roof: Access Roof
Shop41: Buy Items
Work: Start Shift
Landing design preview
Landing: View Info
Landing: Start Game
Apartment: Move Character
Apartment: Use Action
Apartment: Check Inventory
Kitchen: Eat Food
Bedroom: Sleep
Bedroom: Draw Hobby
Elevator: Ride Elevator
Stairwell: Climb Stairs
Stairwell: Talk Neighbor
Roof: Access Roof
Shop41: Buy Items
Work: Start Shift