패키지, 저장소 및 앱 카테고리 검색

game_levels_scrolling_map 표지
패키지 상세v0.0.7

game_levels_scrolling_map

Flutter를 사용하여 캔디 크러시 또는 유사한 게임의 게임 레벨 맵을 만들 수 있는 패키지로 가로 또는 세로 방향으로 설정할 수 있습니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
278
좋아요
83
Pub 점수
120

패키지 설치

flutter pub add game_levels_scrolling_map

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

캔디 크러쉬와 유사한 게임 레벨 맵을 생성하기 위해 설계된 플러터 패키지로, 수평 및 수직 스크롤 레이아웃을 지원합니다. 개발자가 매치-3 또는 퍼즐 게임에 적합한 상호작용 가능하고 스와이프 가능한 레벨 그리드를 구축할 수 있게 해줍니다. 성능 최적화되어 있으며, 다양한 플랫폼에서 플러터 애플리케이션에 원활하게 통합됩니다. 사용자 정의 가능한 그리드 차원과 부드러운 애니메이션을 통해 매력적인 레벨 탐색 인터페이스 구현을 간소화합니다.

사용 사례

  • 퍼즐 게임 레벨 선택기 만들기
  • 수평 또는 수직 레벨 탐색 만들기
  • 스와이프 기반 레벨 탐색 구현
  • 캔디 크러시 스타일 게임 맵 설계
  • 모바일 게임 진행 인터페이스 개발

주요 기능

  • 수평 및 수직 스크롤을 지원합니다
  • 사용자 정의 가능한 그리드 레이아웃
  • 부드러운 애니메이션 전환
  • 크로스 플랫폼 호환성
  • Flutter와의 간편한 통합
  • 다양한 화면 크기에 대응하는 반응형 디자인

적합한 대상

  • 퍼즐 게임 개발자
  • 모바일 게임 제작자
  • Flutter 초보자 게임 개발
  • 인터랙티브한 레벨 선택이 필요한 앱
  • 그리드 기반 탐색이 있는 프로젝트

고려 사항

  • Flutter 레이아웃 원칙을 이해해야 합니다
  • 사용자 지정 시각화를 위해 추가 스타일링이 필요할 수 있습니다
  • 성능은 그리드 크기와 복잡성에 따라 달라집니다
  • 격자 기반 레벨 구조에 제한됨
  • 스크롤되지 않거나 복잡한 2D 지도에는 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Game Levels Scrolling Map

A package for making game levels map like candy crush or similar games using flutter with ability to be horizontal or vertical

Getting Started

  • This package enables you to build a Game levels map like candy crush with the following features :
    • Option to make it horizontal map or vertical
    • Option to reverse the scrolling start direction
    • Option to add the x,y points positions
    • Option to extract the x,y points positions from asset SVG file or online SVG file

Platform Support

| Android ✔️ | IOS ✔️ | MacOS ✔️ ️| Web ✔️ | Linux ✔️ | Windows ✔ ️|

Usage


Step 1 Import package:game_levels_scrolling_map/game_levels_scrolling_map.dart which contain the main widget of the map GameLevelsScrollingMap then Import package:game_levels_scrolling_map/model/point_model.dart which contain the model of points

Step 2 Start adding your points widgets by creating a new List of points and adding widgets to it using the PointModel class

List<PointModel> points = [];
      
for(int i = 0; i<50 ; i++){
  PointModel point = PointModel(100,Container(width: 40, height: 40, color: Colors.red, child: Text("$i")));
  
  /* To make the map scroll to a specific point just make its parameter 'isCurrent' = true like the following which will make the map scroll to it once created*/
  if(i == 20) point.isCurrent = true;
  
  points.add(point);
}

Step 3 Use GameLevelScrollingMap.scrollable widget to build the map

- To make vertical map:
Vertical Map Example

Widget build(BuildContext context) {
  return Scaffold(
    body: Container(
      child: GameLevelsScrollingMap.scrollable(
              imageUrl: "assets/drawable/map_vertical.png",
              direction: Axis.vertical,
              reverseScrolling: true,
              svgUrl: 'assets/svg/map_vertical.svg',
              points: points,)
          ),
        );
}

- To make horizontal map:
Horizontal Map Example

Widget build(BuildContext context) {
  return Scaffold(
    body: Container(
      child: GameLevelsScrollingMap.scrollable(
            imageUrl: "assets/drawable/map_horizontal.png",
            direction: Axis.horizontal,
            svgUrl: 'assets/svg/map_horizontal.svg',
            points: points,)
          ),
        );
}

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.