diff options
Diffstat (limited to 'demo')
31 files changed, 471 insertions, 16 deletions
diff --git a/demo/Hex.gd b/demo/Hex.gd index 99bdbd2..029f6c3 100644 --- a/demo/Hex.gd +++ b/demo/Hex.gd @@ -1,7 +1,7 @@ #warning-ignore-all:unused_argument extends Tile -class_name Hex, "res://godot/Tile.png" +class_name Hex, "res://addons/hexgrid/Tile.png" var type : int = -1 var roads : int = 0 diff --git a/demo/Main.tscn b/demo/Main.tscn index 6fa7f31..6ac653f 100644 --- a/demo/Main.tscn +++ b/demo/Main.tscn @@ -1,11 +1,11 @@ [gd_scene load_steps=10 format=2] [ext_resource path="res://demo/Camera.gd" type="Script" id=1] -[ext_resource path="res://assets/Anke.otf" type="DynamicFontData" id=2] -[ext_resource path="res://assets/target.png" type="Texture" id=3] +[ext_resource path="res://demo/assets/Anke.otf" type="DynamicFontData" id=2] +[ext_resource path="res://demo/assets/target.png" type="Texture" id=3] [ext_resource path="res://demo/Map.gd" type="Script" id=4] [ext_resource path="res://demo/Los.gd" type="Script" id=5] -[ext_resource path="res://assets/tank.png" type="Texture" id=6] +[ext_resource path="res://demo/assets/tank.png" type="Texture" id=6] [ext_resource path="res://demo/Main.gd" type="Script" id=7] [sub_resource type="DynamicFont" id=1] diff --git a/demo/Map.gd b/demo/Map.gd index 22ad0fd..abfc231 100644 --- a/demo/Map.gd +++ b/demo/Map.gd @@ -2,17 +2,17 @@ extends Sprite signal hex_touched(pos, hex, key) -const MAPH : String = "res://assets/map-h.png" -const MAPV : String = "res://assets/map-v.png" -const BLOCK : String = "res://assets/block.png" -const BLACK : String = "res://assets/black.png" -const MOVE : String = "res://assets/move.png" -const SHORT : String = "res://assets/short.png" -const RED : String = "res://assets/red.png" -const GREEN : String = "res://assets/green.png" -const TREE : String = "res://assets/tree.png" -const CITY : String = "res://assets/city.png" -const MOUNT : String = "res://assets/mountain.png" +const MAPH : String = "res://demo/assets/map-h.png" +const MAPV : String = "res://demo/assets/map-v.png" +const BLOCK : String = "res://demo/assets/block.png" +const BLACK : String = "res://demo/assets/black.png" +const MOVE : String = "res://demo/assets/move.png" +const SHORT : String = "res://demo/assets/short.png" +const RED : String = "res://demo/assets/red.png" +const GREEN : String = "res://demo/assets/green.png" +const TREE : String = "res://demo/assets/tree.png" +const CITY : String = "res://demo/assets/city.png" +const MOUNT : String = "res://demo/assets/mountain.png" var drag : Sprite diff --git a/demo/Unit.gd b/demo/Unit.gd index 0b67053..e18ebff 100644 --- a/demo/Unit.gd +++ b/demo/Unit.gd @@ -1,7 +1,7 @@ #warning-ignore-all:unused_argument extends Piece -class_name Unit, "res://godot/Piece.png" +class_name Unit, "res://addons/hexgrid/Piece.png" func get_mp() -> int: return 2 diff --git a/demo/assets/Anke.otf b/demo/assets/Anke.otf Binary files differnew file mode 100644 index 0000000..c577d63 --- /dev/null +++ b/demo/assets/Anke.otf diff --git a/demo/assets/black.png b/demo/assets/black.png Binary files differnew file mode 100644 index 0000000..09a685d --- /dev/null +++ b/demo/assets/black.png diff --git a/demo/assets/black.png.import b/demo/assets/black.png.import new file mode 100644 index 0000000..c4ccf4e --- /dev/null +++ b/demo/assets/black.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/black.png-e51bb9446ed3e9a231bbefdd5d845a61.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/black.png" +dest_files=[ "res://.import/black.png-e51bb9446ed3e9a231bbefdd5d845a61.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/block.png b/demo/assets/block.png Binary files differnew file mode 100644 index 0000000..7704d65 --- /dev/null +++ b/demo/assets/block.png diff --git a/demo/assets/block.png.import b/demo/assets/block.png.import new file mode 100644 index 0000000..d93d59d --- /dev/null +++ b/demo/assets/block.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/block.png-7b666470ec7d1ed55123323983805a34.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/block.png" +dest_files=[ "res://.import/block.png-7b666470ec7d1ed55123323983805a34.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/city.png b/demo/assets/city.png Binary files differnew file mode 100644 index 0000000..35ef9a3 --- /dev/null +++ b/demo/assets/city.png diff --git a/demo/assets/city.png.import b/demo/assets/city.png.import new file mode 100644 index 0000000..8175df8 --- /dev/null +++ b/demo/assets/city.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/city.png-b5e144e6bc7635251820830d2b6c5a50.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/city.png" +dest_files=[ "res://.import/city.png-b5e144e6bc7635251820830d2b6c5a50.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/green.png b/demo/assets/green.png Binary files differnew file mode 100644 index 0000000..6970efc --- /dev/null +++ b/demo/assets/green.png diff --git a/demo/assets/green.png.import b/demo/assets/green.png.import new file mode 100644 index 0000000..fad21c4 --- /dev/null +++ b/demo/assets/green.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/green.png-6cabcf440c4bebeca5e9f1949a914b94.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/green.png" +dest_files=[ "res://.import/green.png-6cabcf440c4bebeca5e9f1949a914b94.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/map-h.png b/demo/assets/map-h.png Binary files differnew file mode 100644 index 0000000..732ef4a --- /dev/null +++ b/demo/assets/map-h.png diff --git a/demo/assets/map-h.png.import b/demo/assets/map-h.png.import new file mode 100644 index 0000000..7fd3434 --- /dev/null +++ b/demo/assets/map-h.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/map-h.png" +dest_files=[ "res://.import/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/map-v.png b/demo/assets/map-v.png Binary files differnew file mode 100644 index 0000000..3960ffc --- /dev/null +++ b/demo/assets/map-v.png diff --git a/demo/assets/map-v.png.import b/demo/assets/map-v.png.import new file mode 100644 index 0000000..3c082e1 --- /dev/null +++ b/demo/assets/map-v.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/map-v.png-f23934658a4a2f9eda7b09606fcff75d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/map-v.png" +dest_files=[ "res://.import/map-v.png-f23934658a4a2f9eda7b09606fcff75d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/mountain.png b/demo/assets/mountain.png Binary files differnew file mode 100644 index 0000000..ebc224b --- /dev/null +++ b/demo/assets/mountain.png diff --git a/demo/assets/mountain.png.import b/demo/assets/mountain.png.import new file mode 100644 index 0000000..1678f9b --- /dev/null +++ b/demo/assets/mountain.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/mountain.png" +dest_files=[ "res://.import/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/move.png b/demo/assets/move.png Binary files differnew file mode 100644 index 0000000..01db48d --- /dev/null +++ b/demo/assets/move.png diff --git a/demo/assets/move.png.import b/demo/assets/move.png.import new file mode 100644 index 0000000..94b7afa --- /dev/null +++ b/demo/assets/move.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/move.png" +dest_files=[ "res://.import/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/red.png b/demo/assets/red.png Binary files differnew file mode 100644 index 0000000..0bf4075 --- /dev/null +++ b/demo/assets/red.png diff --git a/demo/assets/red.png.import b/demo/assets/red.png.import new file mode 100644 index 0000000..9a47dff --- /dev/null +++ b/demo/assets/red.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/red.png-0fb5b28e6c289aea54776e2a268c9918.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/red.png" +dest_files=[ "res://.import/red.png-0fb5b28e6c289aea54776e2a268c9918.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/short.png b/demo/assets/short.png Binary files differnew file mode 100644 index 0000000..cb91627 --- /dev/null +++ b/demo/assets/short.png diff --git a/demo/assets/short.png.import b/demo/assets/short.png.import new file mode 100644 index 0000000..a73f3dd --- /dev/null +++ b/demo/assets/short.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/short.png-91db7f36df1a087629b942a028fb5df2.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/short.png" +dest_files=[ "res://.import/short.png-91db7f36df1a087629b942a028fb5df2.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/tank.png b/demo/assets/tank.png Binary files differnew file mode 100644 index 0000000..949ef59 --- /dev/null +++ b/demo/assets/tank.png diff --git a/demo/assets/tank.png.import b/demo/assets/tank.png.import new file mode 100644 index 0000000..26613fc --- /dev/null +++ b/demo/assets/tank.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/tank.png-2f13e859efcf4e73b133475e609ef36b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/tank.png" +dest_files=[ "res://.import/tank.png-2f13e859efcf4e73b133475e609ef36b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/target.png b/demo/assets/target.png Binary files differnew file mode 100644 index 0000000..997df02 --- /dev/null +++ b/demo/assets/target.png diff --git a/demo/assets/target.png.import b/demo/assets/target.png.import new file mode 100644 index 0000000..81d6ccc --- /dev/null +++ b/demo/assets/target.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/target.png-c45d87ea7b33e72c20871629efe7753d.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/target.png" +dest_files=[ "res://.import/target.png-c45d87ea7b33e72c20871629efe7753d.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/demo/assets/tree.png b/demo/assets/tree.png Binary files differnew file mode 100644 index 0000000..b3300a4 --- /dev/null +++ b/demo/assets/tree.png diff --git a/demo/assets/tree.png.import b/demo/assets/tree.png.import new file mode 100644 index 0000000..4b2123d --- /dev/null +++ b/demo/assets/tree.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://demo/assets/tree.png" +dest_files=[ "res://.import/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 |