Skip to content

Commit

Permalink
added option to use MYSQL for data persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
orion3dgames committed Jul 19, 2024
1 parent 8808b13 commit 5e17f3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# SQLite
# Mysql
DATABASE_HOST=localhost
DATABASE_DB=t5c
DATABASE_USER=root
DATABASE_PASSWORD=
DATABASE_PASSWORD=

# SQLLite
DATABASE_PATH=./database.db
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Building a basic multiplayer 3d top down rpg using babylon.js and colyseus
- multiplayer animated characters
- global chat (works accross zones)
- uses a navmesh for collision detection
- basic persistence with mysql lite
- player data can be saved with mysql lite / mysql
- basic enemies with simple AI behaviour (IDLE, PATROL, CHASE, ATTACK, DEAD)
- enemies can drop items (based on a loot table)
- 4 basic abilities ( sword attack, fireball, dot, heal )
Expand All @@ -37,6 +37,7 @@ Check out my devlogs on [https://dev.to/orion3d](https://dev.to/orion3d)
- Babylon.js 6.x.x [https://www.babylonjs.com/](https://www.babylonjs.com/)
- Colyseus 0.15.x [https://colyseus.io/](https://colyseus.io/)
- SQLite 3.x.x [https://www.sqlite.org/](https://www.sqlite.org/)
- Optionally, you can use MYSQL instead by updating the setting in src/shared/Config.ts

## How to run
- Run `npm run server-dev` to launch the server
Expand Down

0 comments on commit 5e17f3b

Please sign in to comment.