fix: change module path to relative path

This commit is contained in:
Kylin_on_Mac 2023-10-16 09:38:29 +08:00
parent 6cc58de054
commit b5560a63e6
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import pygame.sprite
from games.easy_game.src.env import FoodTypeEnum, FOOD_COLOR_MAP, FOOD_LV1_SIZE, FOOD_LV2_SIZE, FOOD_LV3_SIZE
from .env import FoodTypeEnum, FOOD_COLOR_MAP, FOOD_LV1_SIZE, FOOD_LV2_SIZE, FOOD_LV3_SIZE
from mlgame.view.view_model import create_rect_view_data

View File

@ -2,10 +2,10 @@ import math
import pygame.sprite
from games.easy_game.src.env import BALL_COLOR, BALL_VEL, BALL_H, BALL_W, BALL_GROWTH_SCORE_STEP, BALL_GROWTH_SIZE_STEP, \
from .env import BALL_COLOR, BALL_VEL, BALL_H, BALL_W, BALL_GROWTH_SCORE_STEP, BALL_GROWTH_SIZE_STEP, \
BALL_SIZE_MAX, BALL_GROWTH_VEL_STEP, BALL_VEL_MAX, BALL_SIZE_MIN, BALL_VEL_MIN
from games.easy_game.src.foods import Food
from games.easy_game.src.sound_controller import SoundController
from .foods import Food
from .sound_controller import SoundController
from mlgame.view.view_model import create_rect_view_data