Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 строки
1.2KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. package body deity is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. sprite : array (enumeration) of core.sprite;
  8. ------------------------------------------------------------------------------------------
  9. procedure configure is
  10. begin
  11. core.echo (core.comment, "Configuring deity components...");
  12. --
  13. for index in enumeration loop
  14. sprite (index) := core.import_sprite (core.folder & "/game/deity/" & enumeration'image (index) & ".png", 4, 1);
  15. end loop;
  16. end configure;
  17. ------------------------------------------------------------------------------------------
  18. procedure draw (index : in enumeration; x, y : in integer) is
  19. begin
  20. core.draw (sprite (index), x, y);
  21. end draw;
  22. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  23. end deity;