पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

game_levels_scrolling_map कवर
पैकेज विवरणv0.0.7

game_levels_scrolling_map

फ्लटर के साथ कैंडी क्रश या समान खेलों के लिए गेम लेवल मैप बनाने के लिए एक पैकेज, जिसमें क्षैतिज या ऊर्ध्वाधर होने की क्षमता है।

AndroidiOSmacOSWindowsLinux
30-दिन डाउनलोड
182
लाइक
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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।