def is_clicking_in_point(pos, radius):
	if input.mouse_button_down():
		if gs.Vector2.Dist(gs.Vector2(input.get_mouse_pos()[0], input.get_mouse_pos()[1]), gs.Vector2(pos.x * size_pixel.x, pos.y * size_pixel.y)) < radius * size_pixel.x:
			return True
	return False
def draw_cursor():
	mouse_pos = input.get_mouse_pos()
	mouse_pos = gs.Vector3(mouse_pos[0] / size_pixel.x, mouse_pos[1] / size_pixel.y, 0)

	draw_pentacle(mouse_pos, 5, 15)
		if not is_full:
			all_checked = False
	if all_checked:
		reducing = 5.0
		next_symbol = True

	if start:
		render.text2d(3.0*size_pixel.x, size.y/7*6, "Finish the ritual to close\nthe demon's portal !", 6.5*size_pixel.x, gameboy_palette[2], font_path="Early GameBoy.ttf")
		render.text2d(31.25*size_pixel.x, size.y/7*1.5, "Easy", 8.5*size_pixel.x, gameboy_palette[2], font_path="Early GameBoy.ttf")
		render.text2d(31.25*size_pixel.x, size.y/7*1, "Hard", 8.5*size_pixel.x, gameboy_palette[2], font_path="Early GameBoy.ttf")
		render.text2d(31.25*size_pixel.x, 10, "Exit", 8.5*size_pixel.x, gameboy_palette[2], font_path="Early GameBoy.ttf")
		if not input.mouse_button_was_down() and input.mouse_button_down():
			easy_rect = gs.fRect(31.25*size_pixel.x, size.y/7*1.5, 31.25*size_pixel.x + 31.25*size_pixel.x, size.y/7*1.5 + 8.5*size_pixel.x)
			hard_rect = gs.fRect(31.25*size_pixel.x, size.y/7*1, 31.25*size_pixel.x + 31.25*size_pixel.x, size.y/7*1 + 8.5*size_pixel.x)
			exit_rect = gs.fRect(31.25*size_pixel.x, 10, 31.25*size_pixel.x + 31.25*size_pixel.x, 10 + 8.5*size_pixel.x)
			if easy_rect.Inside(input.get_mouse_pos()[0], input.get_mouse_pos()[1]):
				start = False
				reset = False
				reduce_speed = 15
				increase_speed = 15
			if hard_rect.Inside(input.get_mouse_pos()[0], input.get_mouse_pos()[1]):
				start = False
				reset = False
				reduce_speed = 10
				increase_speed = 25
			if exit_rect.Inside(input.get_mouse_pos()[0], input.get_mouse_pos()[1]):
				exit = True


	draw_cursor()