Add Hedgehog in game

This commit is contained in:
Fabien Freling 2018-07-19 15:37:19 +02:00
parent ba179723fb
commit 408306110b
5 changed files with 1200 additions and 3 deletions

125
Hedgehog.tscn Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=6 format=2]
[ext_resource path="res://mlib.meshlib" type="MeshLibrary" id=1] [ext_resource path="res://mlib.meshlib" type="MeshLibrary" id=1]
[ext_resource path="res://Player.tscn" type="PackedScene" id=2] [ext_resource path="res://Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Goal.tscn" type="PackedScene" id=3] [ext_resource path="res://Goal.tscn" type="PackedScene" id=3]
[ext_resource path="res://Hedgehog.tscn" type="PackedScene" id=4]
[ext_resource path="res://Player.gd" type="Script" id=5]
[node name="Node" type="Node" index="0"] [node name="Node" type="Node" index="0"]
@ -18,7 +20,7 @@ cell_scale = 1.0
collision_layer = 1 collision_layer = 1
collision_mask = 1 collision_mask = 1
data = { data = {
"cells": PoolIntArray( 0, 0, 1441792, 65534, 0, -1609170944, 65535, 0, 1441792, 0, 65534, 1441792, 65534, 65534, 538312704, 65535, 65534, 1441792, 0, 65535, 1441792, 65534, 65535, 1441792 ) "cells": PoolIntArray( 0, 0, 1441792, 65534, 0, 1441792, 65535, 0, 1441792, 0, 65534, 1441792, 65534, 65534, 1441792, 65535, 65534, 1441792, 0, 65535, 1441792, 65534, 65535, 1441792 )
} }
_sections_unfolded = [ "Cell", "Collision", "Transform", "Visibility" ] _sections_unfolded = [ "Cell", "Collision", "Transform", "Visibility" ]
__meta__ = { __meta__ = {
@ -46,10 +48,15 @@ _sections_unfolded = [ "Transform" ]
[node name="Player" parent="." index="2" instance=ExtResource( 2 )] [node name="Player" parent="." index="2" instance=ExtResource( 2 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -2.88637, 3.48439, -2.72332 ) transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -2.88637, 3.48439, -2.72332 )
_sections_unfolded = [ "Transform" ] visible = false
[node name="Goal" parent="." index="3" instance=ExtResource( 3 )] [node name="Goal" parent="." index="3" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 3, 1 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 3, 1 )
[node name="Hedgehog" parent="." index="4" instance=ExtResource( 4 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -3, 3, -3 )
script = ExtResource( 5 )

BIN
models/Material.material Normal file

Binary file not shown.

BIN
models/hedgehog.glb Normal file

Binary file not shown.

1065
models/hedgehog.glb.import Normal file

File diff suppressed because it is too large Load diff