-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from GameLab-UNIL-EPFL/brewgame
First draft of the Brewing minigame
- Loading branch information
Showing
13 changed files
with
665 additions
and
23 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
[gd_scene load_steps=19 format=2] | ||
|
||
[ext_resource path="res://assets/02_architecture/03_brewery/backGround.png" type="Texture" id=1] | ||
[ext_resource path="res://assets/02_architecture/03_brewery/cuve.png" type="Texture" id=2] | ||
[ext_resource path="res://src/BrewGame.cs" type="Script" id=3] | ||
[ext_resource path="res://assets/02_architecture/03_brewery/wall.png" type="Texture" id=4] | ||
[ext_resource path="res://assets/06_UI_menus/Arrows.png" type="Texture" id=5] | ||
[ext_resource path="res://src/shaders/BrewGame.gdshader" type="Shader" id=7] | ||
|
||
[sub_resource type="ShaderMaterial" id=7] | ||
shader = ExtResource( 7 ) | ||
shader_param/burntColor = Plane( 0.3398, 0.23047, 0.10156, 0 ) | ||
|
||
[sub_resource type="AtlasTexture" id=13] | ||
atlas = ExtResource( 5 ) | ||
region = Rect2( 1, 1, 13, 13 ) | ||
|
||
[sub_resource type="AtlasTexture" id=14] | ||
atlas = ExtResource( 5 ) | ||
region = Rect2( 13.5, 1, 12, 13 ) | ||
|
||
[sub_resource type="AnimatedTexture" id=15] | ||
frames = 2 | ||
fps = 2.0 | ||
frame_0/texture = SubResource( 13 ) | ||
frame_1/texture = SubResource( 14 ) | ||
frame_1/delay_sec = 0.0 | ||
|
||
[sub_resource type="RectangleShape2D" id=2] | ||
extents = Vector2( 9.5, 29.25 ) | ||
|
||
[sub_resource type="AtlasTexture" id=10] | ||
atlas = ExtResource( 5 ) | ||
region = Rect2( 25.5, 1, 12, 13 ) | ||
|
||
[sub_resource type="RectangleShape2D" id=3] | ||
extents = Vector2( 31.5, 9.5 ) | ||
|
||
[sub_resource type="AtlasTexture" id=11] | ||
atlas = ExtResource( 5 ) | ||
region = Rect2( 73.5, 1, 12, 13 ) | ||
|
||
[sub_resource type="RectangleShape2D" id=4] | ||
extents = Vector2( 31.5, 10.25 ) | ||
|
||
[sub_resource type="CircleShape2D" id=8] | ||
radius = 2.37171 | ||
|
||
[sub_resource type="AtlasTexture" id=12] | ||
atlas = ExtResource( 5 ) | ||
region = Rect2( 49.5, 1, 12, 13 ) | ||
|
||
[sub_resource type="RectangleShape2D" id=5] | ||
extents = Vector2( 11.5, 28 ) | ||
|
||
[node name="BrewGame" type="Node2D"] | ||
script = ExtResource( 3 ) | ||
MaxRotateSpeed = 7.0 | ||
MinRotateSpeed = 0.5 | ||
BoostErrorDecrement = 1.5 | ||
BurnThreshold = 2.0 | ||
|
||
[node name="BG" type="Sprite" parent="."] | ||
position = Vector2( -25, -26 ) | ||
scale = Vector2( 3, 3 ) | ||
texture = ExtResource( 1 ) | ||
|
||
[node name="Beer" type="Sprite" parent="."] | ||
position = Vector2( 320, 147 ) | ||
scale = Vector2( 4, 4 ) | ||
texture = ExtResource( 2 ) | ||
offset = Vector2( 0, 9 ) | ||
|
||
[node name="BeerBurnt" type="Sprite" parent="."] | ||
modulate = Color( 1, 1, 1, 0 ) | ||
material = SubResource( 7 ) | ||
position = Vector2( 320, 147 ) | ||
scale = Vector2( 4, 4 ) | ||
texture = ExtResource( 2 ) | ||
offset = Vector2( 0, 9 ) | ||
|
||
[node name="arrowTop" type="Sprite" parent="."] | ||
position = Vector2( 319, 46 ) | ||
scale = Vector2( 2, 2 ) | ||
texture = SubResource( 15 ) | ||
|
||
[node name="Area2D" type="Area2D" parent="arrowTop"] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="arrowTop/Area2D"] | ||
position = Vector2( -1.5, 19.25 ) | ||
shape = SubResource( 2 ) | ||
|
||
[node name="arrowLeft" type="Sprite" parent="."] | ||
position = Vector2( 164, 150 ) | ||
scale = Vector2( 2, 2 ) | ||
texture = SubResource( 10 ) | ||
|
||
[node name="Area2D" type="Area2D" parent="arrowLeft"] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="arrowLeft/Area2D"] | ||
position = Vector2( 21.5, 1 ) | ||
shape = SubResource( 3 ) | ||
|
||
[node name="arrowRight" type="Sprite" parent="."] | ||
position = Vector2( 473, 149 ) | ||
scale = Vector2( 2, 2 ) | ||
texture = SubResource( 11 ) | ||
|
||
[node name="Area2D" type="Area2D" parent="arrowRight"] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="arrowRight/Area2D"] | ||
position = Vector2( -23.5, 1.75 ) | ||
shape = SubResource( 4 ) | ||
|
||
[node name="Stick" type="Sprite" parent="."] | ||
position = Vector2( 317, 194 ) | ||
scale = Vector2( 4, 4 ) | ||
texture = ExtResource( 4 ) | ||
offset = Vector2( 0, -11 ) | ||
|
||
[node name="hideStick" type="ColorRect" parent="Stick"] | ||
margin_left = -2.0 | ||
margin_right = 2.0 | ||
margin_bottom = 11.0 | ||
color = Color( 0.823529, 0.556863, 0.25098, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="hideStickBurnt" type="ColorRect" parent="Stick"] | ||
modulate = Color( 1, 1, 1, 0 ) | ||
margin_left = -2.0 | ||
margin_right = 2.0 | ||
margin_bottom = 11.0 | ||
color = Color( 0.482353, 0.32549, 0.14902, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Area2D" type="Area2D" parent="Stick"] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Stick/Area2D"] | ||
shape = SubResource( 8 ) | ||
|
||
[node name="arrowBottom" type="Sprite" parent="."] | ||
position = Vector2( 319, 246 ) | ||
scale = Vector2( 2, 2 ) | ||
texture = SubResource( 12 ) | ||
|
||
[node name="Area2D" type="Area2D" parent="arrowBottom"] | ||
|
||
[node name="CollisionShape2D" type="CollisionShape2D" parent="arrowBottom/Area2D"] | ||
position = Vector2( -1, -18 ) | ||
shape = SubResource( 5 ) | ||
|
||
[node name="Scoreboard" type="ColorRect" parent="."] | ||
margin_left = 505.0 | ||
margin_top = 6.0 | ||
margin_right = 631.0 | ||
margin_bottom = 67.0 | ||
color = Color( 0.0431373, 0, 0, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="ScoreText" type="Label" parent="Scoreboard"] | ||
margin_left = 4.0 | ||
margin_top = 12.0 | ||
margin_right = 44.0 | ||
margin_bottom = 26.0 | ||
text = "Qualité:" | ||
|
||
[node name="Score" type="Label" parent="Scoreboard"] | ||
margin_left = 60.0 | ||
margin_top = 12.0 | ||
margin_right = 100.0 | ||
margin_bottom = 26.0 | ||
text = "100%" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="TimeText" type="Label" parent="Scoreboard"] | ||
margin_left = 4.0 | ||
margin_top = 33.0 | ||
margin_right = 44.0 | ||
margin_bottom = 47.0 | ||
text = "Temps: " | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Time" type="Label" parent="Scoreboard"] | ||
margin_left = 60.0 | ||
margin_top = 33.0 | ||
margin_right = 100.0 | ||
margin_bottom = 47.0 | ||
text = "30s" | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.