2024-04-25 00:27:13 -04:00
|
|
|
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
|
|
|
|
--
|
|
|
|
-- GNU General Public Licence (version 3 or later)
|
|
|
|
|
2024-05-08 15:43:44 -04:00
|
|
|
with core;
|
2024-02-15 21:03:09 -05:00
|
|
|
|
|
|
|
package body deity is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2024-04-26 16:05:48 -04:00
|
|
|
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
|
2024-05-15 06:38:53 -04:00
|
|
|
sprite (index) := core.import_sprite ("./sprite/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;
|