xhads/source/skill.adb

27 lines
879 B
Ada
Raw Normal View History

with core, ui, skill;
2024-02-15 21:03:09 -05:00
use skill;
package body skill is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
procedure configure is
begin
for index in codex
loop
icon (index) := core.load_sprite ("./sprite/skill/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
end loop;
end configure;
------------------------------------------------------------------------------------------
procedure draw (index : in codex; x, y : in integer) is
2024-02-15 21:03:09 -05:00
begin
core.draw (icon (index), x, y);
2024-02-15 21:03:09 -05:00
end draw;
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end skill;