blockly
This commit is contained in:
parent
ac9565a588
commit
5baa32b6ef
16
blockly.json
16
blockly.json
|
@ -9,12 +9,16 @@
|
||||||
"SCENE_INFO": [
|
"SCENE_INFO": [
|
||||||
["scene_info['frame']", "# frame", "# 幀數"],
|
["scene_info['frame']", "# frame", "# 幀數"],
|
||||||
["scene_info['status']", "game status", "遊戲狀態"],
|
["scene_info['status']", "game status", "遊戲狀態"],
|
||||||
["scene_info['squid_x']", "x coordinate of squid", "玩家角色的中心 x 座標"],
|
["scene_info['collision_mode]", "game mode", "是否有碰撞機制"],
|
||||||
["scene_info['squid_y']", "y coordinate of squid", "玩家角色的中心 y 座標"],
|
["scene_info['self_x']", "x coordinate of squid", "玩家角色的中心 x 座標"],
|
||||||
["scene_info['squid_w']", "width of squid", "玩家角色的寬度"],
|
["scene_info['self_y']", "y coordinate of squid", "玩家角色的中心 y 座標"],
|
||||||
["scene_info['squid_h']", "height of squid", "玩家角色的高度"],
|
["scene_info['self_w']", "width of squid", "玩家角色的寬度"],
|
||||||
["scene_info['squid_lv']", "level of squid", "玩家角色的等級"],
|
["scene_info['self_h']", "height of squid", "玩家角色的高度"],
|
||||||
["scene_info['squid_vel']", "velocity of squid", "玩家角色的速度"],
|
["scene_info['self_lv']", "level of squid", "玩家角色的等級"],
|
||||||
|
["scene_info['self_vel']", "velocity of squid", "玩家角色的速度"],
|
||||||
|
["scene_info['opponent_x']", "x coordinate of opponent squid", "對手角色的中心 x 座標"],
|
||||||
|
["scene_info['opponent_y']", "y coordinate of opponent squid", "對手角色的中心 y 座標"],
|
||||||
|
["scene_info['opponent_lv']", "level of opponent squid", "對手角色的等級"],
|
||||||
["scene_info['score']", "score", "目前的分數"],
|
["scene_info['score']", "score", "目前的分數"],
|
||||||
["scene_info['foods']", "list of foods positions", "所有食物的位置清單"],
|
["scene_info['foods']", "list of foods positions", "所有食物的位置清單"],
|
||||||
["scene_info['score_to_pass']", "the score for next level", "通關分數"],
|
["scene_info['score_to_pass']", "the score for next level", "通關分數"],
|
||||||
|
|
2
main.py
2
main.py
|
@ -1,7 +1,7 @@
|
||||||
import pygame
|
import pygame
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.append(r"../..")
|
sys.path.append(r"../../../../.Trash/PAIA Desktop.app/Contents/Resources/app.asar.unpacked")
|
||||||
from mlgame.view.view import PygameView
|
from mlgame.view.view import PygameView
|
||||||
from mlgame.game.generic import quit_or_esc
|
from mlgame.game.generic import quit_or_esc
|
||||||
from src.game import SwimmingSquid
|
from src.game import SwimmingSquid
|
||||||
|
|
Loading…
Reference in New Issue