maze game
a simple maze game in flutter. it also serves as a custompainter example.
¿why?
in another project, i needed to create a “simple” maze game that can be used in low-end devices, so game engine was not an option.
suddenly, i found a way to do it in pure android.
so, this is a “port” of that saviour example.
maze package
you can use it in your project, you only need to add the dependency:
dependencies:
flutter:
sdk: flutter
maze_game: 2.0.0
now you can create your maze:
maze(
player: mazeitem(
'https://image.flaticon.com/icons/png/512/808/808433.png',
imagetype.network),
columns: 6,
rows: 12,
wallthickness: 4.0,
wallcolor: theme.of(context).primarycolor,
finish: mazeitem(
'https://image.flaticon.com/icons/png/512/1506/1506339.png',
imagetype.network),
onfinish: () => print('hi from finish line!'))
Comments are closed.