Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagomajesk/battler
An experimental CTB battler implementation using Elixir
https://github.com/thiagomajesk/battler
elixir game game-development liveview phoenix rpg
Last synced: 3 months ago
JSON representation
An experimental CTB battler implementation using Elixir
- Host: GitHub
- URL: https://github.com/thiagomajesk/battler
- Owner: thiagomajesk
- License: agpl-3.0
- Created: 2024-04-28T00:22:20.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-04-28T03:11:29.000Z (10 months ago)
- Last Synced: 2024-04-29T02:16:59.750Z (10 months ago)
- Topics: elixir, game, game-development, liveview, phoenix, rpg
- Language: Elixir
- Homepage: https://thiagomajesk.github.io/
- Size: 15 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Battler
An experimental CTB battler implementation using Elixir. Read the post: [How I created a JRPG battler with Elixir](https://thiagomajesk.github.io/posts/2024-04-27-how-i-created-a-jrpg-battler-with-elixir/).
![](battler-demo.gif)
## Disclaimer
This is just a demo project and did in my spare time and by nature it's highly experimental. It's sole purpose is to demostrate the available techniques one can use to achieve a similar goal using Elixir, Phoenix and LiveView. Many bits in this project are not yet implemented (and may never be) and its left to the readers imagination to fill in the gaps, the code is made available as is. Here are some of the missing parts:
- Implement the enemy attacks
- Apply different effects for each skill
- Display skill effects in the UI
- Exit battle when one party defeats the other## Running the project
To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.