xhads/source/deity.adb

34 lines
1.2 KiB
Ada
Raw Normal View History

-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
--
-- GNU General Public Licence (version 3 or later)
with core;
2024-02-15 21:03:09 -05:00
package body deity is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sprite : array (enumeration) of core.sprite;
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------
2024-05-15 06:30:40 -04:00
procedure configure is
begin
core.echo (core.comment, "Configuring deity components...");
--
for index in enumeration loop
sprite (index) := core.import_sprite (core.folder & "/game/deity/" & enumeration'image (index) & ".png", 4, 1);
2024-05-15 06:30:40 -04:00
end loop;
end configure;
------------------------------------------------------------------------------------------
2024-05-15 06:38:53 -04:00
procedure draw (index : in enumeration; x, y : in integer) is
2024-02-15 21:03:09 -05:00
begin
2024-05-15 06:38:53 -04:00
core.draw (sprite (index), x, y);
2024-02-15 21:03:09 -05:00
end draw;
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end deity;