diff options
author | tpart <tpart120@proton.me> | 2024-08-19 21:37:59 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-08-19 21:37:59 +0200 |
commit | afbea7fcf5f66b08d7ef0ed4e617678b8c20bda0 (patch) | |
tree | ca6ceb68a8f2a68c9d07acf3d3217e244c93bf71 /client/map/items/mochi.gd | |
parent | 222b6c4050ce497999cee39f594861b72ab44b05 (diff) | |
download | hurrycurry-afbea7fcf5f66b08d7ef0ed4e617678b8c20bda0.tar hurrycurry-afbea7fcf5f66b08d7ef0ed4e617678b8c20bda0.tar.bz2 hurrycurry-afbea7fcf5f66b08d7ef0ed4e617678b8c20bda0.tar.zst |
Add mochi model & Implement strawberry mochi
Diffstat (limited to 'client/map/items/mochi.gd')
-rw-r--r-- | client/map/items/mochi.gd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/client/map/items/mochi.gd b/client/map/items/mochi.gd new file mode 100644 index 00000000..77e0ca41 --- /dev/null +++ b/client/map/items/mochi.gd @@ -0,0 +1,27 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 tpart +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +class_name Mochi +extends Item + +var model: MeshInstance3D = load("res://map/items/mochi.tscn").instantiate() + +func _init(owned_by_: Node3D): + super(owned_by_) + add_child(model) + +func set_color(c: Color): + var mat: BaseMaterial3D = model.get_active_material(0) + mat.albedo_color = c |