꼬반

[2 Day] Fun Game Development with AI

Created: 2024-11-08

Created: 2024-11-08 17:31

It's day 2. The amount of code and its complexity have been steadily increasing in just one day.

First, I reorganized the overall structure.

[2 Day] Fun Game Development with AI

So embarrassing...img


CSS, JS, and images are all located in separate folders.

I'm adding js files, separating them by function as much as possible.

To add battles in the dungeon, I added battle.js and monster.js.

I also modified the character creation process somewhat.

Based on the publicly available D&D5 rulebook, players can choose from 4 races/4 classes,

and stats are generated differently depending on race and class.

Monsters were also added based on the D&D5 rulebook, and when a battle occurs during exploration,

a roll is made using both sides' Dexterity to determine initiative, and then the battle begins.

You can assume that basic battles currently follow the D&D5 rules.
(The AI did it all…)

However, some minor modifications were necessary. When making battle judgments after exploration progress increases,

there was an issue with overlapping UI when battles occurred at 100% exploration, so

I changed it so that the battle check is performed first, and exploration progress increases after winning a battle.

[2 Day] Fun Game Development with AI

Ah, now monster illustrations will appear soon... maybe?.img


After that, I implemented a defeat screen and a restart function so that you can restart from the start screen, and in the process, I fixed some UI issues and some parts where proper checks weren't working depending on the game situation.


I added some more monsters from D&D5 and also added challenge ratings so that monsters with a challenge rating roughly similar to the dungeon's challenge level appear. (Incidentally, I just told the AI to add the challenge rating first, but it suggested the code and created it… AI is amazing!)


As always, you can test it at the address below!


Comments0