Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- # member variables here, example:
- # var a=2
- # var b="textvar"
- var width = 10
- var height = 10
- var mousex
- func _ready():
- # update()
- set_process(true)
- pass
- func _process(delta):
- update()
- pass
- func _draw():
- mousex = get_viewport().get_mouse_pos()
- if mousex.x > 200 and mousex.x < 250:
- draw_line(Vector2(0,0),Vector2(300,300),Color(255,100,0),5)
- # for i in range(10):
- # draw_circle(Vector2(width,50),10,Color(255,0,0))
- #
- # width += 56
- # for j in range(10):
- # draw_circle(Vector2(50,height),10,Color(0,255,0))
- # height +=100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement