Developing a JRPG

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
megalukes
Citizen
Posts: 94
Joined: Fri Jun 27, 2014 11:29 pm
Location: Brazil

Developing a JRPG

Post by megalukes »

I've been developing a small rpg game lately (something like Chrono Trigger/Final Fantasy V) and I've been wondering if you guys ever had some issues I'm having at the moment. My main issue with this kind of game is not programming itself, it's how to keep track of what's happening in the game. In a rpg game you need to manage dialogs, cutscenes, inventory, event flags and so on. How do you guys organize this stuff? The idea I've been working on so far is having a .lua file containing all the data of a single map (events, npcs, triggers, warps). So let's say I have a map called Map001.lua. Its data would be contained in a file called Map001_data.lua so both would interact to create the gameplay.

Any tips? This is my first experience creating an rpg using Love. I used to develop stuff in RPG Maker before so I don't have a game editor to ease all the work now.
Attachments
RPG Transitions.love
I added a small .love to show what I have already. It's not much though. It shows how I managed map transitions.
(433.33 KiB) Downloaded 277 times
User avatar
RainbowOverdose
Prole
Posts: 4
Joined: Sat Jan 30, 2016 12:37 pm
Location: Almería, Spain

Re: Developing a JRPG

Post by RainbowOverdose »

Serialization? You could use a txt file (or any other format, it's depends of serialization) containing all the data like dialogs and then simply load it to the Map001.lua.
Just my opinion, i have no idea about rpg really, and much less about file organization in those.
Ah, and there are some utility tools, i supose some should help.
i find this one particullary useful.
Life is a cycle that knows no end.
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: Developing a JRPG

Post by Kasperelo »

I've also been wondering how to structure all those things! Would also greatly appreciate an answer :)
User avatar
sanjiv
Citizen
Posts: 88
Joined: Mon Feb 27, 2012 5:11 am

Re: Developing a JRPG

Post by sanjiv »

I use "scenes." The scenes can then call upon other entities, like people, places, etc. This way if a place or person is affected in a previous scene, the current scene will automatically consider that effect.

So in the callback functions (like love.draw() and love.update(dt)), I have functions like game.scene.draw() and game.scene.update(dt). In order to switch between scenes, I set game.scene=newScene, and run game.scene.load(), or something like that.

(edit): For your project, each scene might always have a game.scene.map, game.scene.HUD, etc. You could even have game.scene.trigger={false,false,false} in order to affect things like game.scene.trigger[2] and stuff.
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: Developing a JRPG

Post by NightKawata »

Yeah, in regards to sanjiv: You could always look at something like RPG Maker 2003, and break it down.
Learn how it sets everything up, and figure out how to emulate that.

In reality, what he refers to is gonna be in RPGXP or RPGVX, but learning to break down how that entire flow works is gonna help you in the long run. Build a database akin to the ones used, and have ways to easily manage and build upon it.

Should be somewhat of a jumpstarter for ya.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 8 guests