Prototype 2

This commit is contained in:
Segey Lapin
2019-07-20 04:28:54 +03:00
parent 29dfe621c1
commit 90d2938eca
30 changed files with 34688 additions and 14 deletions

View File

@@ -53,7 +53,3 @@ action1={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null)
]
}
[rendering]
quality/driver/driver_name="GLES3"

BIN
proto2/assets/ball.blend Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,31 @@
extends Node
var frame_tf: Transform = Transform()
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
var master_node: Node
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if !master_node:
return
if Input.is_action_pressed("move_north"):
var n = lerp(master_node.get_walk_speed(), 2.8, 0.4 * delta)
master_node.set_walk_speed(n)
master_node.walk()
else:
var n = lerp(master_node.get_walk_speed(), 1.0, 0.4 * delta)
master_node.set_walk_speed(n)
master_node.idle()
if Input.is_action_pressed("move_east"):
var tf_turn = Transform(Quat(Vector3(0, 1, 0), -PI * 0.6 * delta))
frame_tf *= tf_turn
if Input.is_action_pressed("move_west"):
var tf_turn = Transform(Quat(Vector3(0, 1, 0), PI * 0.6 * delta))
frame_tf *= tf_turn

39
proto2/ball/ball.escn Normal file
View File

@@ -0,0 +1,39 @@
[gd_scene load_steps=1 format=2]
[sub_resource id=1 type="SpatialMaterial"]
resource_name = ""
flags_unshaded = false
flags_vertex_lighting = false
flags_transparent = false
vertex_color_use_as_albedo = false
albedo_color = Color(0.903545, 0.47139, 0.374857, 1.0)
subsurf_scatter_enabled = false
[sub_resource id=2 type="ArrayMesh"]
resource_name = "Sphere"
surfaces/0 = {
"material":SubResource(1),
"primitive":4,
"arrays":[
Vector3Array(1.18559e-07, -0.176777, -0.176777, 0.0366117, -0.23097, -0.0883885, 1.00704e-08, -0.23097, -0.095671, 1.74438e-07, -3.1711e-08, -0.25, 0.0883884, -0.0956709, -0.213389, 1.00704e-08, -0.0956709, -0.23097, 1.00704e-08, 0.176777, -0.176777, 0.0883884, 0.0956708, -0.213389, 1.00704e-08, 0.0956708, -0.23097, 3.66027e-08, 0.23097, -0.095671, 1.00704e-08, 0.25, -1.66907e-07, 0.0366117, 0.23097, -0.0883885, 1.00704e-08, -0.25, -2.04656e-07, 0.0676495, -0.176777, -0.163321, 0.0956709, -3.1711e-08, -0.23097, 0.0676495, 0.176777, -0.163321, 0.0676495, 0.23097, -0.0676497, 0.0676495, -0.23097, -0.0676497, 0.125, -0.176777, -0.125, 0.176777, -3.1711e-08, -0.176777, 0.125, 0.176777, -0.125, 0.16332, -0.0956709, -0.163321, 0.16332, 0.0956708, -0.163321, 0.16332, -0.176777, -0.0676497, 0.23097, -3.1711e-08, -0.095671, 0.16332, 0.176777, -0.0676497, 0.0883883, -0.23097, -0.0366118, 0.213388, -0.0956709, -0.0883885, 0.213388, 0.0956708, -0.0883885, 0.0883883, 0.23097, -0.0366118, 0.0956708, -0.23097, -1.80956e-07, 0.23097, -0.0956709, -1.6978e-07, 0.23097, 0.0956708, -1.6978e-07, 0.0956708, 0.23097, -1.99582e-07, 0.176777, -0.176777, -1.84681e-07, 0.25, -3.1711e-08, -1.6978e-07, 0.176777, 0.176777, -1.84681e-07, 0.213388, -0.0956709, 0.0883882, 0.213388, 0.0956708, 0.0883882, 0.0883883, 0.23097, 0.0366114, 0.0883883, -0.23097, 0.0366115, 0.16332, -0.176777, 0.0676493, 0.23097, -3.1711e-08, 0.0956707, 0.16332, 0.176777, 0.0676493, 0.0883883, -0.23097, 0.0366115, 0.0676495, -0.23097, 0.0676493, 0.125, -0.176777, 0.125, 0.176777, -3.1711e-08, 0.176776, 0.125, 0.176777, 0.125, 0.0676495, -0.23097, 0.0676493, 0.16332, -0.0956709, 0.16332, 0.16332, 0.0956708, 0.16332, 0.0676495, 0.23097, 0.0676493, 0.0956708, -3.1711e-08, 0.23097, 0.0676494, 0.176777, 0.16332, 0.0366116, -0.23097, 0.0883881, 0.0883883, -0.0956709, 0.213388, 0.0883883, 0.0956708, 0.213388, 0.0366116, 0.23097, 0.0883881, 0.0366116, -0.23097, 0.0883881, 0.0676494, -0.176777, 0.16332, -3.04525e-08, -0.23097, 0.0956706, -6.39802e-08, -0.0956709, 0.23097, -6.39802e-08, 0.0956708, 0.23097, -8.1008e-09, 0.23097, 0.0956706, -3.04525e-08, -0.23097, 0.0956706, -5.65296e-08, -0.176777, 0.176776, -7.14307e-08, -3.1711e-08, 0.25, -5.65296e-08, 0.176777, 0.176776, -0.0883884, 0.0956708, 0.213388, -0.0366117, 0.23097, 0.0883881, -0.0366117, -0.23097, 0.0883881, -0.0676495, -0.176777, 0.16332, -0.0956709, -3.1711e-08, 0.23097, -0.0676495, 0.176777, 0.16332, -0.0366117, -0.23097, 0.0883881, -0.0883884, -0.0956709, 0.213388, -0.0676495, -0.23097, 0.0676493, -0.125, -0.176777, 0.125, -0.176777, -3.1711e-08, 0.176776, -0.125, 0.176777, 0.125, -0.0676495, -0.23097, 0.0676493, -0.16332, -0.0956709, 0.16332, -0.16332, 0.0956708, 0.16332, -0.0676495, 0.23097, 0.0676493, -0.16332, 0.176777, 0.0676492, -0.0883883, -0.23097, 0.0366114, -0.213388, -0.0956709, 0.088388, -0.213388, 0.0956708, 0.088388, -0.0883883, 0.23097, 0.0366114, -0.0883883, -0.23097, 0.0366114, -0.16332, -0.176777, 0.0676492, -0.23097, -3.1711e-08, 0.0956705, -0.16332, -0.176777, 0.0676492, -0.0956708, -0.23097, -2.51737e-07, -0.23097, -3.1711e-08, 0.0956705, -0.23097, -0.0956709, -2.9644e-07, -0.213388, -0.0956709, 0.088388, -0.16332, 0.176777, 0.0676492, -0.23097, 0.0956708, -2.9644e-07, -0.213388, 0.0956708, 0.088388, -0.0883883, 0.23097, 0.0366114, 1.00704e-08, 0.25, -1.66907e-07, -0.0956708, 0.23097, -2.29385e-07, -0.176777, -0.176777, -2.88989e-07, -0.25, -3.1711e-08, -3.18792e-07, -0.176777, 0.176777, -2.88989e-07, -0.0956708, 0.23097, -2.29385e-07, 1.00704e-08, 0.25, -1.66907e-07, -0.0883883, 0.23097, -0.0366119, -0.0883883, -0.23097, -0.0366119, -0.16332, -0.176777, -0.0676498, -0.23097, -3.1711e-08, -0.0956711, -0.16332, 0.176777, -0.0676498, -0.213388, -0.0956709, -0.0883886, -0.213388, 0.0956708, -0.0883886, -0.125, -0.176777, -0.125, -0.176777, -3.1711e-08, -0.176777, -0.0883883, 0.23097, -0.0366119, -0.125, 0.176777, -0.125, -0.0676494, -0.23097, -0.0676497, -0.16332, -0.0956709, -0.163321, -0.16332, 0.0956708, -0.163321, -0.0676494, 0.23097, -0.0676497, -0.0366116, -0.23097, -0.0883885, -0.0883882, -0.0956709, -0.213389, -0.0883882, 0.0956708, -0.213389, -0.0366116, 0.23097, -0.0883885, -0.0676494, -0.176777, -0.163321, -0.0956707, -3.1711e-08, -0.23097, -0.0676494, 0.176777, -0.163321),
Vector3Array(0.0, -0.695151, -0.718833, 0.154241, -0.915159, -0.372387, 0.0, -0.915159, -0.403088, 0.0, 0.0, -0.999969, 0.354839, -0.37434, -0.856685, 0.0, -0.37434, -0.927274, 0.0, 0.695151, -0.718833, 0.354839, 0.37434, -0.856685, 0.0, 0.37434, -0.927274, 0.0, 0.915159, -0.403088, 0.0, 1.0, 0.0, 0.154241, 0.915159, -0.372387, 0.0, -1.0, 0.0, 0.275094, -0.695151, -0.664113, 0.382672, 0.0, -0.923856, 0.275094, 0.695151, -0.664113, 0.285012, 0.915159, -0.285012, 0.285012, -0.915159, -0.285012, 0.508286, -0.695151, -0.508286, 0.707083, 0.0, -0.707083, 0.508286, 0.695151, -0.508286, 0.65566, -0.37434, -0.65566, 0.65566, 0.37434, -0.65566, 0.664113, -0.695151, -0.275094, 0.923856, 0.0, -0.382672, 0.664113, 0.695151, -0.275094, 0.372387, -0.915159, -0.154241, 0.856685, -0.37434, -0.354839, 0.856685, 0.37434, -0.354839, 0.372387, 0.915159, -0.154241, 0.403088, -0.915159, 0.0, 0.927274, -0.37434, 0.0, 0.927274, 0.37434, 0.0, 0.403088, 0.915159, 0.0, 0.718833, -0.695151, 0.0, 1.0, 0.0, 0.0, 0.718833, 0.695151, 0.0, 0.856685, -0.37434, 0.354839, 0.856685, 0.37434, 0.354839, 0.372387, 0.915159, 0.154241, 0.372387, -0.915159, 0.154241, 0.664113, -0.695151, 0.275094, 0.923856, 0.0, 0.382672, 0.664113, 0.695151, 0.275094, 0.372387, -0.915159, 0.154241, 0.285012, -0.915159, 0.285012, 0.508286, -0.695151, 0.508286, 0.707083, 0.0, 0.707083, 0.508286, 0.695151, 0.508286, 0.285012, -0.915159, 0.285012, 0.65566, -0.37434, 0.65566, 0.65566, 0.37434, 0.65566, 0.285012, 0.915159, 0.285012, 0.382672, 0.0, 0.923856, 0.275094, 0.695151, 0.664113, 0.154241, -0.915159, 0.372387, 0.354839, -0.37434, 0.856685, 0.354839, 0.37434, 0.856685, 0.154241, 0.915159, 0.372387, 0.154241, -0.915159, 0.372387, 0.275094, -0.695151, 0.664113, 0.0, -0.915159, 0.403088, 0.0, -0.37434, 0.927274, 0.0, 0.37434, 0.927274, 0.0, 0.915159, 0.403088, 0.0, -0.915159, 0.403088, 0.0, -0.695151, 0.718833, 0.0, 0.0, 1.0, 0.0, 0.695151, 0.718833, -0.354839, 0.37434, 0.856685, -0.154241, 0.915159, 0.372387, -0.154241, -0.915159, 0.372387, -0.275094, -0.695151, 0.664113, -0.382672, 0.0, 0.923856, -0.275094, 0.695151, 0.664113, -0.154241, -0.915159, 0.372387, -0.354839, -0.37434, 0.856685, -0.285012, -0.915159, 0.285012, -0.508286, -0.695151, 0.508286, -0.707083, 0.0, 0.707083, -0.508286, 0.695151, 0.508286, -0.285012, -0.915159, 0.285012, -0.65566, -0.37434, 0.65566, -0.65566, 0.37434, 0.65566, -0.285012, 0.915159, 0.285012, -0.664113, 0.695151, 0.275094, -0.372387, -0.915159, 0.154241, -0.856685, -0.37434, 0.354839, -0.856685, 0.37434, 0.354839, -0.372387, 0.915159, 0.154241, -0.372387, -0.915159, 0.154241, -0.664113, -0.695151, 0.275094, -0.923856, 0.0, 0.382672, -0.664113, -0.695151, 0.275094, -0.403088, -0.915159, 0.0, -0.923856, 0.0, 0.382672, -0.927274, -0.37434, 0.0, -0.856685, -0.37434, 0.354839, -0.664113, 0.695151, 0.275094, -0.927274, 0.37434, 0.0, -0.856685, 0.37434, 0.354839, -0.372387, 0.915159, 0.154241, 0.0, 1.0, 0.0, -0.403088, 0.915159, 0.0, -0.718833, -0.695151, 0.0, -1.0, 0.0, 0.0, -0.718833, 0.695151, 0.0, -0.403088, 0.915159, 0.0, 0.0, 1.0, 0.0, -0.372387, 0.915159, -0.154241, -0.372387, -0.915159, -0.154241, -0.664113, -0.695151, -0.275094, -0.923856, 0.0, -0.382672, -0.664113, 0.695151, -0.275094, -0.856685, -0.37434, -0.354839, -0.856685, 0.37434, -0.354839, -0.508286, -0.695151, -0.508286, -0.707083, 0.0, -0.707083, -0.372387, 0.915159, -0.154241, -0.508286, 0.695151, -0.508286, -0.285012, -0.915159, -0.285012, -0.65566, -0.37434, -0.65566, -0.65566, 0.37434, -0.65566, -0.285012, 0.915159, -0.285012, -0.154241, -0.915159, -0.372387, -0.354839, -0.37434, -0.856685, -0.354839, 0.37434, -0.856685, -0.154241, 0.915159, -0.372387, -0.275094, -0.695151, -0.664113, -0.382672, 0.0, -0.923856, -0.275094, 0.695151, -0.664113),
FloatArray(-0.958907, -0.203951, 0.197232, 1.0, -0.937667, -0.254385, 0.236789, 1.0, -0.853661, -0.209941, 0.476643, 1.0, -0.978172, -0.207797, 3.84017e-09, 1.0, -0.933094, -0.199117, -0.29948, 1.0, -0.974845, -0.206679, 0.0834362, 1.0, -0.958114, -0.205869, -0.199087, 1.0, -0.875426, -0.188629, -0.445025, 1.0, -0.974653, -0.207453, -0.0837485, 1.0, -0.844418, -0.215929, -0.490237, 1.0, 0.0123797, 0.0, -0.999923, 1.0, -0.696899, -0.166403, -0.697597, 1.0, -0.014371, 0.0, 0.999897, 1.0, -0.961361, -0.20627, -0.182312, 1.0, -0.906266, -0.194341, -0.375385, 1.0, -0.827946, -0.179831, -0.531193, 1.0, -0.49575, -0.113747, -0.860984, 1.0, -0.957239, -0.287148, -0.0352203, 1.0, -0.805029, -0.17392, -0.567169, 1.0, -0.698935, -0.151591, -0.698935, 1.0, -0.603552, -0.133458, -0.786075, 1.0, -0.742068, -0.15929, -0.651124, 1.0, -0.657428, -0.143984, -0.739633, 1.0, -0.46925, -0.101141, -0.877254, 1.0, -0.3813, -0.0849055, -0.920544, 1.0, -0.315208, -0.0733027, -0.946187, 1.0, -0.886627, -0.301696, -0.350532, 1.0, -0.414433, -0.089997, -0.905619, 1.0, -0.351387, -0.0800511, -0.932802, 1.0, -0.253902, -0.0593939, -0.965405, 1.0, -0.0180772, -0.00796226, -0.999805, 1.0, -0.00106191, -0.00263047, -0.999996, 1.0, 0.0021872, -0.00541788, -0.999983, 1.0, 0.0102995, -0.0045365, -0.999937, 1.0, 0.000743075, 0.000768339, -0.999999, 1.0, 0.0, -0.0042966, -0.999991, 1.0, 0.00571335, -0.00590798, -0.999966, 1.0, 0.412633, 0.084609, -0.906959, 1.0, 0.355538, 0.0698369, -0.932049, 1.0, 0.275553, 0.0496731, -0.960002, 1.0, 0.8421, 0.40305, 0.358356, 1.0, 0.466676, 0.0979978, -0.878982, 1.0, 0.38155, 0.0768385, -0.921149, 1.0, 0.325968, 0.0619008, -0.943352, 1.0, 0.590717, 0.105547, -0.799946, 1.0, 0.846482, 0.379817, 0.373104, 1.0, 0.802607, 0.16845, -0.572229, 1.0, 0.699615, 0.145179, -0.699615, 1.0, 0.612306, 0.123307, -0.780946, 1.0, 0.903189, 0.15685, -0.399559, 1.0, 0.74132, 0.154451, -0.653138, 1.0, 0.6608, 0.135591, -0.738213, 1.0, 0.519796, 0.10226, -0.848148, 1.0, 0.906926, 0.190697, -0.375659, 1.0, 0.833494, 0.171841, -0.525127, 1.0, 0.985373, 0.170119, 0.00993377, 1.0, 0.933272, 0.196281, -0.300793, 1.0, 0.877389, 0.183153, -0.443445, 1.0, 0.722617, 0.152551, -0.674205, 1.0, 0.826127, 0.326193, 0.45947, 1.0, 0.961401, 0.202781, -0.18598, 1.0, 0.916859, 0.160918, 0.365342, 1.0, 0.974822, 0.206771, 0.0834733, 1.0, 0.975033, 0.205913, -0.0831271, 1.0, 0.868262, 0.199975, -0.454017, 1.0, 0.770893, 0.256753, 0.582926, 1.0, 0.959217, 0.203198, 0.196504, 1.0, 0.978183, 0.207744, 0.0, 1.0, 0.960034, 0.201195, -0.194566, 1.0, 0.93308, 0.199329, 0.299382, 1.0, 0.948244, 0.242995, -0.204417, 1.0, 0.657349, 0.186329, 0.730188, 1.0, 0.830118, 0.176724, 0.528841, 1.0, 0.90624, 0.19448, 0.375375, 1.0, 0.961383, 0.204568, 0.184103, 1.0, 0.751759, 0.135874, 0.645288, 1.0, 0.875835, 0.187497, 0.4447, 1.0, 0.480086, 0.121066, 0.868827, 1.0, 0.606329, 0.130257, 0.784473, 1.0, 0.698855, 0.152324, 0.698855, 1.0, 0.805417, 0.174808, 0.566344, 1.0, 0.526928, 0.0987944, 0.844148, 1.0, 0.657933, 0.142737, 0.739426, 1.0, 0.742386, 0.161392, 0.650242, 1.0, 0.95836, 0.277559, 0.0671289, 1.0, 0.587255, 0.25734, 0.767403, 1.0, 0.378682, 0.00190102, 0.925525, 1.0, 0.365567, 0.044695, 0.929711, 1.0, 0.450474, 0.207876, 0.868251, 1.0, 0.919294, 0.340924, 0.196646, 1.0, 0.213486, 0.0772678, 0.973886, 1.0, 0.381675, 0.00114878, 0.924296, 1.0, 0.379638, 0.126069, 0.916505, 1.0, 0.251827, 0.138448, 0.957818, 1.0, -0.00533275, 0.00234885, 0.999983, 1.0, 0.382257, 0.0465838, 0.922881, 1.0, -0.00171131, 0.00423909, 0.99999, 1.0, 0.33772, 0.11287, 0.934455, 1.0, 0.342066, -0.0446388, 0.938615, 1.0, 0.00353571, 0.00875827, 0.999955, 1.0, 0.375119, -0.019988, 0.926761, 1.0, 0.809211, 0.238803, 0.536796, 1.0, 0.948424, 0.0, -0.317003, 1.0, 0.414588, 0.182608, 0.8915, 1.0, -0.00265752, 0.00274806, 0.999993, 1.0, 0.0, 0.00618153, 0.999981, 1.0, 0.0134325, 0.0138901, 0.999813, 1.0, 0.841318, 0.370564, 0.393529, -1.0, 0.919001, 0.0, 0.394255, -1.0, 0.840611, 0.403034, 0.361852, -1.0, -0.269303, -0.0524899, 0.961624, 1.0, -0.322981, -0.0650772, 0.944165, 1.0, -0.381596, -0.075268, 0.92126, 1.0, -0.459512, -0.0892975, 0.883671, 1.0, -0.35505, -0.0710448, 0.932144, 1.0, -0.410968, -0.0796563, 0.908163, 1.0, -0.609561, -0.126509, 0.782579, 1.0, -0.699701, -0.144351, 0.699701, 1.0, -0.8017, -0.233481, 0.55024, 1.0, -0.801969, -0.167024, 0.573541, 1.0, -0.510007, -0.106973, 0.853492, 1.0, -0.660302, -0.136839, 0.738428, 1.0, -0.74094, -0.152043, 0.654133, 1.0, -0.956693, -0.28997, 0.0256133, 1.0, -0.70913, -0.15991, 0.686705, 1.0, -0.876976, -0.184314, 0.443781, 1.0, -0.933296, -0.195886, 0.300976, 1.0, -0.932589, -0.259332, -0.251049, 1.0, -0.831334, -0.174972, 0.527511, 1.0, -0.906961, -0.190502, 0.375673, 1.0, -0.961387, -0.204271, 0.184415, 1.0),
null, ; no Vertex Colors,
Vector2Array(0.775483, 0.74144, 0.764845, 0.882155, 0.816442, 0.857532, 0.74286, 0.498356, 0.694937, 0.646332, 0.756572, 0.620457, 0.709916, 0.255341, 0.669111, 0.40142, 0.729091, 0.376266, 0.667717, 0.139531, 0.489013, 0.0670213, 0.62083, 0.161056, 0.989012, 0.932979, 0.714845, 0.767385, 0.68163, 0.523954, 0.652883, 0.279627, 0.576711, 0.177605, 0.702406, 0.908105, 0.648156, 0.791679, 0.619721, 0.546025, 0.59834, 0.299284, 0.630542, 0.669376, 0.610114, 0.422488, 0.574069, 0.809721, 0.556774, 0.561191, 0.545072, 0.312185, 0.617222, 0.930989, 0.563075, 0.685656, 0.55141, 0.436647, 0.533918, 0.188134, 0.497322, 0.941978, 0.493427, 0.691999, 0.492709, 0.442002, 0.491667, 0.192008, 0.494129, 0.816995, 0.493036, 0.567001, 0.492328, 0.317004, 0.423633, 0.687052, 0.434004, 0.437832, 0.449445, 0.188996, 1.37398, 0.933265, 0.413779, 0.811308, 0.429244, 0.562474, 0.439611, 0.313255, 0.373982, 0.933265, 1.28476, 0.911285, 0.338783, 0.794395, 0.366171, 0.548376, 0.386443, 0.301315, 0.284758, 0.911285, 0.355813, 0.671875, 0.375309, 0.4247, 0.406754, 0.179279, 0.30414, 0.527003, 0.332116, 0.282408, 0.220275, 0.885412, 0.291029, 0.649472, 0.316378, 0.404363, 0.362863, 0.163439, 1.22027, 0.885412, 0.271202, 0.770623, 0.167717, 0.860469, 0.229091, 0.623734, 0.256572, 0.379543, 0.316443, 0.142468, 1.16772, 0.860469, 0.209916, 0.744659, 0.24286, 0.501644, 0.275483, 0.25856, 0.194937, 0.353668, 0.264845, 0.117845, 1.12083, 0.838944, 0.152883, 0.720373, 0.18163, 0.476045, 0.214845, 0.232615, 0.12083, 0.838944, 0.169111, 0.59858, 1.07671, 0.822395, 0.0983397, 0.700716, 0.119721, 0.453975, 0.148156, 0.208321, 0.0767111, 0.822395, 0.110114, 0.577512, 0.130542, 0.330624, 0.202406, 0.0918945, 0.0740687, 0.190279, 0.0339175, 0.811866, 0.0514098, 0.563353, 0.0630745, 0.314344, 0.117222, 0.0690107, 1.03392, 0.811866, 0.0450724, 0.687815, 0.0567741, 0.438809, 1.04507, 0.687815, 0.991667, 0.807992, 1.05677, 0.438809, 0.992709, 0.557998, 1.05141, 0.563353, 1.07407, 0.190279, 0.993427, 0.308001, 1.06307, 0.314344, 1.11722, 0.0690107, 1.48901, 0.0670213, 0.997321, 0.0580215, 0.992327, 0.682996, 0.993036, 0.432999, 0.994129, 0.183005, 0.997321, 0.0580215, 1.48901, 0.0670213, 0.873982, 0.0667347, 0.949445, 0.811004, 0.93961, 0.686745, 0.929244, 0.437526, 0.913778, 0.188692, 0.934004, 0.562168, 0.923633, 0.312949, 0.886443, 0.698685, 0.866171, 0.451624, 0.873982, 0.0667347, 0.838783, 0.205605, 0.906754, 0.820721, 0.875309, 0.5753, 0.855813, 0.328125, 0.784758, 0.0887151, 0.862863, 0.836561, 0.816378, 0.595637, 0.791029, 0.350528, 0.720275, 0.114588, 0.832116, 0.717592, 0.80414, 0.472997, 0.771202, 0.229377),
null, ; No UV2,
null, ; No Bones,
null, ; No Weights,
IntArray(0, 2, 1, 3, 5, 4, 6, 8, 7, 9, 11, 10, 12, 1, 2, 5, 0, 13, 8, 3, 14, 9, 6, 15, 11, 16, 10, 12, 17, 1, 4, 13, 18, 7, 14, 19, 11, 15, 20, 13, 1, 17, 14, 4, 21, 15, 7, 22, 21, 18, 23, 22, 19, 24, 16, 20, 25, 18, 17, 26, 19, 21, 27, 20, 22, 28, 16, 29, 10, 12, 26, 17, 23, 26, 30, 24, 27, 31, 25, 28, 32, 29, 33, 10, 12, 30, 26, 27, 23, 34, 28, 24, 35, 29, 25, 36, 35, 31, 37, 36, 32, 38, 33, 39, 10, 12, 40, 30, 31, 34, 41, 32, 35, 42, 33, 36, 43, 34, 30, 44, 12, 45, 40, 37, 41, 46, 38, 42, 47, 39, 43, 48, 41, 44, 49, 42, 37, 50, 43, 38, 51, 39, 52, 10, 51, 47, 53, 52, 48, 54, 46, 49, 55, 47, 50, 56, 48, 51, 57, 52, 58, 10, 12, 59, 45, 50, 46, 60, 60, 55, 61, 53, 56, 62, 54, 57, 63, 58, 64, 10, 12, 65, 59, 56, 60, 66, 57, 53, 67, 58, 54, 68, 68, 63, 69, 64, 70, 10, 12, 71, 65, 62, 66, 72, 63, 67, 73, 64, 68, 74, 66, 61, 75, 67, 62, 76, 12, 77, 71, 76, 72, 78, 69, 73, 79, 70, 74, 80, 72, 75, 81, 73, 76, 82, 74, 69, 83, 70, 84, 10, 84, 80, 85, 78, 81, 86, 79, 82, 87, 80, 83, 88, 84, 89, 10, 12, 90, 77, 82, 78, 91, 83, 79, 92, 93, 90, 94, 95, 97, 96, 98, 100, 99, 101, 103, 102, 12, 94, 90, 97, 93, 104, 100, 95, 105, 101, 98, 106, 107, 109, 108, 12, 110, 94, 96, 104, 111, 99, 105, 112, 103, 106, 113, 104, 94, 110, 105, 96, 114, 106, 99, 115, 114, 111, 116, 115, 112, 117, 118, 113, 119, 111, 110, 120, 112, 114, 121, 113, 115, 122, 118, 123, 10, 12, 120, 110, 116, 120, 124, 117, 121, 125, 119, 122, 126, 123, 127, 10, 12, 124, 120, 121, 116, 128, 122, 117, 129, 123, 119, 130, 129, 125, 5, 130, 126, 8, 127, 9, 10, 12, 2, 124, 125, 128, 0, 126, 129, 3, 127, 130, 6, 128, 124, 2, 0, 1, 13, 3, 4, 14, 6, 7, 15, 5, 13, 4, 8, 14, 7, 9, 15, 11, 4, 18, 21, 7, 19, 22, 11, 20, 16, 13, 17, 18, 14, 21, 19, 15, 22, 20, 21, 23, 27, 22, 24, 28, 16, 25, 29, 18, 26, 23, 19, 27, 24, 20, 28, 25, 23, 30, 34, 24, 31, 35, 25, 32, 36, 27, 34, 31, 28, 35, 32, 29, 36, 33, 35, 37, 42, 36, 38, 43, 31, 41, 37, 32, 42, 38, 33, 43, 39, 34, 44, 41, 37, 46, 50, 38, 47, 51, 39, 48, 52, 41, 49, 46, 42, 50, 47, 43, 51, 48, 51, 53, 57, 52, 54, 58, 46, 55, 60, 47, 56, 53, 48, 57, 54, 50, 60, 56, 60, 61, 66, 53, 62, 67, 54, 63, 68, 56, 66, 62, 57, 67, 63, 58, 68, 64, 68, 69, 74, 62, 72, 76, 63, 73, 69, 64, 74, 70, 66, 75, 72, 67, 76, 73, 76, 78, 82, 69, 79, 83, 70, 80, 84, 72, 81, 78, 73, 82, 79, 74, 83, 80, 84, 85, 89, 78, 86, 91, 79, 87, 92, 80, 88, 85, 82, 91, 87, 83, 92, 88, 93, 94, 104, 95, 96, 105, 98, 99, 106, 97, 104, 96, 100, 105, 99, 101, 106, 103, 96, 111, 114, 99, 112, 115, 103, 113, 118, 104, 110, 111, 105, 114, 112, 106, 115, 113, 114, 116, 121, 115, 117, 122, 118, 119, 123, 111, 120, 116, 112, 121, 117, 113, 122, 119, 116, 124, 128, 117, 125, 129, 119, 126, 130, 121, 128, 125, 122, 129, 126, 123, 130, 127, 129, 5, 3, 130, 8, 6, 125, 0, 5, 126, 3, 8, 127, 6, 9, 128, 2, 0)
],
"morph_arrays":[]
}
[node type="Spatial" name="Scene"]
[node name="ball" type="MeshInstance" parent="."]
mesh = SubResource(2)
visible = true
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)

