sky_hopper_game 0.1.1
sky_hopper_game: ^0.1.1 copied to clipboard
A reusable Flutter game package providing a ready-to-use Sky Hopper mini-game, complete with sprite rendering, score management, and sound effects.
sky_hopper_game #
Welcome to sky_hopper_game, the Flutter package that turns anyone into a makeshift game developer faster than you can say “Super Mario who?” Think of it as your secret sauce for adding a sky-diving, platform-jumping mini-game to any app—no need to sweat drawing sprites or coding physics from scratch.
Whether you want to:
- Surprise your users with a hidden Easter egg game during onboarding,
- Spice up a boring dashboard by letting people hop across cloud platforms when they get tired of charts,
- Charm recruiters by dropping a playable demo right inside your portfolio app,
- Or simply show off to your friends that, hey, you can build a game in Flutter faster than they can beat the next level…
This package has got your back. It’s like building LEGO, but with code: everything you need (sprites, sounds, and state management wizardry) comes pre-assembled; you just plug it in.
Features #
- GameView widget: Drop this bad boy into any Flutter screen and voilà, you have a full game canvas.
- Built-in audio & sound effects: Jump sounds, game-over fanfare, background tunes—you get them all, no quests to hunt down random WAV files.
- Provider-based state management: Scorekeeping, life counters, high-scores—handled for you.
- Customizable assets: Tired of our default sky-hopper sprite? Swap in your own images and sounds with zero headaches.
- Example app included: See a working demo in the
example/folder; food for the curious.
Installation #
-
In your app’s
pubspec.yaml, add:dependencies: sky_hopper_game: ^0.1.1 -
Run:
flutter pub get
Usage #
import 'package:flutter/material.dart';
import 'package:sky_hopper_game/sky_hopper_game.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Sky Hopper Demo')),
body: const Center(child: GameView()),
),
);
}
}
Assets (images, audio) are automatically packaged with the module; no additional setup is required for consuming apps.
API Reference #
GameView: The main widget that renders Sky Hopper.
Example #
Check out the example/ directory for a full demonstration. Simply clone this repo, open the example in your IDE, and run:
cd example
flutter pub get
flutter run
Contributing #
- Fork the repo
- Create a feature branch
- Submit a pull request
License #
MIT © Your Name