网页 综合 更新时间 2026-03-04 12:13:45

Adventure of javascript based MMORPG creation. - DEV Community

自动蜘蛛 dev.to 正文约 4058 字
Adventure of javascript based MMORPG creation. - DEV Community
This post is hidden in my dashboard long-long time ago. Because a 8 or nine years ago - fare before AI ages. I start to create a small RPG, based on older graphics, the time passed by and project start as react but later turn to nextjs/TS. Honestly now I don't using neither. But this is a bit of time travel how chaotic is my mindset that ages.
repo: (https://github.com/Pengeszikra/rogmor) live: (https://rogmor.vercel.app/)
Now I vibecode even a much smaller RPG with gemini CLI: (https://dev.to/pengeszikra/the-royal-gazette-a-single-line-noble-intrigue-20nn)
Long-long time ago I decided to create some cool MMORPG program ... but I failed! Meanwhile I do lot of different jobs from seller (in RPG shop), graphic designer to front end developer. In a last few years my focus on react and functional programming, so now I can start write another (easy) MMORPG game.
Maybe after famous TODO application, the MMORPG is the next indie development goal, especial when we would you like to be a full stack developer.
I have to admit that I have been writing this post for more than a year. So you follow how improving my workflow by the time
My plan was don't spend too much time with graphic and RPG element. I grab out one of my old graphic set, and convert to sprite sheet. Because with react framework basic output is HTML, instead concentrate on program architect.
First of all a little function which one is essence of rpg math:
For example, if we would like level cap set to 60, and best value on that level is near 80k, then after few minutes tweak get the next result, which means we can control our result by mod value settings:
MMORPG program is fare better case for make well strict architect decisions compared by ordinary TODO application. I try to list my decisions:
Question is: How can I handle quite complex UI by minimal state, maybe: json {root: '', modal: ''}
Then link and openModal solve this single page app UI main state.
I choice multi hero managament system instead single one because this means don't need to too much details for items.
Probably RPG game game mechanic is quite complex so lets try it, it seems to work on early iteration, but I tell the truth it is so over engineered!
The new gamechenger framework is the NextJs which one is capable to made client and server side code with one language ... and one repo so this is what I waiting so long.
For multiuser application is deffinetly need some database. In old time I think about own VPN server with capable to run database and server side code. But NextJS as gamechanger framework allow to me whole code written in one repo. Just the database still as question. I found the mongoddb cloud good place to reach my data from anywhere. So it is meet needs.
Decide between the callbag (functional js library) and redux-saga (declarative generator extension for react), so winner is SAGA. So basic turnbased encounter core code looks like this:
Each hero have own skillset, for simplify the coding this skills, I maded a little script language which looks like Tailwind but this result is very different:
after put together slas script with saga the combat controll logic looks like this:
labelled while help me to simplify the saga.
Suddenly I meet the crazy AI ChatGPT so my first stepp is I implementing to the blog part.
I was begin implement chatGPT to my blog section. If I start some question with ::, then prompt send to AI api and get back the answer as sage told something.
Second thing which was implemented is openAI DALL-E-2 image generatior page as show below. Even this post cover image is also generated by the program, and extended image with DALL-E editor
Maybe I will create additional game UI element design with DALL-E help.
DEV Community — A space to discuss and keep up software development and manage your software career
Built on Forem — the open source software that powers DEV and other inclusive communities.
Made with love and Ruby on Rails. DEV Community © 2016 - 2026.
We're a place where coders share, stay up-to-date and grow their careers.
访问原文 返回搜索 https://dev.to/pengeszikra/adventure-of-javascript-based-mmorpg-creation-5909
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。