Skip to content

Commit

Permalink
animation tile repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchoi313 committed Oct 2, 2023
1 parent 4328f20 commit 650d5e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/NPCs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ARENAPY_DEV_PATH = "D:/Github/arena-py/" # Linux/Mac (Civilized)
ARENAPY_DEV_PATH = "D:\\Github\\arena-py" # Windows (Uncivilized)

USE_DEV_SERVER = True
USE_DEV_SERVER = False
if(USE_DEV_SERVER):
HOST = "arena-dev1.conix.io" #dev server
if(USE_DEV_SERVER):
Expand Down
9 changes: 7 additions & 2 deletions examples/chess/chess.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
ARENAPY_DEV_PATH = "D:/Github/arena-py/" # Linux/Mac (Civilized)
ARENAPY_DEV_PATH = "D:\\Github\\arena-py" # Windows (Uncivilized)

USE_DEV_SERVER = True
USE_DEV_SERVER = False
if(USE_DEV_SERVER):
HOST = "arena-dev1.conix.io" #dev server
if(USE_DEV_SERVER):
Expand Down Expand Up @@ -169,11 +169,16 @@ def CreateTile(self):
#self.AnimateTile()

def AnimateTile(self):
#self.tile.update_attributes(animation = None)
#self.scene.add_object(self.tile)

scaleStart = random.uniform(1.2,1.3)

self.tile.dispatch_animation(
[
Animation(
property="scale",
start=Scale(1.1, 1.1, 1.1),
start=(scaleStart,scaleStart,scaleStart),
end=Scale(1,1,1),
easing="easeOutCubic",
dur=300
Expand Down

0 comments on commit 650d5e4

Please sign in to comment.