Import current DEMON v0.19 source, assets and development handoff

This commit is contained in:
JariKo
2026-10-28 15:39:06 +02:00
commit 2b9ae06592
347 changed files with 14404 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
extends Control
var slots=1
var filled=0:
set(value):filled=clampi(value,0,slots);queue_redraw()
func _draw():
for i in range(slots):
var center=Vector2(size.x*.5+(i-(slots-1)*.5)*21,size.y*.5)
var points=PackedVector2Array([center+Vector2(0,-7),center+Vector2(6,0),center+Vector2(0,7),center+Vector2(-6,0)])
draw_colored_polygon(points,Color("981d36") if i<filled else Color("172022"))
var outline=points.duplicate();outline.append(points[0]);draw_polyline(outline,Color("c6b59a") if i<filled else Color("8b9690"),1.1,true)
if i<filled:
draw_colored_polygon(PackedVector2Array([points[0],points[3],center]),Color("f16b78"))
draw_colored_polygon(PackedVector2Array([points[0],points[1],center]),Color("c52c4a"))
draw_colored_polygon(PackedVector2Array([points[1],points[2],center]),Color("70132c"))
draw_line(center+Vector2(-1,-4),center+Vector2(1,-2),Color("ffe3da"),1.3,true)