This repository was archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Technical things
reversee edited this page Dec 26, 2021
·
5 revisions
simpleRPG has no modding api or enigne at the moment, it is planned to change in future. has a modloader, and modding it IS REALLY EASY trust me...
You can check out official modrepo for reference on how to do stuff.
But be careful! modloader is in really early stage of development!
There are some files in this repository, here is list of them and explanation! (for main branch)
-
battletest.py
- The 'launcher' for this game,
- It launches battle with 2 specified arguments in
battle()
- The first argument specifies player entity, and the second - enemy.
-
lib/libbattle.py
- Library for creating battles!
- Depends on:
lib/libdraw.py
lib/libmagic.py
lib/libinput.py
lib/randomthings.py
assets/items.py
-
entitylogic/silvermonster
(temporary)
- How to create custom battle:
- import libbattle using
from lib.libbattle import *
- import libentity, and other dependencies for entities
- call
battle(player, enemy)
- The battle should being!
- import libbattle using
-
lib/libdraw.py
- Library for drawing things.
- Functions:
-
drawBasicMenu(player, enemy, rounds)
- draw basic battle menu -
drawBattleMenu()
- draw battle menu options -
drawSpellMenu(player)
- draw spell menu -
bar(iteration, total, prefix, suffix)
- draw bar, (value, max value, custom prefix, custom suffix
-
-
lib/libentity.py
- Entities
-
lib/libinput.py
- Functions:
-
getUserInput()
- gets user input using Getch, and returns, q = 0, w = 1, e = 2, r = 4 and X or Z exits
-
- Functions:
-
lib/libinventory.py
- Deprecated, will be removed soon
- Used to translate item ids into spell names, and mana costs ( check libmagic.py for classes )
-
lib/libmagic.py
- Contains all Spells!
- Spell Types:
-
damage
- dealsvalue
damage. -
heal
- healsvalue
hp. -
curse
- makes posion-like effect, first hit deals (2*``value-5), and for next
duration``` - 1 rounds, deals ```value``` damage per round.
-
-
lib/randomthings.py
- Random functions for random things.
- Functions:
-
notImplemented( str )
( from branchvillagetest
) - says that thing is not implemented and returns after 1 second -
clearConsole()
- clears console for unix and nt based operating systems -
isStable()
returns 'stable' or 'unstable', based ingame()
class
-
- Has
game()
class that you can get version or other things of current build