diff --git a/assets/krita/.tricheur_button.kra-autosave.kra b/assets/krita/.tricheur_button.kra-autosave.kra deleted file mode 100644 index eb8dfea..0000000 Binary files a/assets/krita/.tricheur_button.kra-autosave.kra and /dev/null differ diff --git a/assets/krita/desktop.kra b/assets/krita/desktopA.kra similarity index 100% rename from assets/krita/desktop.kra rename to assets/krita/desktopA.kra diff --git a/assets/krita/intro.kra b/assets/krita/introA.kra similarity index 100% rename from assets/krita/intro.kra rename to assets/krita/introA.kra diff --git a/assets/krita/loupeA.kra b/assets/krita/loupeA.kra new file mode 100644 index 0000000..9339be4 Binary files /dev/null and b/assets/krita/loupeA.kra differ diff --git a/assets/krita/tous les dossiers et animation.kra b/assets/krita/tous les dossiers et animation.kra new file mode 100644 index 0000000..4813421 Binary files /dev/null and b/assets/krita/tous les dossiers et animation.kra differ diff --git a/assets/sounds/block.wav b/assets/sounds/block.wav new file mode 100644 index 0000000..0c3c683 Binary files /dev/null and b/assets/sounds/block.wav differ diff --git a/assets/sounds/skweak1.ogg b/assets/sounds/skweak1.ogg new file mode 100644 index 0000000..7a27062 Binary files /dev/null and b/assets/sounds/skweak1.ogg differ diff --git a/assets/sounds/slide.wav b/assets/sounds/slide.wav index 446772d..bfd655c 100644 Binary files a/assets/sounds/slide.wav and b/assets/sounds/slide.wav differ diff --git a/assets/textures/animations/attack_point/despawn/0000.png b/assets/textures/animations/attack_point/despawn/0000.png new file mode 100644 index 0000000..5964369 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0000.png differ diff --git a/assets/textures/animations/attack_point/despawn/0001.png b/assets/textures/animations/attack_point/despawn/0001.png new file mode 100644 index 0000000..0fbad21 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0001.png differ diff --git a/assets/textures/animations/attack_point/despawn/0002.png b/assets/textures/animations/attack_point/despawn/0002.png new file mode 100644 index 0000000..195a1f3 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0002.png differ diff --git a/assets/textures/animations/attack_point/despawn/0003.png b/assets/textures/animations/attack_point/despawn/0003.png new file mode 100644 index 0000000..be8bbe7 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0003.png differ diff --git a/assets/textures/animations/attack_point/despawn/0004.png b/assets/textures/animations/attack_point/despawn/0004.png new file mode 100644 index 0000000..d8889fd Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0004.png differ diff --git a/assets/textures/animations/attack_point/despawn/0005.png b/assets/textures/animations/attack_point/despawn/0005.png new file mode 100644 index 0000000..2e7163f Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0005.png differ diff --git a/assets/textures/animations/attack_point/despawn/0006.png b/assets/textures/animations/attack_point/despawn/0006.png new file mode 100644 index 0000000..470f350 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0006.png differ diff --git a/assets/textures/animations/attack_point/despawn/0007.png b/assets/textures/animations/attack_point/despawn/0007.png new file mode 100644 index 0000000..ece6753 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0007.png differ diff --git a/assets/textures/animations/attack_point/despawn/0008.png b/assets/textures/animations/attack_point/despawn/0008.png new file mode 100644 index 0000000..cabafba Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0008.png differ diff --git a/assets/textures/animations/attack_point/despawn/0009.png b/assets/textures/animations/attack_point/despawn/0009.png new file mode 100644 index 0000000..a6a6249 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0009.png differ diff --git a/assets/textures/animations/attack_point/despawn/0010.png b/assets/textures/animations/attack_point/despawn/0010.png new file mode 100644 index 0000000..15d0f53 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0010.png differ diff --git a/assets/textures/animations/attack_point/despawn/0011.png b/assets/textures/animations/attack_point/despawn/0011.png new file mode 100644 index 0000000..29e8b44 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0011.png differ diff --git a/assets/textures/animations/attack_point/despawn/0012.png b/assets/textures/animations/attack_point/despawn/0012.png new file mode 100644 index 0000000..0f4d831 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0012.png differ diff --git a/assets/textures/animations/attack_point/despawn/0013.png b/assets/textures/animations/attack_point/despawn/0013.png new file mode 100644 index 0000000..30b2900 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0013.png differ diff --git a/assets/textures/animations/attack_point/despawn/0014.png b/assets/textures/animations/attack_point/despawn/0014.png new file mode 100644 index 0000000..5fddd83 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0014.png differ diff --git a/assets/textures/animations/attack_point/despawn/0015.png b/assets/textures/animations/attack_point/despawn/0015.png new file mode 100644 index 0000000..0c874f2 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0015.png differ diff --git a/assets/textures/animations/attack_point/despawn/0016.png b/assets/textures/animations/attack_point/despawn/0016.png new file mode 100644 index 0000000..0b94353 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0016.png differ diff --git a/assets/textures/animations/attack_point/despawn/0017.png b/assets/textures/animations/attack_point/despawn/0017.png new file mode 100644 index 0000000..d4609aa Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0017.png differ diff --git a/assets/textures/animations/attack_point/despawn/0018.png b/assets/textures/animations/attack_point/despawn/0018.png new file mode 100644 index 0000000..317daa6 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0018.png differ diff --git a/assets/textures/animations/attack_point/despawn/0019.png b/assets/textures/animations/attack_point/despawn/0019.png new file mode 100644 index 0000000..1497ff1 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0019.png differ diff --git a/assets/textures/animations/attack_point/despawn/0020.png b/assets/textures/animations/attack_point/despawn/0020.png new file mode 100644 index 0000000..b862f34 Binary files /dev/null and b/assets/textures/animations/attack_point/despawn/0020.png differ diff --git a/assets/textures/animations/attack_point/despawn/info.json b/assets/textures/animations/attack_point/despawn/info.json new file mode 100644 index 0000000..80b18a3 --- /dev/null +++ b/assets/textures/animations/attack_point/despawn/info.json @@ -0,0 +1,9 @@ +{ + "end_image": "error.png", + "offset": { + "x": 0, + "y": 0 + }, + "frame_count": 21, + "fps": 60 +} \ No newline at end of file diff --git a/assets/textures/animations/attack_point/spawn/0000.png b/assets/textures/animations/attack_point/spawn/0000.png new file mode 100644 index 0000000..b862f34 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0000.png differ diff --git a/assets/textures/animations/attack_point/spawn/0001.png b/assets/textures/animations/attack_point/spawn/0001.png new file mode 100644 index 0000000..1497ff1 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0001.png differ diff --git a/assets/textures/animations/attack_point/spawn/0002.png b/assets/textures/animations/attack_point/spawn/0002.png new file mode 100644 index 0000000..317daa6 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0002.png differ diff --git a/assets/textures/animations/attack_point/spawn/0003.png b/assets/textures/animations/attack_point/spawn/0003.png new file mode 100644 index 0000000..d4609aa Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0003.png differ diff --git a/assets/textures/animations/attack_point/spawn/0004.png b/assets/textures/animations/attack_point/spawn/0004.png new file mode 100644 index 0000000..0b94353 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0004.png differ diff --git a/assets/textures/animations/attack_point/spawn/0005.png b/assets/textures/animations/attack_point/spawn/0005.png new file mode 100644 index 0000000..0c874f2 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0005.png differ diff --git a/assets/textures/animations/attack_point/spawn/0006.png b/assets/textures/animations/attack_point/spawn/0006.png new file mode 100644 index 0000000..5fddd83 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0006.png differ diff --git a/assets/textures/animations/attack_point/spawn/0007.png b/assets/textures/animations/attack_point/spawn/0007.png new file mode 100644 index 0000000..30b2900 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0007.png differ diff --git a/assets/textures/animations/attack_point/spawn/0008.png b/assets/textures/animations/attack_point/spawn/0008.png new file mode 100644 index 0000000..0f4d831 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0008.png differ diff --git a/assets/textures/animations/attack_point/spawn/0009.png b/assets/textures/animations/attack_point/spawn/0009.png new file mode 100644 index 0000000..29e8b44 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0009.png differ diff --git a/assets/textures/animations/attack_point/spawn/0010.png b/assets/textures/animations/attack_point/spawn/0010.png new file mode 100644 index 0000000..15d0f53 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0010.png differ diff --git a/assets/textures/animations/attack_point/spawn/0011.png b/assets/textures/animations/attack_point/spawn/0011.png new file mode 100644 index 0000000..a6a6249 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0011.png differ diff --git a/assets/textures/animations/attack_point/spawn/0012.png b/assets/textures/animations/attack_point/spawn/0012.png new file mode 100644 index 0000000..cabafba Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0012.png differ diff --git a/assets/textures/animations/attack_point/spawn/0013.png b/assets/textures/animations/attack_point/spawn/0013.png new file mode 100644 index 0000000..ece6753 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0013.png differ diff --git a/assets/textures/animations/attack_point/spawn/0014.png b/assets/textures/animations/attack_point/spawn/0014.png new file mode 100644 index 0000000..470f350 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0014.png differ diff --git a/assets/textures/animations/attack_point/spawn/0015.png b/assets/textures/animations/attack_point/spawn/0015.png new file mode 100644 index 0000000..2e7163f Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0015.png differ diff --git a/assets/textures/animations/attack_point/spawn/0016.png b/assets/textures/animations/attack_point/spawn/0016.png new file mode 100644 index 0000000..d8889fd Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0016.png differ diff --git a/assets/textures/animations/attack_point/spawn/0017.png b/assets/textures/animations/attack_point/spawn/0017.png new file mode 100644 index 0000000..be8bbe7 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0017.png differ diff --git a/assets/textures/animations/attack_point/spawn/0018.png b/assets/textures/animations/attack_point/spawn/0018.png new file mode 100644 index 0000000..195a1f3 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0018.png differ diff --git a/assets/textures/animations/attack_point/spawn/0019.png b/assets/textures/animations/attack_point/spawn/0019.png new file mode 100644 index 0000000..0fbad21 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0019.png differ diff --git a/assets/textures/animations/attack_point/spawn/0020.png b/assets/textures/animations/attack_point/spawn/0020.png new file mode 100644 index 0000000..5964369 Binary files /dev/null and b/assets/textures/animations/attack_point/spawn/0020.png differ diff --git a/assets/textures/animations/attack_point/spawn/info.json b/assets/textures/animations/attack_point/spawn/info.json new file mode 100644 index 0000000..d070be0 --- /dev/null +++ b/assets/textures/animations/attack_point/spawn/info.json @@ -0,0 +1,9 @@ +{ + "end_image": "attack_point.png", + "offset": { + "x": 0, + "y": 0 + }, + "frame_count": 21, + "fps": 60 +} \ No newline at end of file diff --git a/assets/textures/animations/blocked_to_directory/0000.png b/assets/textures/animations/blocked_to_directory/0000.png new file mode 100644 index 0000000..f825630 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0000.png differ diff --git a/assets/textures/animations/blocked_to_directory/0001.png b/assets/textures/animations/blocked_to_directory/0001.png new file mode 100644 index 0000000..4267722 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0001.png differ diff --git a/assets/textures/animations/blocked_to_directory/0002.png b/assets/textures/animations/blocked_to_directory/0002.png new file mode 100644 index 0000000..cab359c Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0002.png differ diff --git a/assets/textures/animations/blocked_to_directory/0003.png b/assets/textures/animations/blocked_to_directory/0003.png new file mode 100644 index 0000000..8965a69 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0003.png differ diff --git a/assets/textures/animations/blocked_to_directory/0004.png b/assets/textures/animations/blocked_to_directory/0004.png new file mode 100644 index 0000000..4552810 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0004.png differ diff --git a/assets/textures/animations/blocked_to_directory/0005.png b/assets/textures/animations/blocked_to_directory/0005.png new file mode 100644 index 0000000..ed16ce0 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0005.png differ diff --git a/assets/textures/animations/blocked_to_directory/0006.png b/assets/textures/animations/blocked_to_directory/0006.png new file mode 100644 index 0000000..89fe503 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0006.png differ diff --git a/assets/textures/animations/blocked_to_directory/0007.png b/assets/textures/animations/blocked_to_directory/0007.png new file mode 100644 index 0000000..b75b46a Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0007.png differ diff --git a/assets/textures/animations/blocked_to_directory/0008.png b/assets/textures/animations/blocked_to_directory/0008.png new file mode 100644 index 0000000..e216082 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0008.png differ diff --git a/assets/textures/animations/blocked_to_directory/0009.png b/assets/textures/animations/blocked_to_directory/0009.png new file mode 100644 index 0000000..01e5e4c Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0009.png differ diff --git a/assets/textures/animations/blocked_to_directory/0010.png b/assets/textures/animations/blocked_to_directory/0010.png new file mode 100644 index 0000000..835b37f Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0010.png differ diff --git a/assets/textures/animations/blocked_to_directory/0011.png b/assets/textures/animations/blocked_to_directory/0011.png new file mode 100644 index 0000000..ebc56b3 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0011.png differ diff --git a/assets/textures/animations/blocked_to_directory/0012.png b/assets/textures/animations/blocked_to_directory/0012.png new file mode 100644 index 0000000..6e3ec09 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0012.png differ diff --git a/assets/textures/animations/blocked_to_directory/0013.png b/assets/textures/animations/blocked_to_directory/0013.png new file mode 100644 index 0000000..6c087ea Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0013.png differ diff --git a/assets/textures/animations/blocked_to_directory/0014.png b/assets/textures/animations/blocked_to_directory/0014.png new file mode 100644 index 0000000..763c65b Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0014.png differ diff --git a/assets/textures/animations/blocked_to_directory/0015.png b/assets/textures/animations/blocked_to_directory/0015.png new file mode 100644 index 0000000..89e517a Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0015.png differ diff --git a/assets/textures/animations/blocked_to_directory/0016.png b/assets/textures/animations/blocked_to_directory/0016.png new file mode 100644 index 0000000..6b00056 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0016.png differ diff --git a/assets/textures/animations/blocked_to_directory/0017.png b/assets/textures/animations/blocked_to_directory/0017.png new file mode 100644 index 0000000..65b9c9e Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0017.png differ diff --git a/assets/textures/animations/blocked_to_directory/0018.png b/assets/textures/animations/blocked_to_directory/0018.png new file mode 100644 index 0000000..3cc2637 Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0018.png differ diff --git a/assets/textures/animations/blocked_to_directory/0019.png b/assets/textures/animations/blocked_to_directory/0019.png new file mode 100644 index 0000000..592d2aa Binary files /dev/null and b/assets/textures/animations/blocked_to_directory/0019.png differ diff --git a/assets/textures/animations/blocked_to_directory/info.json b/assets/textures/animations/blocked_to_directory/info.json new file mode 100644 index 0000000..2f3e5be --- /dev/null +++ b/assets/textures/animations/blocked_to_directory/info.json @@ -0,0 +1,9 @@ +{ + "end_image": "directory.png", + "offset": { + "x": 0, + "y": 0 + }, + "frame_count": 20, + "fps": 60 +} \ No newline at end of file diff --git a/assets/textures/animations/directory_to_blocked/0000.png b/assets/textures/animations/directory_to_blocked/0000.png new file mode 100644 index 0000000..592d2aa Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0000.png differ diff --git a/assets/textures/animations/directory_to_blocked/0001.png b/assets/textures/animations/directory_to_blocked/0001.png new file mode 100644 index 0000000..b9f8a86 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0001.png differ diff --git a/assets/textures/animations/directory_to_blocked/0002.png b/assets/textures/animations/directory_to_blocked/0002.png new file mode 100644 index 0000000..a8c6d57 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0002.png differ diff --git a/assets/textures/animations/directory_to_blocked/0003.png b/assets/textures/animations/directory_to_blocked/0003.png new file mode 100644 index 0000000..6c14e4f Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0003.png differ diff --git a/assets/textures/animations/directory_to_blocked/0004.png b/assets/textures/animations/directory_to_blocked/0004.png new file mode 100644 index 0000000..45db7b3 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0004.png differ diff --git a/assets/textures/animations/directory_to_blocked/0005.png b/assets/textures/animations/directory_to_blocked/0005.png new file mode 100644 index 0000000..3d0fcf7 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0005.png differ diff --git a/assets/textures/animations/directory_to_blocked/0006.png b/assets/textures/animations/directory_to_blocked/0006.png new file mode 100644 index 0000000..9ea8255 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0006.png differ diff --git a/assets/textures/animations/directory_to_blocked/0007.png b/assets/textures/animations/directory_to_blocked/0007.png new file mode 100644 index 0000000..161a686 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0007.png differ diff --git a/assets/textures/animations/directory_to_blocked/0008.png b/assets/textures/animations/directory_to_blocked/0008.png new file mode 100644 index 0000000..3dbf284 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0008.png differ diff --git a/assets/textures/animations/directory_to_blocked/0009.png b/assets/textures/animations/directory_to_blocked/0009.png new file mode 100644 index 0000000..701ea63 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0009.png differ diff --git a/assets/textures/animations/directory_to_blocked/0010.png b/assets/textures/animations/directory_to_blocked/0010.png new file mode 100644 index 0000000..a88482d Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0010.png differ diff --git a/assets/textures/animations/directory_to_blocked/0011.png b/assets/textures/animations/directory_to_blocked/0011.png new file mode 100644 index 0000000..9acf8d5 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0011.png differ diff --git a/assets/textures/animations/directory_to_blocked/0012.png b/assets/textures/animations/directory_to_blocked/0012.png new file mode 100644 index 0000000..605a740 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0012.png differ diff --git a/assets/textures/animations/directory_to_blocked/0013.png b/assets/textures/animations/directory_to_blocked/0013.png new file mode 100644 index 0000000..9e9b67a Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0013.png differ diff --git a/assets/textures/animations/directory_to_blocked/0014.png b/assets/textures/animations/directory_to_blocked/0014.png new file mode 100644 index 0000000..178f94d Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0014.png differ diff --git a/assets/textures/animations/directory_to_blocked/0015.png b/assets/textures/animations/directory_to_blocked/0015.png new file mode 100644 index 0000000..709fff9 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0015.png differ diff --git a/assets/textures/animations/directory_to_blocked/0016.png b/assets/textures/animations/directory_to_blocked/0016.png new file mode 100644 index 0000000..0ee273e Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0016.png differ diff --git a/assets/textures/animations/directory_to_blocked/0017.png b/assets/textures/animations/directory_to_blocked/0017.png new file mode 100644 index 0000000..de59ee9 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0017.png differ diff --git a/assets/textures/animations/directory_to_blocked/0018.png b/assets/textures/animations/directory_to_blocked/0018.png new file mode 100644 index 0000000..4267722 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0018.png differ diff --git a/assets/textures/animations/directory_to_blocked/0019.png b/assets/textures/animations/directory_to_blocked/0019.png new file mode 100644 index 0000000..f825630 Binary files /dev/null and b/assets/textures/animations/directory_to_blocked/0019.png differ diff --git a/assets/textures/animations/directory_to_blocked/info.json b/assets/textures/animations/directory_to_blocked/info.json new file mode 100644 index 0000000..b6e64d6 --- /dev/null +++ b/assets/textures/animations/directory_to_blocked/info.json @@ -0,0 +1,9 @@ +{ + "end_image": "blocked_directory.png", + "offset": { + "x": 0, + "y": 0 + }, + "frame_count": 20, + "fps": 60 +} \ No newline at end of file diff --git a/assets/textures/blocked_directory.png b/assets/textures/blocked_directory.png new file mode 100644 index 0000000..0b298f8 Binary files /dev/null and b/assets/textures/blocked_directory.png differ diff --git a/src/scenes/directory_search.py b/src/scenes/directory_search.py index cd50f94..2455732 100644 --- a/src/scenes/directory_search.py +++ b/src/scenes/directory_search.py @@ -107,6 +107,12 @@ class UserDirectory: """ +class BlockedDirectory: + """ + Un component qui permet de savoir que le dossier est bloqué. + """ + + class GameStarted: """ Une ressource qui permet de savoir que le jeu commence. @@ -231,24 +237,68 @@ def __attacks(world: World): else: directory_entity[Animation] = Animation("search_directory") del entity[AttackPoint] - del entity[Position] - del entity[Order] - del entity[Centered] - del entity[Texture] + + def del_anim_entity(_: World, entity: Entity): + del entity[Animation] + del entity[Position] + del entity[Order] + del entity[Centered] + + entity[Animation] = Animation( + "attack_point/despawn", + callback=del_anim_entity, + ) + elif timer >= world[AttackSpeed] + 4.5 and world[State] == State.SEARCHING: world[State] = State.MOVING + + # on suprime les dossiers bloqués + for entity in world.query(BlockedDirectory): + del entity[BlockedDirectory] + del entity[Texture] + entity[Animation] = Animation("blocked_to_directory") + + # On definit les directories comme bloques + for _ in range(3): + x = random.randint(0, COLUMNS - 1) + y = random.randint(0, LINES - 1) + + position = DirectoryPosition(x, y) + + for entity in world.query( + DirectoryPosition, Texture, without=[UserDirectory] + ): + if ( + entity[DirectoryPosition].screen_position() + == position.screen_position() + ): + entity[BlockedDirectory] = BlockedDirectory() + del entity[Texture] + entity[Animation] = Animation("directory_to_blocked") for _ in range(10): - position = AttackPoint( - random.randint(0, COLUMNS - 1), - random.randint(0, LINES - 1), - ) - world.create_entity( - position, - Position(position.screen_position()), - Order(50), - Centered(), - Texture("attack_point.png"), - ) + x = random.randint(0, COLUMNS - 1) + y = random.randint(0, LINES - 1) + position = AttackPoint(x, y) + + # On verifie que l'entité n'est pas bloquée + is_on_blocked_directory = False + for entity in world.query(BlockedDirectory, DirectoryPosition): + if ( + entity[DirectoryPosition].screen_position() + == position.screen_position() + ): + is_on_blocked_directory = True + break + + if not is_on_blocked_directory: + world.create_entity( + position, + Position(position.screen_position()), + Order(50), + Centered(), + Animation("attack_point/spawn"), + ) + world[AttackTimer] = AttackTimer(0.0) world[AttackSpeed] = AttackSpeed(world[AttackSpeed] * 0.9) @@ -281,6 +331,11 @@ def __move_directories(world: World): del world[SelectedDirectory] return + # On annule si le dossier selectionne est bloqué + if BlockedDirectory in selected_entity: + del world[SelectedDirectory] + return + # On calcule le déplacement de la souris mouse_delta = mouse.position - selected_directory.position @@ -323,8 +378,13 @@ def __move_directories(world: World): directory_position.x + movement[0], directory_position.y + movement[1], ): - other_directory = entity - break + if BlockedDirectory not in entity: + other_directory = entity + break + else: + world.create_entity(Sound("block.wav")) + del entity[SelectedDirectory] + del world[SelectedDirectory] else: return @@ -337,7 +397,7 @@ def __move_directories(world: World): selected_entity[DirectoryPosition].y += movement[1] # On joue un son - world.create_entity(Sound("slide.wav")) + world.create_entity(Sound("slide.wav", 1)) # On retire le dossier selectionné del world[SelectedDirectory]