watersim: renamed class
This commit is contained in:
parent
2a84801ba8
commit
027db7e247
1 changed files with 3 additions and 3 deletions
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
from game import *
|
from game import *
|
||||||
|
|
||||||
class Sim(Game):
|
class WaterSim(Game):
|
||||||
def __init__(self,N):
|
def __init__(self,N):
|
||||||
self.N = N
|
self.N = N
|
||||||
self.init_data(N//2)
|
self.init_data(N//2)
|
||||||
self.mousepos = (0,0)
|
self.mousepos = (0,0)
|
||||||
super(Sim, self).__init__( 1000, 600, 120)
|
super(WaterSim, self).__init__( 1000, 600, 120)
|
||||||
|
|
||||||
def init_data(self, middle):
|
def init_data(self, middle):
|
||||||
self.C = [50] * self.N
|
self.C = [50] * self.N
|
||||||
|
@ -60,4 +60,4 @@ class Sim(Game):
|
||||||
prev_point = new_point
|
prev_point = new_point
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
Sim(100).on_execute()
|
WaterSim(100).on_execute()
|
||||||
|
|
Loading…
Reference in a new issue