1062
proto2/ball/ball.escn.import Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,47 @@
extends KinematicBody
var orientation: Transform
var velocity: Vector3 = Vector3()
var skel: Skeleton
const GRAVITY = Vector3(0, -9.8, 0)
# 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():
orientation = Transform()
skel = get_children()[0]
func idle():
var sm: AnimationNodeStateMachinePlayback = $AnimationTree["parameters/base/playback"]
sm.travel("Idle")
func walk():
var sm: AnimationNodeStateMachinePlayback = $AnimationTree["parameters/base/playback"]
sm.travel("Walk")
func set_walk_speed(spd: float):
$AnimationTree["parameters/base/Walk/speed/scale"] = spd
func get_walk_speed() -> float:
return $AnimationTree["parameters/base/Walk/speed/scale"]
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _process(delta):
orientation = global_transform
orientation.origin = Vector3()
var sm: AnimationNodeStateMachinePlayback = $AnimationTree["parameters/base/playback"]
var rm = $AnimationTree.get_root_motion_transform()
orientation *= rm
var h_velocity = orientation.origin / delta
velocity.x = h_velocity.x
velocity.z = h_velocity.z
if !is_on_floor():
velocity += GRAVITY * delta
velocity = move_and_slide(velocity, Vector3(0, 1, 0))
if is_in_group("master"):
orientation *= controls.frame_tf
controls.frame_tf = Transform()
orientation.origin = Vector3()
orientation = orientation.orthonormalized()
global_transform.basis = orientation.basis
skel.rotation = Vector3()

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,66 @@
[gd_scene load_steps=14 format=2]
[ext_resource path="res://characters/female_2018.escn" type="PackedScene" id=1]
[sub_resource type="AnimationNodeAdd2" id=1]
[sub_resource type="AnimationNodeAnimation" id=2]
animation = "stand"
[sub_resource type="AnimationNodeAnimation" id=3]
animation = "additive-wiggling-loop"
[sub_resource type="AnimationNodeBlendTree" id=4]
nodes/Add2/node = SubResource( 1 )
nodes/Add2/position = Vector2( 580, 120 )
nodes/Animation/node = SubResource( 3 )
nodes/Animation/position = Vector2( 100, 260 )
"nodes/Animation 2/node" = SubResource( 2 )
"nodes/Animation 2/position" = Vector2( 120, 100 )
nodes/output/position = Vector2( 1020, 160 )
node_connections = [ "output", 0, "Add2", "Add2", 0, "Animation 2", "Add2", 1, "Animation" ]
[sub_resource type="AnimationNodeAnimation" id=5]
animation = "walk-loop"
[sub_resource type="AnimationNodeTimeScale" id=6]
[sub_resource type="AnimationNodeBlendTree" id=7]
nodes/Animation/node = SubResource( 5 )
nodes/Animation/position = Vector2( 80, 120 )
nodes/TimeScale/node = SubResource( 6 )
nodes/TimeScale/position = Vector2( 400, 120 )
nodes/output/position = Vector2( 820, 160 )
node_connections = [ "output", 0, "TimeScale", "TimeScale", 0, "Animation" ]
[sub_resource type="AnimationNodeStateMachineTransition" id=8]
[sub_resource type="AnimationNodeStateMachineTransition" id=9]
[sub_resource type="AnimationNodeStateMachine" id=10]
states/Idle/node = SubResource( 4 )
states/Idle/position = Vector2( 194, 105 )
states/Walk/node = SubResource( 7 )
states/Walk/position = Vector2( 344, 217 )
transitions = [ "Idle", "Walk", SubResource( 8 ), "Walk", "Idle", SubResource( 9 ) ]
start_node = "Idle"
[sub_resource type="AnimationNodeBlendTree" id=11]
graph_offset = Vector2( 0, -268.75 )
nodes/base/node = SubResource( 10 )
nodes/base/position = Vector2( 80, 140 )
nodes/output/position = Vector2( 420, 140 )
node_connections = [ "output", 0, "base" ]
[sub_resource type="AnimationNodeStateMachinePlayback" id=12]
[node name="female_2018" index="0" instance=ExtResource( 1 )]
[node name="AnimationTree" type="AnimationTree" parent="." index="1"]
tree_root = SubResource( 11 )
anim_player = NodePath("../female_2018/AnimationPlayer")
active = true
root_motion_track = NodePath(".:root")
parameters/base/playback = SubResource( 12 )
parameters/base/Idle/Add2/add_amount = 0.3
parameters/base/Walk/TimeScale/scale = 1.0

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,13 @@
Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -0,0 +1,92 @@
This Font Software is licensed under the SIL Open Font License,
Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -0,0 +1,45 @@
The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License
The work in the DejaVu project was committed to the public domain.
Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"
### MIT License
Copyright (c) 2018 Source Foundry Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
### BITSTREAM VERA LICENSE
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

