项目作者: sidtheprince

项目描述 :
A text-based Lua RPG game
高级语言: Lua
项目地址: git://github.com/sidtheprince/Script.git
创建时间: 2018-10-20T12:15:09Z
项目社区:https://github.com/sidtheprince/Script

开源协议:

下载


Script logo

  1. Though this is a text-based Lua RPG game. I will add graphics to it when I complete the Dokun Engine.

Usage:

  1. require "main" -- inside lua
  2. -- or
  1. ./dokun main.lua # from the terminal (if using dokun)

Building:

Requires srdokun.

  1. ./glue ./srlua main.lua main # compiles into an executable

More examples:

  1. -- obtaining item and opening your bag
  2. potion:obtain() -- items: gold, potion, health_potion, mana_potion, dual_potion, sword
  3. Bag:open()
  4. -- getting item information
  5. potion:show_info()
  6. -- using and equiping items
  7. potion:use(player)
  8. player:equip(sword)
  9. -- storing your items away when bag is full
  10. Storage:store(potion)
  11. -- withdrawing items from storage
  12. Storage:withdraw(potion)
  13. -- getting item, gold, and exp, drops from monsters
  14. slime:drop(player) -- monsters: slime, slime_king, borg
  15. Bag:open()
  16. -- interacting with NPCs
  17. don:on_select(player) -- npcs: king, don
  18. -- battling monsters
  19. for i=1, 100 do player:hit(slime) end
  20. -- creating new class objects
  21. poop = Item:new()
  22. bag2 = Bag:new()
  23. player2 = Player:new()

Controls:

These only work while using dokun.

  1. Arrow keys - moving the player.
  2. Spacebar - interaction with NPCs.
  3. Number keys (1-10) - use item in bag.
  4. Z - zoom in (camera).
  5. X - zoom out (camera).
  6. ESC - exit game.

Documentation:

  1. coming soon!