]> git.lizzy.rs Git - dungeon_game.git/commitdiff
Merge branch 'master' of https://github.com/EliasFleckenstein03/dungeon_game
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 14 Jun 2021 08:20:58 +0000 (10:20 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 14 Jun 2021 08:20:58 +0000 (10:20 +0200)
1  2 
README.md

diff --cc README.md
index 712f5ebbc05a60920eb5867472bbbd102c49848e,e003dd9f244d2d849e635937819366bddbd37637..a9ca55bba30140064f9ff3c3eb1ef61c2c294658
+++ b/README.md
@@@ -4,9 -4,9 +4,9 @@@ A small but flexible dungeon crawler wr
  You can easily create plugins for the game by putting a new folder into plugins/ with the name of your plugin and then compiling your code into a shared library placed inside this folder named "<plugin name>.so" (`-shared -fpic`).
  You might want to include the game.h file from plugins/game/game.h. Have a look into it to see available API. See the existing plugins for examples.
  
- Controls: WASD to move, Q to quit.
+ Controls: WASD to move, Q to quit, Space to shoot.
  
 -To build the loader and the plugins in the plugins/ folder, simply type `make` or `make all`. There are separate targets for the loader (`dungeon`) and the plugins. All Makefiles that are placed in plugin directories, so you might want to include a makefile in your plugin. The plugins target simply depends on ${PLUGINS}, so just add things to this in your plugin Makefile to add them to the plugins target (usually your plugin.so) 
 +To build the loader and the plugins in the plugins/ folder, simply type `make` or `make all`. There are separate targets for the loader (`dungeon`) and the plugins. All Makefiles that are placed in plugin directories, so you might want to include a makefile in your plugin. The plugins target simply depends on ${PLUGINS}, so just add things to this in your plugin Makefile to add them to the plugins target (usually your plugin.so)
  To run the loader, type `./dungeon`. It will load all plugins including the game itself dynamically and run the game.
  
 -Plugins are loaded in alphabethical order, with the exception of the game plugin that is loaded first. If you want to make a plugin that depends on another plugin, make sure the other plugin is loaded first by setting the name of your plugin accordingly. A cleaner solution to this is coming soon.
 +If you want to make a plugin that depends on another plugin (including the game itself), make sure to depend on that plugin. To add dependencies to a plugin, create a file named dependencies.txt in the plugin folder. Put the names of all plugins your plugin depends on into that file. You can use spaces or newlines as seperators.