40
proto2/main.gd Normal file
View File

@@ -0,0 +1,40 @@
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
var frame_tf: Transform = Transform()
func _ready():
$master.add_to_group("master")
controls.master_node = $master
world.init_data()
for k in world.line.keys():
var cd = world.line[k]
if cd.type == 0:
var char_sc = load("res://characters/male_2018.tscn").instance()
cd.scene = char_sc
get_tree().get_root().add_child(char_sc)
var nav: Navigation2D = get_node("nav")
var p = nav.get_closest_point(get_node("line_spawn").global_transform.origin + Vector3(randf() * 20.0 - 10.0, 0.0, randf() * 20 - 10.0))
char_sc.translation = p
# world.team[newkey] = cd
# world.line.erase(k)
else:
var char_sc = load("res://characters/female_2018.tscn").instance()
cd.scene = char_sc
get_tree().get_root().add_child(char_sc)
var nav: Navigation2D = get_node("nav")
var p = nav.get_closest_point(get_node("line_spawn").global_transform.origin + Vector3(randf() * 20.0 - 10.0, 0.0, randf() * 20 - 10.0))
char_sc.translation = p
# world.team[newkey] = cd
# cd.scene.set_meta("data", cd)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var pos = $master.global_transform.origin
pos.y = $Camera.global_transform.origin.y
$Camera.global_transform.origin = $Camera.global_transform.origin.linear_interpolate(pos, 0.53 * delta)

57
proto2/main.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@@ -25,6 +25,7 @@ run/main_scene="res://ui/menu_root.tscn"
[autoload]
world="*res://autoloads/world.gd"
controls="*res://autoloads/controls.gd"
[input]

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

21
proto2/walls/walls.tscn Normal file

File diff suppressed because one or more lines are too long