-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content: explain when you want to store return values in lesson 22
- Loading branch information
1 parent
c0d6522
commit bdee3d0
Showing
3 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
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,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/app-practice-screen.png-2803de6b8f7978f679c93f9f4836ed49.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://app-practice-screen.png" | ||
dest_files=[ "res://.import/app-practice-screen.png-2803de6b8f7978f679c93f9f4836ed49.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
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
24 changes: 24 additions & 0 deletions
24
course/lesson-22-functions-return-values/visuals/CodeRoundingHealth2.tscn
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,24 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://course/common/GDScriptCodeExample.gd" type="Script" id=1] | ||
|
||
[node name="GDScriptCodeExample" type="TextEdit"] | ||
anchor_right = 1.0 | ||
margin_right = -1620.0 | ||
margin_bottom = 60.0 | ||
rect_min_size = Vector2( 300, 80 ) | ||
size_flags_horizontal = 3 | ||
text = "set_text(round(health))" | ||
readonly = true | ||
syntax_highlighting = true | ||
show_line_numbers = true | ||
draw_tabs = true | ||
draw_spaces = true | ||
context_menu_enabled = false | ||
shortcut_keys_enabled = false | ||
smooth_scrolling = true | ||
wrap_enabled = true | ||
caret_block_mode = true | ||
caret_blink = true | ||
script = ExtResource( 1 ) | ||
min_size = Vector2( 300, 80 ) |