Hey developers,
I’m currently working on a concept and wanted to gather some feedback from the community.
Would you be interested in an API-driven game engine service that handles all the heavy lifting of core combat mechanics for arena or tactical games?
How it works:
What you manage on your backend: User authentication, profiles, game sessions, database storage, and receiving/rendering the API data on your client side (UI/UX, animations, graphics).
What the API engine handles: Character stats, skill execution, damage calculations, cooldowns, status effects (buffs/debuffs), energy management, and turn resolution.
Essentially, the API server acts as your authoritative combat backend. It tells you whose turn it is, the exact status of all characters, remaining energy, active effects, and current cooldowns.
Example API calls:
When a player makes a move (e.g., clicking a skill button) or when you need to create in your own admin-panel, your backend simply forwards the action to the engine via a clean API:
POST /api/v1/characters/
Authorization: Bearer ADMIN_TOKEN
Content-Type: application/json
{
"key": "naruto",
"group": "village_x",
"skills": [
{
"key": "shadowclones",
"group": "chakra",
"type": "buff",
"target": "self",
"cooldown": 4,
“cost“: {
"black": 1
},
"effects": [
{
"type": "damage_reduction",
"value": 15,
"duration": 3
}
]
},
{
"key": "rasengan",
"group": "chakra",
"type": "damage",
"target": "single",
"cooldown": 1,
“cost“: {
"blue": 1,
"black": 1
},
"effects": [
{
"type": "stun",
"duration": 1
}
]
}
]
}
------------------------------------------
POST /api/v1/battles/123/actions
Authorization: Bearer BATTLE_TOKEN
Content-Type: application/json
{
"actions": [
{
"character": "naruto",
"skill": "rasengan",
"target": "kakashi"
}
],
"black_energy_used": {
"white": 1
}
}
For the combat. The engine takes care of the complex rule sets. For instance, if Rasengan costs 1 Blue Chakra and 1 Black Chakra:
The engine automatically deducts the automatic resource (Blue Chakra) from the character's pool.
You only need to specify optional resource allocations (like which specific Black Chakra was spent).
The engine validates turn order, checks if it's currently the correct player's turn, verifies target availability, and resolves the action instantly.
P.S.
Who are these people giving this thread downvotes? ;D Do you even understand how a webdeb workflow works, or are you just AI users?