2024-02-22 03:29:04 -05:00
|
|
|
with core, ui, faction, chad;
|
|
|
|
|
|
|
|
use chad;
|
|
|
|
|
|
|
|
package body chad is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
procedure configure is
|
|
|
|
begin
|
2024-03-11 08:42:25 -04:00
|
|
|
core.echo (core.comment, "Configuring chad components...");
|
|
|
|
--
|
2024-02-22 03:29:04 -05:00
|
|
|
for index in codex
|
|
|
|
loop
|
2024-03-17 16:45:46 -04:00
|
|
|
--~sprite (index) := core.import_sprite ("./sprite/chad/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
|
2024-02-22 03:29:04 -05:00
|
|
|
null;
|
|
|
|
end loop;
|
|
|
|
end configure;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
procedure draw (index : in codex; x, y : in integer) is
|
|
|
|
begin
|
|
|
|
core.draw (sprite (index), x, y);
|
|
|
|
end draw;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end chad;
|