mirror of
https://github.com/GDQuest/godot-platformer-2d.git
synced 2026-07-17 16:34:54 +00:00
Add Hook node icon
This commit is contained in:
parent
e76573518c
commit
da975c84d9
3 changed files with 93 additions and 1 deletions
58
game/assets/icons/icon_hook.svg
Normal file
58
game/assets/icons/icon_hook.svg
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
version="1.1"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg945"
|
||||
sodipodi:docname="icon_hook_2_d.svg"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
|
||||
<metadata
|
||||
id="metadata951">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs949" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1018"
|
||||
id="namedview947"
|
||||
showgrid="false"
|
||||
inkscape:snap-grids="true"
|
||||
inkscape:zoom="16"
|
||||
inkscape:cx="13.830791"
|
||||
inkscape:cy="11.059086"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="32"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg945" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#a5b7f3;fill-opacity:0.98824002;fill-rule:nonzero;stroke:none;stroke-width:2.25259852;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 9.6230469,1.6972656 C 8.9420545,1.7058781 8.2850312,1.7950063 7.703125,1.8828125 5.2336065,2.2554481 2.6875,3.5117186 2.6875,3.5117188 c -1.3547506,0.6495337 -0.3801412,2.6807837 0.9746094,2.03125 0,0 2.4506776,-1.1429304 4.3769531,-1.4335938 C 8.7886682,3.996264 9.5430779,3.9818395 10.210938,4.0527344 L 1.9335938,12.330078 c -0.7957854,0.735783 -0.1950262,2.060909 0.8828124,1.947266 0.03738,-0.004 0.074535,-0.0099 0.1113282,-0.01758 0.2295259,-0.04769 0.4384522,-0.165813 0.5976562,-0.337891 L 11.816406,5.6308594 c 0.05582,0.6557207 0.02236,1.4083737 -0.07617,2.2167968 -0.06288,0.5159088 -0.46143,1.628503 -0.857422,2.5078128 -0.395991,0.879309 -0.767578,1.566406 -0.767578,1.566406 -0.7670585,1.335488 1.28146,2.444597 1.980469,1.072266 0.735814,-1.539606 1.508501,-2.942873 1.880859,-4.8730472 C 14.428711,5.7773261 14.310495,4.1829766 13.050781,2.7578125 12.364503,1.9813988 11.18096,1.7833631 10.310547,1.71875 10.08026,1.7016552 9.8500443,1.6943948 9.6230469,1.6972656 Z"
|
||||
id="path953"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ssccscccccccsccssss" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
34
game/assets/icons/icon_hook.svg.import
Normal file
34
game/assets/icons/icon_hook.svg.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon_hook.svg-12c60923ff847745e502f1821ca2838a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/icons/icon_hook.svg"
|
||||
dest_files=[ "res://.import/icon_hook.svg-12c60923ff847745e502f1821ca2838a.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
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
tool
|
||||
extends Position2D
|
||||
class_name Hook
|
||||
class_name Hook, "res://assets/icons/icon_hook.svg"
|
||||
"""
|
||||
Throws a raycast that can interact with Hookable bodies and calculate a pull vector towards those bodies.
|
||||
The raycast is updated manually for greater precision with where the player is aiming
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue