from scene import *
import sound
import random
import math
import time
import os
A = Action
class MyScene (Scene):
def setup(self):
self.background_color=('white')
self.cardlistred=('emj:Anchor','emj:American_Football')
self.fishmeat=self.spawn_fishmeat(self.cardlistred,(400,800))
img=('emj:Artist_Palette','emj:Astonished')
self.ground=SpriteNode('test:Sailboat')
self.ground.anchor_point=(0,0)
self.ground.position=(0,0)
self.ground.size=(800,400)
self.add_child(self.ground)
self.choosing=False
self.pickone=False
self.spawnone=False
self.fmcpos=(-5,-5)
#first run
#open('fishmeatcopy.txt','w')
#open('position.txt','w')
#open('time.txt','w')
#open('cropindex.txt','w')
file=open('fishmeatcopy.txt','r')
str1=file.readline()
str1=str1.strip(',')
size=os.path.getsize('fishmeatcopy.txt')
if size==0:
str1='typb:Unknown'
file2=open('position.txt','r')
str2=file2.readline()
str2=str2.strip(',')
size=os.path.getsize('position.txt')
if size==0:
self.fmcpos=(-5,-5)
else:
self.fmcpos=(float(str2.split(';')[0]),float(st