This commit is contained in:
2021-09-03 06:45:50 +02:00
parent 4b97fda8f2
commit 2cd4b781fb
4 changed files with 17 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
from 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
@@ -12,8 +13,10 @@ class RopeScene(Scene):
super().__init__(s__size[0], s__size[1], scene_size, bg)
r0 = Rope(a([300, 50]), 400, 20, 2, 2, self, gravity=5)
r0 = Rope(a([300, 50]), 200, 40, 2, 2, self, gravity=2)
self.nrd_objects.append(r0)
rd0 = RopeInteractiveDot(a([100, 100]), 20, (100, 255, 100), 5, 100, self)
rd0 = RopeInteractiveDot(a([100, 100]), 10, (100, 255, 100), 20, 100, self)
self.nrc_objects.append(rd0)
pygame.mouse.set_visible(False)