gdquest-demos / godot-open-rpg Goto Github PK
View Code? Open in Web Editor NEWLearn to create turn-based combat with this Open Source RPG demo ⚔
Home Page: https://youtube.com/c/gdquest/
License: MIT License
Learn to create turn-based combat with this Open Source RPG demo ⚔
Home Page: https://youtube.com/c/gdquest/
License: MIT License
Depends on #3: check for victory/loss when a battler dies
Add support for grid-based movements when outside of combat
Code a pawn/character that can follow the player. As it's grid-based motion, it just needs to reproduce the player's movement sequence with a one, two, three steps delay (e.g. if there's 4 party members - it's like the game snake).
This pawn shouldn't collide with the player. Also look at the Battler and BattlerAnim/BattlerSkin(?) scenes: I want us to always have the animated character skins separate from the controllers themselves so that we can swap them anytime, and later work in parallel with artists.
I'm not sure how to best track the player's motion. I would use a signal, e.g. moved(direction : Vector2)
, and store the last X moves in an array/stack/heap, erasing them as you go. Feel free to suggest something better!
You can use a YSort node to sort all the characters on the map. Don't worry about conflicts if both pawns end up on the same cell for now.
Also create an NPC that takes one cell and that the player can interact with. The job is mostly to port your work on the grid-based & conversation demo to Godot 3.1, integrating it in here.
With the implementation of skills - see #16 - battlers will now have mana to spend on skills. Thus, the mana should also be shown in the UI, below the life bar.
Create a class that we can use to store all the data related to a special attack a battler can use.
Should this class extend Resource or Reference? We'd use it to store only the data related to a skill (then another Object or Node could use the resource and provide functionality on the Battler, or render it in the UI).
See StartingStats
https://github.com/GDquest/godot-turn-based-rpg/blob/master/godot/combat/battlers/jobs/StartingStats.gd
Reuse the transition shader from https://github.com/GDquest/make-pro-2d-games-with-godot/
This is an issue to design and implement different actions, such as Healing, Magic, Item, Special (?).
We could do as it is now for the Attack. Nodes that implements actions.
I'd like to have a cursor in front of the battler, final fantasy style. Try to use the same anchor point you'll use to move to the battler upon attacking (Battler.position
)
We need some way to create groups of monsters to balance the foes the player will face. It's just lists of monsters to start with (e.g. two slimes and a porcupine), with some code to pick a random group among groups that should spawn in a given area on the map.
Currently there's no notion of formations in the game, front or back rows in combat. I think a basic system will be enough for this project.
Party and monsters appearing one after the other
This issue is about creating a base system for usable items, i.e. healing potions, attack potions, food, etc..
Make it possible to create a list of party members
Add a stream player node to the Game scene, that we can use to play background music. It should trigger playing the combat theme (assets/audio/bgm
) when an encounter starts (using the encounter signal).
Set the base art style for the characters, the background, and the UI elements for the Battleground
As that's the focus for v0.2 and the initial goal for this game project. We'll build up the map part with v0.3
I decided to start with character design. Next up is the battle background
Add the ability for the characters to gain experience when killing monsters, to level up when they reached a certain amount of experience, and to increase some stats when they level up.
A base class for any type of item (usable, equipable, etc..)
Following what we've been doing so far, I believe the data should be separate from functionality aka use resources for them.
I think the lifebar displays the amount of damage taken instead of the battler's health
Following on the work being done on the radial menu, the battle rewards screen needs some work as well
Whats the future of this project? There are currently no issues which makes me think that there is not much to be done here. If there is anything I could do, I would love to know!
To fix this, grid movement will need some changes. party members represented on the map should not spawn collision boxes, and should not be treated as regular actors.
Pieces of equipment for players.
Should they also restrict which jobs can equip them?
I'll be working on that today, before presenting the project at the Kyoto indies meetup tonight.
The last commit to the README.md saw the inclusion of the Covenant Code of Conduct (henceforth referred to a CCoC). I suggest switching a modified version of the GNU Kind Communications Guidelines (henceforth referred to as GKCG).
The CCoC not only adds unnecessary burden to the maintainers by requiring them to investigate any "unacceptable behavior", both directly related to the project and also on social media, but also forces upon them the "responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful."
This forces the maintainers to become the "thought" police for all contributors which is as ridiculous as it is unmaintainable and allows for the development of "witch hunts" where people go out of their way to find "unacceptable behavior" to have code rejected.
This is not a theoretical problem and examples can be seen here.
The GKCG, on the other hand, provides similar requirements for interactions, but doesn't encourage witch hunts or create an unneeded burden on the maintainers of the project. This will provide a more welcoming environment to contributors who do not have to fear that a tweet from 5 years ago will get code removed and contributions banned from the project.
Modifications will have to be made to fit this project. All references of GNU and related software will need to be changed, for example, but the rest of the guidelines for interacting should remain in place.
It's possible my skill set is just too low for projects of this size, but I'm already having a hard time following what the code is doing as we slowly ramped up.
Would it be possible, or even desirable, to have some sort of guide that explains how the code interconnects?
If so, I think starting it early would be good so it doesn't get overwhelming later.
This might be a good use case for the wiki.
Currently, during battle, the actor can freely move around the map. This allows the player to initiate multiple battles at the same time and causes a disconnect since the player appears to have randomly teleported while in battle.
Like https://github.com/GDquest/Blender-power-sequencer/blob/master/changelog.md, to keep track of the project's growth
Currently the characters can only attack, because they only have this action available. This task is about adding support for using Magic in Combat, or from a menu. See #15 for the data part of this task
With milestone 0.2 almost done, the next area to work on is the map.
Godot's tile map editing tools are still lacking, so I suggest that we use the Tiled map editor with the imported from vnen.
Now there's all the design work left to do to decide on the map creation pipeline. Do we try to constrain the number of layers a map should use come on which objects on properties should we use in Tiled?
If anyone has good experience with that, your feedback would you welcome. If not I'll try to find time to work on a prototype map.
Currently the Grid.gd
is responsible for handling encounters and objects interactions, this shouldn't be its responsibility, it should only handle if a pawn can or can't move to a given cell.
What I think what we could do is:
In the LocalMap
we handle these events by telling if there is any encounter, an object to be loot, an NPC interaction, a Dialogue to start.
So this whole block of code on Grid.gd
will become something like:
var cell_target_type = get_cellv(cell_target)
if not cell_target_type == CELL_TYPES.EMPTY:
var cell_pawn = get_cell_pawn(cell_target)
emit_signal("cell_occupied", cell_pawn)
return
return update_pawn_position(pawn, cell_start, cell_target)
Then on LocalMap
we handle the event based on the Pawn.type
, in a method which the Grid.cell_occupied
signal is connect to
Allow the user to configure the possible dropped items from monsters and their rates.
Gladly the project is growing at a good pace, in these times we are very likely to start a solution for something being worked on already, or even stepping on eachother's work. We already got some, e.g. #54
I propose to make a simple, automated, project to keep track of issues and PRs that are:
A menu to display the items that the player currently has with him.
I believe that it shouldn't be complex, just a list should do the trick.
Add ability to cancel enemy selection and to go back to the command select menu
In a lot of JRPGs, when a unit is attacked, the damage that was done would appear giving the player an easy to digest number (as opposed to doing mental math on the spot). This is also done for healing, status effects, etc.
I think this would be a good addition.
As a mock-up I made:
Speaking with faildozer on Discord, he suggested adding a canvas layer for these popups and emitting a signal to the canvas layer which I think is a great idea.
The monsters should be able to target their opponents based on flexible criterias:
Etc. I am not sure how to best do this so every option available on the monsters not hardcoded in the base class, without creating a complex gambit system or something like that. Feedback and ideas welcome!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.