doc: update project name

This commit is contained in:
Kylin_on_Mac 2023-11-14 10:22:31 +08:00
parent c205321632
commit e1719c87fc
8 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# **Easy Game**
# **Swimming Squid** 魷來魷去
![easy_game](https://img.shields.io/github/v/tag/PAIA-Playful-AI-Arena/easy_game)
![swimming-squid](https://img.shields.io/github/v/tag/PAIA-Playful-AI-Arena/swimming-squid)
[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![MLGame](https://img.shields.io/badge/MLGame->10.3.2-<COLOR>.svg)](https://github.com/PAIA-Playful-AI-Arena/MLGame)
[![pygame](https://img.shields.io/badge/pygame-2.0.1-<COLOR>.svg)](https://github.com/pygame/pygame/releases/tag/2.0.1)
@ -8,7 +8,7 @@
這是一個吃東西小遊戲,也是 PAIA 的遊戲教學範例
![demo](https://github.com/PAIA-Playful-AI-Arena/easy_game/blob/main/asset/easy_game.gif?raw=true)
![demo](https://github.com/PAIA-Playful-AI-Arena/swimming-squid/blob/main/asset/swimming-squid.gif?raw=true)
---
# 基礎介紹
@ -21,7 +21,7 @@
```python
# main.py
game = EasyGame(
game = SwimmingSquid(
level: int = 1,
level_file: str = None,
sound: str = "off")

View File

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

View File

@ -2,9 +2,9 @@ import sys
from os import path
sys.path.append(path.dirname(__file__))
from src.game import EasyGame
from src.game import SwimmingSquid
GAME_SETUP = {
"game": EasyGame,
"game": SwimmingSquid,
# "dynamic_ml_clients":True
}

View File

@ -1,11 +1,11 @@
{
"game_name": "easy_game",
"game_name": "swimming-squid",
"version": "2.4a1",
"url": "https://github.com/PAIA-Playful-AI-Arena/easy_game",
"description": "這是一個吃東西小遊戲,除了讓你熟習所有基本操作,也是 PAIA 的遊戲教學範例",
"url": "https://github.com/PAIA-Playful-AI-Arena/swimming-squid",
"description": "這是一個魷魚吃東西小遊戲,除了讓你熟習所有基本操作,也是 PAIA 的遊戲教學範例",
"logo": [
"./asset/logo.png",
"https://raw.githubusercontent.com/PAIA-Playful-AI-Arena/easy_game/main/asset/logo.png"
"https://raw.githubusercontent.com/PAIA-Playful-AI-Arena/swimming-squid/main/asset/logo.png"
],
"user_num": {
"min": 1,

View File

@ -1,4 +1,4 @@
# Easy Game
# Swimming-Squid
這是一個簡單的遊戲主要用來示範如何在PAIA 上發布一個遊戲
![](asset/easy_game.gif)
## Game Config

View File

@ -4,12 +4,12 @@ import sys
sys.path.append(r"../..")
from mlgame.view.view import PygameView
from mlgame.game.generic import quit_or_esc
from src.game import EasyGame
from src.game import SwimmingSquid
FPS = 30
if __name__ == '__main__':
pygame.init()
game = EasyGame(level=1)
game = SwimmingSquid(level=1)
scene_init_info_dict = game.get_scene_init_data()
game_view = PygameView(scene_init_info_dict)
frame_count = 0

View File

@ -67,7 +67,7 @@ GARBAGE02_PATH = path.join(ASSET_IMAGE_DIR, "garbage_02.png")
GARBAGE03_PATH = path.join(ASSET_IMAGE_DIR, "garbage_03.png")
ASSET_IMG_URL = "https://raw.githubusercontent.com/PAIA-Playful-AI-Arena/easy_game/main/asset/img/"
ASSET_IMG_URL = "https://raw.githubusercontent.com/PAIA-Playful-AI-Arena/swimming-squid/main/asset/img/"
BG_URL = ASSET_IMG_URL + "background.png"
SQUID_URL = ASSET_IMG_URL + "squid.png"
# Food URLs

View File

@ -29,7 +29,7 @@ def revise_ball(ball: Squid, playground: pygame.Rect):
pass
class EasyGame(PaiaGame):
class SwimmingSquid(PaiaGame):
"""
This is a Interface of a game
"""