Skip to content

Flutter game with flame engine showcase. Recreating Mortal Kombat with sprites and keyboard inputs

Notifications You must be signed in to change notification settings

vbalagovic/flutter-flame-showcase-mk

Repository files navigation

Mortal Kombat with Flutter Flame (basics) showcase

Flutter application with flame engine that I used for presentation on Zagorje DevCon.

Note: all sprites and images are downloaded from mortalkombatwarehouse

Parallax Component

  • Used for background with several layers
  • Some have velocity some not

world

SpriteAnimationGroupComponent

  • SpriteAnimationComponent wrapper [Component that has sprites that run in a single cyclic animation]
  • hold several animations and change the current playing animation at runtime

stance

Adding Movement (Player extends PositionComponent)

Movement

Collision Detection

  • HasCollisionDetection
  • CollisionCallbacks
  • Hitboxes

collision

Overlays

Game overlays enables any Flutter widget to be shown on top of a game instance

overlay

Complete Circle Of Game

  • Adding multiple overlays
  • Triggering functions on game state changes
  • Creating gameplay

complete

Adding sound

  • FlameAudio.bgm.play('music.mp3')
Screen.Recording.2023-02-21.at.17.56.01.mov

About

Flutter game with flame engine showcase. Recreating Mortal Kombat with sprites and keyboard inputs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published