Skip to content

Latest commit

 

History

History

hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hello World

Get program

Run this GDScript:

if !FileAccess.file_exists("res://hello_world.elf"):
	var buffer = Sandbox.download_program("hello_world")
	fa = FileAccess.open("res://hello_world.elf", FileAccess.WRITE)
	fa.store_buffer(buffer)
	fa.close()

var hello = Node.new()
hello.set_script(load("res://hello_world.elf"))

Usage

Prints "Hello, world!"

print(hello.hello_world())

Calculates the nth Fibonacci number:

print(hello.fibonacci(256))