소스 검색

Minor refactoring of deity data...

master
부모
커밋
7ba21d2a81
5개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +1
    -1
      source/core.adb
  2. +3
    -3
      source/deity.adb
  3. +1
    -1
      source/deity.ads
  4. +3
    -1
      source/main.adb
  5. BIN
      sprite/deity/AEZORA.png

+ 1
- 1
source/core.adb 파일 보기

@@ -161,7 +161,7 @@ package body core is
this.states := states;
--
if this.width = 0 or this.height = 0 then
echo (failure, "Sprite not imported: " & file_path);
echo (warning, "Sprite not imported: " & file_path);
end if;
--
return this;


+ 3
- 3
source/deity.adb 파일 보기

@@ -17,15 +17,15 @@ package body deity is
core.echo (core.comment, "Configuring deity components...");
--
for index in enumeration loop
sprite (index) := core.import_sprite ("./sprite/deity/" & core.uppercase (enumeration'image (index)) & ".png", 4, 1);
sprite (index) := core.import_sprite ("./sprite/deity/" & enumeration'image (index) & ".png", 4, 1);
end loop;
end configure;

------------------------------------------------------------------------------------------

procedure draw (value : in enumeration; x, y : in integer) is
procedure draw (index : in enumeration; x, y : in integer) is
begin
null;
core.draw (sprite (index), x, y);
end draw;

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


+ 1
- 1
source/deity.ads 파일 보기

@@ -45,7 +45,7 @@ package deity is

procedure configure;

procedure draw (value : in enumeration; x, y : in integer);
procedure draw (index : in enumeration; x, y : in integer);

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



+ 3
- 1
source/main.adb 파일 보기

@@ -5,7 +5,7 @@
pragma ada_2012;

--~with core, ui, effect, attribute, skill, resource, faction, might, magic, equipment, unit, construction, chad, deity, world, ai;
with core, ui, effect, attribute, skill, resource, faction, material, magic, equipment, unit, construction, chad, world;
with core, ui, effect, attribute, skill, resource, faction, deity, material, magic, equipment, unit, construction, chad, world;

with ada.strings.unbounded;
use ada.strings.unbounded;
@@ -198,6 +198,7 @@ begin
material.configure;
equipment.configure;
unit.configure;
deity.configure;
construction.configure;
chad.configure;
world.configure;
@@ -307,6 +308,7 @@ begin
--~might.menu (0, 0, true);
--
chad.draw_alice;
deity.draw (deity.AEZORA, 300, 300);
--
ui.write (framerate'image, window_width - 5 * core.icon + 3, window_height - 27);
--


BIN
sprite/deity/AEZORA.png 파일 보기

Before After
Width: 128  |  Height: 64  |  Size: 1.8KB Width: 128  |  Height: 64  |  Size: 1.8KB

불러오는 중...
취소
저장