Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/User-input-Text/GDScript/user-input-text.gd
Normal file
13
Task/User-input-Text/GDScript/user-input-text.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends MainLoop
|
||||
|
||||
func _process(_delta: float) -> bool:
|
||||
printraw("Input a string: ")
|
||||
var read_line := OS.read_string_from_stdin() # Mote that this retains the newline.
|
||||
|
||||
printraw("Input an integer: ")
|
||||
var read_integer := int(OS.read_string_from_stdin())
|
||||
|
||||
print("read_line = %s" % read_line.trim_suffix("\n"))
|
||||
print("read_integer = %d" % read_integer)
|
||||
|
||||
return true # Exit instead of looping
|
||||
Loading…
Add table
Add a link
Reference in a new issue