Experimental minimal terminal rogue-like game in Ada programming language. I used to write a lot of Ada programs some time ago, then went in full C and assembly mode, and came back to Ada...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.0KB

  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
  3. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. -- Xabina is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either
  5. -- version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
  6. -- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. with core;
  9. package player is
  10. ------------------------------------------------------------------------------------------
  11. type variable_type is
  12. record
  13. --~x : map_width := 0;
  14. --~y : map_height := 0;
  15. x : core.screen_width := 0;
  16. y : core.screen_height := 0;
  17. health : natural := 0;
  18. armour : natural := 0;
  19. mana : natural := 0;
  20. stamina : natural := 0;
  21. end record;
  22. ------------------------------------------------------------------------------------------
  23. data : variable_type;
  24. ------------------------------------------------------------------------------------------
  25. procedure render;
  26. procedure move_up;
  27. procedure move_down;
  28. procedure move_left;
  29. procedure move_right;
  30. ------------------------------------------------------------------------------------------
  31. end player;