Михаил Капелько 2 周前
父节点
当前提交
ea77aca439
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      v5/Window.py

+ 2
- 1
v5/Window.py 查看文件

@@ -3,7 +3,7 @@ import arcade
class Window(arcade.Window): class Window(arcade.Window):
def __init__(self): def __init__(self):
super().__init__(900, 600, "OGS Memory") super().__init__(900, 600, "OGS Memory")
arcade.set_background_color(arcade.color.WHITE)
arcade.set_background_color(arcade.color.GRAY)
self.all_sprites = arcade.SpriteList() self.all_sprites = arcade.SpriteList()


# Animated begin button. # Animated begin button.
@@ -11,6 +11,7 @@ class Window(arcade.Window):
for i in range(2): for i in range(2):
tex = arcade.load_texture("res/buttons_begin.png", x = i*350, y = 0, width = 350, height = 100) tex = arcade.load_texture("res/buttons_begin.png", x = i*350, y = 0, width = 350, height = 100)
player.append_texture(tex) player.append_texture(tex)
player.color = arcade.color.BLUE
a = arcade.sprite.AnimationKeyframe(i, 700, tex) a = arcade.sprite.AnimationKeyframe(i, 700, tex)
player.frames.append(a) player.frames.append(a)
player.center_x = 300 player.center_x = 300


正在加载...
取消
保存