꼬반

[1 Day] Fun Game Development with AI

Created: 2024-11-08

Created: 2024-11-08 17:26

I'm back with a new project.

I learned a lot from the previous project, so this time I decided to establish the structure from the beginning.

I created a new thread and started with the following questions.

Q1. I'm going to create a game using javascript, html, and css.


Q2. The basic structure is as follows: The game starts in a village. The village has an inn (rest to recover HP and mana), a shop (buy and sell general consumables), a guild (quests and skills), a blacksmith (create, buy, and sell weapons and armor), and a dungeon (100 floors underground, with monsters on each floor, mini-bosses every 5 floors, floor bosses every 10 floors, and a final boss on the 100th floor).
A2. I see! It's a very interesting game concept. I'll suggest some directions to further concretize and implement the structure of this game. ##Game Structure and Functions ###1. Village ####Inn - Function: A place where players can recover HP and mana by resting. - Implementation: A function that initializes the player's HP and mana when a button is clicked. ####Shop - Function: A place to buy and sell consumables. - Implementation: - Creates an inventory UI to display the item list. - Implements buy and sell functions (item price setting and gold management). ####Guild - Function: Provides quests and skill acquisition. - Implementation: - Quest list and quest acceptance/completion functions. - A system that allows you to learn skills through experience and gold. ####Blacksmith - Function: Creates, buys, and sells weapons and armor. - Implementation: - Item creation function based on crafting recipes. - Weapon and armor purchase/sale interface. ###2. Dungeon - Structure: A 100-floor underground dungeon. - Combat: Battles with monsters on each floor. - Implementation of the battle system (player and monster HP, attack power, etc.). - Bosses: Mini-bosses every 5 floors, floor bosses every 10 floors, and the final boss on the 100th floor. - Implementation of bosses with special abilities and patterns. - Rewards: Reward system for clearing each floor and boss. ##Implementation Plan ###HTML/CSS - Designs the UI for each location (inn, shop, etc.) and the dungeon. - Styles the locations and characters using CSS. ###JavaScript - Creates objects to manage the game's state (player's HP, gold, inventory, etc.). - Implements the functions of each location (item purchase, skill acquisition, etc.) as functions. - Creates a game loop to move through the dungeon floors and conduct battles. ##Additional Considerations - Save Function: A function to save and load game progress. - Random Elements: Adds randomness to monster appearances and loot to increase the fun of the game. - Sound and Graphics: Adds sound effects and graphic elements to enhance the game's immersion. Based on this basic structure, the game can be gradually expanded by adding new functions and content. Enjoy game development and incorporate creative ideas!

By asking these questions, I explained the overall structure to the AI, and I completed the initial setup as follows.

[1 Day] Fun Game Development with AI

Looks better than the last project, right?.img


From here, I'll start another challenge.

(Additional) I don't know why... after doing this for a few days, I feel like my skills have improved. Or maybe I've gotten better at using AI, haha.
I added a character creation event at the start (creating event.js for future event management), added an inventory to the right, and gave a (small) healing potion as a gift when creating a character. I also implemented its use. And as I felt before, log output is used in many places, so I separated the log window and log output into console.js to handle the output.
So far, everything is working fine. Tomorrow I'll add basic combat with monsters. Combat is tricky; if you don't think it through, it's easy to mess it up. That's all for today. I'll see you tomorrow with a new post!

[1 Day] Fun Game Development with AI

You need to use AI well!.img


Comments0