clwars.lisp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (defvar *menu-splash* "
  2. ▄████████ ▄█ ▄█ █▄ ▄████████ ▄████████ ▄████████
  3. ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
  4. ███ █▀ ███ ███ ███ ███ ███ ███ ███ ███ █▀
  5. ███ ███ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███
  6. ███ ███ ███ ███ ▀███████████ ▀▀███▀▀▀▀▀ ▀███████████
  7. ███ █▄ ███ ███ ███ ███ ███ ▀███████████ ███
  8. ███ ███ ███▌ ▄ ███ ▄█▄ ███ ███ ███ ███ ███ ▄█ ███
  9. ████████▀ █████▄▄██ ▀███▀███▀ ███ █▀ ███ ███ ▄████████▀
  10. ▀ ███ ███
  11. ")
  12. #||
  13. # Description
  14. CL-Wars is a text based game made for fun, highly inspired by
  15. Space Trader and Drug Wars.
  16. In CL-Wars you are a rogue trader on the run from galatic
  17. security forces, and you must use the tools available to
  18. you to reach a safe haven on the edge of the galaxy.
  19. # Systems
  20. Stats
  21. - Health
  22. - Weapons Systems
  23. Money
  24. - Used to upgrade
  25. ||#
  26. ;; Actor in the game,
  27. ;; eg the player, an npc, etc
  28. (defstruct *actor*
  29. inventory ; Something representing goods held
  30. health
  31. mana)
  32. ;; This represents the goods market
  33. ;; as a whole
  34. (defstruct *market*)
  35. ;; https://stackoverflow.com/questions/4882361/which-command-could-be-used-to-clear-screen-in-clisp
  36. (defun cls()
  37. (format t "~A[H~@*~A[J" #\escape))
  38. (defun prompt-read (prompt)
  39. (format *query-io* "~a" prompt)
  40. (force-output *query-io*)
  41. (read-line *query-io*))
  42. (defun main ()
  43. (format t *menu-splash*)
  44. (format t "Press any key to start")
  45. (prompt-read "")
  46. (cls))