add player scene with graphics
This commit is contained in:
parent
d3200ef910
commit
4c60efd571
|
@ -0,0 +1,16 @@
|
||||||
|
extends KinematicBody2D
|
||||||
|
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a = 2
|
||||||
|
# var b = "text"
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
|
@ -0,0 +1,21 @@
|
||||||
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://assets/car/TRBRYcars [Converted] sedan.svg" type="Texture" id=1]
|
||||||
|
[ext_resource path="res://Playa.gd" type="Script" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
|
radius = 34.9782
|
||||||
|
height = 106.041
|
||||||
|
|
||||||
|
[node name="Playa" type="KinematicBody2D"]
|
||||||
|
script = ExtResource( 2 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_group_": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
|
texture = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
rotation = 1.5708
|
||||||
|
shape = SubResource( 1 )
|
|
@ -0,0 +1,92 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
width="210px" height="100px" viewBox="0 0 210 100" enable-background="new 0 0 210 100" xml:space="preserve">
|
||||||
|
<path fill="#999999" d="M190.072,42.529c-0.285-2.562-0.846-5.092-1.579-7.562c-0.847-2.853-1.808-5.696-3.295-8.286
|
||||||
|
c-1.345-2.342-2.939-4.492-5.119-6.115c-2.101-1.562-4.54-2.614-7.069-3.254c-3.031-0.766-6.275-1.091-9.396-1.107
|
||||||
|
c-3.22-0.017-6.415,0.47-9.638,0.479c-3.947,0.011-7.896-0.389-11.834-0.616c-11.938-0.688-23.881-1.37-35.847-1.336
|
||||||
|
c-6.142,0.017-12.265,0.301-18.408,0.092c-3.117-0.106-6.232-0.25-9.353-0.245c-3.251,0.005-6.487,0.27-9.735,0.317
|
||||||
|
c-6.461,0.093-12.795-1.143-19.248-0.318c-6.285,0.804-12.46,2.403-18.625,3.831c-1.416,0.328-2.839,0.629-4.268,0.895
|
||||||
|
c-1.337,0.249-2.435,1.5-3.328,2.492c-1.486,1.649-2.581,3.706-3.428,5.749c-1.824,4.404-2.521,9.231-2.815,13.96
|
||||||
|
c-0.187,2.997-0.077,5.983-0.136,8.98c-0.058,2.923-0.009,5.851,0.214,8.767c0.354,4.624,1.107,9.336,2.954,13.621
|
||||||
|
c0.955,2.214,2.225,4.217,3.909,5.952c0.454,0.468,0.932,0.913,1.439,1.321c0.577,0.463,1.181,0.543,1.896,0.701
|
||||||
|
c1.532,0.338,3.086,0.588,4.611,0.953c6.205,1.49,12.374,3.055,18.72,3.848c3.145,0.395,6.332,0.406,9.474-0.021
|
||||||
|
c3.249-0.387,6.527-0.478,9.796-0.397c3.253,0.076,6.497,0.271,9.753,0.246c3.098-0.024,6.19-0.194,9.286-0.274
|
||||||
|
c11.372-0.298,22.777,0.616,34.146-0.129c4.33-0.284,8.654-0.533,12.988-0.761c2.207-0.117,4.416-0.229,6.623-0.355
|
||||||
|
c4.247-0.245,8.482-0.727,12.742-0.576c3.23,0.114,6.411,0.533,9.65,0.391c3.033-0.133,6.225-0.465,9.121-1.41
|
||||||
|
c2.355-0.771,4.619-1.887,6.521-3.492c2.102-1.775,3.648-4.119,4.876-6.561c2.265-4.5,3.709-9.668,4.336-14.662
|
||||||
|
c0.316-2.517,0.298-5.098,0.534-7.625c0.102-1.066-0.152-2.235-0.234-3.305C190.202,45.32,190.122,43.925,190.072,42.529"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#666766" d="M190.068,42.562c-0.301-2.7-1-6.1-2.4-10.1c-0.7-2.3-1.7-4.5-2.8-6.3c-0.8-1.3-1.601-2.5-2.5-3.5
|
||||||
|
c-2.3-2.5-5.5-4.4-9.7-5.4c-1.7-0.3-3.5-0.7-5.2-0.8c5,1.6,10,4.4,15.101,8.6c1.101,1.5,1.801,3.3,2,5.4v2.1
|
||||||
|
c0.301,1.5,1.199,2.6,2.801,3.1c1.1,0.5,1.699,5.2,1.699,14.1c0,9-0.601,13.8-1.699,14.4c-1.602,0.5-2.5,1.6-2.801,3.199v2.101
|
||||||
|
c-0.199,2.101-0.899,3.899-2,5.399c-5.101,4.301-10.101,7.201-15.101,8.801c1.7-0.2,3.5-0.5,5.2-0.801c4.2-1.101,7.4-2.899,9.7-5.5
|
||||||
|
c0.899-1,1.7-2.199,2.5-3.5c1.1-2,2.1-4.101,2.8-6.5c1.4-4,2.1-7.5,2.4-10.199c0.1-2.801,0.3-5.301,0.5-7.4
|
||||||
|
C190.368,47.662,190.167,45.362,190.068,42.562z"/>
|
||||||
|
<path fill="#666766" d="M138.568,18.762c-0.801-0.1-1.602-0.1-2.4-0.2c-2.8,0.4-5.8,0.9-8.6,1.4c-4.9,0.9-9.602,2-14.4,3.3
|
||||||
|
c-24.6,0.6-43.2-0.3-55.7-2.7c0.5-0.8,1.5-1.4,3.2-1.7c-8.7-0.3-16.9,0.4-24.7,2.1c24.8,3.8,50.4,5.1,76.9,3.7
|
||||||
|
c17.3-3.9,31.399-5.5,42.3-4.6C150.167,19.562,144.667,19.162,138.568,18.762z"/>
|
||||||
|
<path fill="#666766" d="M113.167,76.662c4.8,1.4,9.5,2.5,14.399,3.4c2.801,0.5,5.801,1,8.601,1.299c0.8,0,1.601,0,2.399,0
|
||||||
|
c6.101-0.399,11.601-0.799,16.601-1.399c-10.899,0.899-25-0.7-42.3-4.601c-26.5-1.5-52.1-0.199-76.9,3.801c7.8,1.6,16,2.3,24.7,2
|
||||||
|
c-1.7-0.301-2.7-0.801-3.2-1.801C69.968,77.062,88.568,76.162,113.167,76.662z"/>
|
||||||
|
<path fill="#666766" d="M162.968,80.562c-8,0.6-16.1,1.1-24.2,1.6c-1.898,0.199-3.898,0.199-5.898,0.3l-3.5,0.101
|
||||||
|
c-13.5,0.601-27.2,0.799-40.9,0.601c-8.5,0-17-0.302-25.5-0.601c-8.4-0.201-16.5-0.899-24-2c-7.6-1.201-13.4-2.801-17.5-5
|
||||||
|
c0.4,0.699,0.9,1.399,1.4,2c1,1.199,2,2.199,3.1,3c1.7,0.399,3.6,0.799,5.3,1.101c2,0.5,4,0.899,6.1,1.5c3.9,1,7.9,1.698,11.8,2.3
|
||||||
|
c3.7,0.602,7.3,0.7,11,0.2c4.2-0.5,8.4-0.5,12.5-0.302c4,0.201,8.1,0.201,12.2,0c0.2,0,0.5,0,0.8,0c3.8-0.198,7.7-0.198,11.7-0.198
|
||||||
|
c3.7,0.198,7.7,0.198,12,0.198c4.199,0,8.5-0.1,12.898-0.198l4.39-0.288l6.187-0.354l1.025-0.058v-0.001l0.926-0.049l0.057-0.003
|
||||||
|
l6.617-0.349l5.2-0.301c4.3-0.5,8.399-0.5,12.7-0.1c2.699,0.3,5.398,0.199,8.1,0C165.268,83.662,163.768,82.662,162.968,80.562z"/>
|
||||||
|
<path fill="#666766" d="M159.368,16.462c-4.3,0.4-8.4,0.3-12.7-0.1l-5.2-0.3l-6.907-0.364l-0.088-0.005l-0.604-0.032
|
||||||
|
c0,0,0,0,0-0.001l-3.514-0.191l0,0l-1.986-0.108l-6.102-0.3c-4.398-0.2-8.699-0.3-12.898-0.3c-4.3,0-8.3,0-12,0.2
|
||||||
|
c-4,0-7.9,0-11.7-0.2c-0.3,0-0.6,0-0.8,0c-4.1-0.2-8.2-0.2-12.2,0c-4.1,0.3-8.3,0.2-12.5-0.2c-3.7-0.5-7.3-0.4-11,0.1
|
||||||
|
c-3.9,0.5-7.9,1.4-11.8,2.3c-2.1,0.5-4.1,1-6.1,1.4c-1.7,0.4-3.6,0.8-5.3,1.1c-1.1,0.8-2.1,1.7-3.1,2.9c-0.5,0.7-1,1.3-1.4,2.1
|
||||||
|
c4.1-2.2,9.9-3.9,17.5-5c7.5-1.2,15.6-1.8,24-1.9c8.5-0.4,17-0.6,25.5-0.7c13.671-0.2,27.343,0.099,40.814,0.597l5.299,0.196
|
||||||
|
c1.42,0.077,2.831,0.164,4.188,0.307c8.1,0.3,16.198,0.9,24.198,1.6c0.802-2.1,2.302-3.1,4.5-3.1
|
||||||
|
C164.768,16.162,162.068,16.162,159.368,16.462z"/>
|
||||||
|
</g>
|
||||||
|
<path fill="#ED1C24" d="M31.39,18.412c-1.7,0.4-3.6,0.8-5.3,1.1c-1.1,0.8-2.1,1.7-3.1,2.9C27.59,20.912,30.29,19.612,31.39,18.412z"
|
||||||
|
/>
|
||||||
|
<path fill="#ED1C24" d="M26.09,80.611c1.7,0.399,3.6,0.801,5.3,1.101c-1.1-1.101-3.8-2.5-8.4-4.101
|
||||||
|
C23.99,78.812,24.99,79.812,26.09,80.611z"/>
|
||||||
|
<path fill="#333333" d="M60.672,18.872c-1.7,0.3-2.7,0.9-3.2,1.7c12.5,2.4,31.1,3.3,55.7,2.7c4.801-1.3,9.5-2.4,14.4-3.3
|
||||||
|
c0.8-0.5,1.3-1,1.5-1.5c-13.4-0.4-26.9-0.5-40.4-0.3c-8.1,0-16.2,0.2-24.3,0.4C62.872,18.572,61.672,18.672,60.672,18.872z"/>
|
||||||
|
<path fill="#333333" d="M60.672,81.172c1,0.2,2.2,0.301,3.7,0.2c8.1,0.3,16.2,0.5,24.3,0.601c13.5,0.199,27,0,40.4-0.399
|
||||||
|
c-0.2-0.4-0.7-1-1.5-1.5c-4.9-0.9-9.6-2-14.4-3.4c-24.6-0.5-43.2,0.4-55.7,2.7C57.972,80.372,58.972,80.872,60.672,81.172z"/>
|
||||||
|
<path fill="#333333" d="M116.672,25.472c0.1,0.3,0.2,0.6,0.301,1c2.199,8.1,3.101,15.9,2.5,23.3c0.601,7.5-0.301,15.4-2.5,23.8
|
||||||
|
c-0.101,0.3-0.201,0.6-0.301,1c14.9,4.1,23.301,5.4,25.2,3.8c4.7-6.2,7.101-15.7,7.101-28.6c0-12.6-2.399-22.1-7.101-28.2
|
||||||
|
C139.973,20.072,131.572,21.372,116.672,25.472z"/>
|
||||||
|
<path fill="#333333" d="M62.672,26.272c0.1-0.3,0.3-0.7,0.5-1.1l-19.4-2.1c-2.1-0.6-4-0.1-5.5,1.3v0.1c-3.3,3.2-5.3,11.7-5.6,25.3
|
||||||
|
c0.3,13.8,2.3,22.4,5.6,25.8l0,0c1.5,1.6,3.4,2,5.5,1.4l19.4-2.102c-0.2-0.5-0.4-0.801-0.5-1.2c-3.3-7.101-4.6-15.101-3.9-23.9
|
||||||
|
C58.072,41.172,59.372,33.272,62.672,26.272z"/>
|
||||||
|
<g>
|
||||||
|
<path d="M132.46,17.093c0-0.1,0-0.1-0.101-0.1c-0.799,0.1-1.699,0.1-2.5,0.2c-0.199,0-0.399,0-0.5-0.1c0,0.1,0,0.2,0,0.4
|
||||||
|
c0,0.3-0.101,0.7-0.299,1c-0.201,0.5-0.701,1-1.5,1.5c2.799-0.5,5.799-1,8.6-1.4c-0.1,0-0.1,0-0.2,0h-0.101c-1.399,0-2.399-0.4-3-1
|
||||||
|
C132.66,17.493,132.561,17.192,132.46,17.093z"/>
|
||||||
|
<path fill="#666666" d="M133.859,15.692c0-0.2,0-0.4-0.101-0.6c-0.198-1.1-0.698-2.2-1.399-3.1c-1.299-2.2-3-3.3-5-3.4
|
||||||
|
c-0.601,0-0.799,0.4-0.699,1l1.699,5.8l0.301,0.8c0.1,0.5,0.3,0.8,0.699,0.9c0.101,0.1,0.301,0.1,0.5,0.1
|
||||||
|
c0.801-0.1,1.701-0.1,2.5-0.2c0.201,0,0.301,0,0.301,0S134.048,16.694,133.859,15.692z"/>
|
||||||
|
<path fill="#333333" d="M127.359,8.593c-0.601,0-0.799,0.4-0.699,1l1.699,5.8l0.301,0.8c0.1,0.5,0.3,0.8,0.699,0.9
|
||||||
|
c0.101,0.1,0.301,0.1,0.5,0.1c-0.101-0.6-0.199-1.2-0.299-1.7C128.96,13.093,128.26,10.692,127.359,8.593z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path d="M132.764,82.408c0.602-0.6,1.602-1,3-1h0.102c0.1,0,0.1,0,0.199,0c-2.801-0.4-5.801-0.9-8.601-1.4c0.8,0.5,1.3,1,1.5,1.5
|
||||||
|
c0.2,0.301,0.3,0.7,0.3,1c0,0.2,0,0.301,0,0.4c0.102-0.1,0.301-0.1,0.5-0.1c0.801,0.1,1.7,0.1,2.5,0.198c0.102,0,0.102,0,0.102-0.1
|
||||||
|
C132.464,82.809,132.562,82.508,132.764,82.408z"/>
|
||||||
|
<path fill="#666666" d="M133.764,84.309c0,0.199,0,0.399-0.1,0.601c-0.2,1.1-0.7,2.198-1.4,3.1c-1.3,2.2-3,3.302-5,3.4
|
||||||
|
c-0.6,0-0.8-0.4-0.699-1l1.699-5.802l0.301-0.799c0.101-0.5,0.301-0.801,0.699-0.899c0.102-0.101,0.301-0.101,0.5-0.101
|
||||||
|
c0.801,0.101,1.7,0.101,2.5,0.199c0.2,0,0.301,0,0.301,0S133.951,83.307,133.764,84.309z"/>
|
||||||
|
<path fill="#333333" d="M129.464,84.508c0.101-0.5,0.2-1.1,0.3-1.699c-0.199,0-0.398,0-0.5,0.101c-0.398,0.1-0.6,0.399-0.699,0.899
|
||||||
|
l-0.301,0.799l-1.699,5.802c-0.101,0.6,0.101,1,0.699,1C128.164,89.309,128.863,86.908,129.464,84.508z"/>
|
||||||
|
</g>
|
||||||
|
<path fill="none" stroke="#4D4D4D" stroke-width="0.25" d="M141.468,84.062c-1.399-0.5-2.3-1.201-2.7-1.9
|
||||||
|
c-0.1-0.301-0.199-0.6-0.199-0.801c6.101-0.399,11.601-0.799,16.601-1.399c13-1.3,22.101-3,27.399-5.101l0,0
|
||||||
|
c0.899-0.299,1.601-0.699,2.301-1"/>
|
||||||
|
<path fill="none" stroke="#4D4D4D" stroke-width="0.25" d="M38.268,24.362c-0.9-1.4-6.5-1.3-16.8,0.1"/>
|
||||||
|
<path fill="none" stroke="#4D4D4D" stroke-width="0.25" d="M21.468,75.562c10.3,1.5,15.9,1.5,16.8,0"/>
|
||||||
|
<path fill="none" stroke="#4D4D4D" stroke-width="0.25" d="M184.868,26.162c-0.7-0.4-1.4-0.7-2.3-1.1l0,0c-5.301-2-14.4-3.7-27.4-5
|
||||||
|
c-5-0.5-10.5-0.9-16.6-1.3c0-0.3,0.1-0.6,0.199-0.8c0.399-0.8,1.301-1.4,2.699-1.9"/>
|
||||||
|
<path fill="#808080" d="M63.749,46.338c-0.5,0.9-0.7,1.9-0.5,3.1c-0.2,1.3,0,2.3,0.5,3.1c4.8-0.399,7.2-1.5,7.5-3.1
|
||||||
|
C70.949,47.838,68.549,46.838,63.749,46.338z"/>
|
||||||
|
<path fill="#808080" d="M113.148,49.438l-0.299-15.9c-0.102-1.9-1.102-3.1-3.4-3.4h-12.9c-3.3-0.3-4.8,1.1-4.6,4.2v30.5
|
||||||
|
c-0.2,3.1,1.3,4.5,4.6,4.301h12.9c2.3-0.399,3.3-1.601,3.4-3.399L113.148,49.438z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 8.8 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/TRBRYcars [Converted] sedan.svg-de70ef8fd4a423d23a09d4b711bef972.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/car/TRBRYcars [Converted] sedan.svg"
|
||||||
|
dest_files=[ "res://.import/TRBRYcars [Converted] sedan.svg-de70ef8fd4a423d23a09d4b711bef972.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
|
Loading…
Reference in New Issue