Skip to content
Snippets Groups Projects
Commit 5de7c7a4 authored by Max Schmidt's avatar Max Schmidt
Browse files
parents f1bc86eb d14d4936
No related branches found
No related tags found
No related merge requests found
[preset.0]
name="Web"
platform="Web"
runnable=true
advanced_options=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../../../../Desktop/gamejam/index.html"
patches=PackedStringArray()
encryption_include_filters=""
encryption_exclude_filters=""
seed=0
encrypt_pck=false
encrypt_directory=false
script_export_mode=2
[preset.0.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
variant/thread_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/ensure_cross_origin_isolation_headers=true
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)
...@@ -15,5 +15,5 @@ var _score_timer := Timer.new() ...@@ -15,5 +15,5 @@ var _score_timer := Timer.new()
func start_round(): func start_round():
add_child(_score_timer) add_child(_score_timer)
_score_timer.timeout.connect(func(): score += 5) _score_timer.timeout.connect(func(): score += 1)
_score_timer.start(1.0) _score_timer.start(1.0)
...@@ -32,6 +32,10 @@ func _ready() -> void: ...@@ -32,6 +32,10 @@ func _ready() -> void:
check_for_drown(poly) check_for_drown(poly)
func _process(delta: float) -> void:
var offset = Vector2(0, 10).rotated(polygon_node.rotation)
shadow_polygon_node.global_position = polygon_node.global_position + offset
func check_for_drown(poly): func check_for_drown(poly):
$ShadowPolygon2D.material = $ShadowPolygon2D.material.duplicate(true) $ShadowPolygon2D.material = $ShadowPolygon2D.material.duplicate(true)
if polygon_area(poly) < min_area: if polygon_area(poly) < min_area:
......
[gd_scene load_steps=10 format=3 uid="uid://ch1i0q8d6r4f0"] [gd_scene load_steps=10 format=3 uid="uid://ch1i0q8d6r4f0"]
[ext_resource type="Script" path="res://schollen_spektakel.gd" id="1_ij3xc"] [ext_resource type="Script" uid="uid://cik8umdfv5587" path="res://schollen_spektakel.gd" id="1_ij3xc"]
[ext_resource type="PackedScene" uid="uid://d1vv1o7g2lp01" path="res://water/water.tscn" id="2_hycu0"] [ext_resource type="PackedScene" uid="uid://d1vv1o7g2lp01" path="res://water/water.tscn" id="2_hycu0"]
[ext_resource type="PackedScene" uid="uid://diilm3qbp1tly" path="res://ice_floe/ice_floe.tscn" id="2_ij3xc"] [ext_resource type="PackedScene" uid="uid://diilm3qbp1tly" path="res://ice_floe/ice_floe.tscn" id="2_ij3xc"]
[ext_resource type="PackedScene" uid="uid://b23bxmjrcknm3" path="res://center_pos.tscn" id="4_6ndi4"] [ext_resource type="PackedScene" uid="uid://b23bxmjrcknm3" path="res://center_pos.tscn" id="4_6ndi4"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment