Info_edupage/UI/Scenes/RopeScene.py
2021-09-06 18:32:02 +02:00

23 lines
634 B
Python

from UI.Objects.Scene import Scene
from numpy import array as a
import pygame
from UI.Objects.nr_objects.dynamic_objects.Rope import Rope
from UI.Objects.nr_objects.controllable_objects.RopeInteractiveDot import RopeInteractiveDot
class RopeScene(Scene):
def __init__(self, scene_size, bg=(60, 60, 60)):
self.s__size = [600, 400]
super().__init__(self.s__size[0], self.s__size[1], scene_size, bg)
r0 = Rope(a([300, 50]), 200, 20, 2, 2, self)
rd0 = RopeInteractiveDot(a([0, 0]), 10, (100, 255, 100), 20, 100, self)
self.sort_objects(r0, rd0)
pygame.mouse.set_visible(False)