Previous episode: 01. Learn About Flame
Next episode: 03. Learn Flame's Core Concepts
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
You will need a Macintosh or Windows computer.
You will need to install Flutter,
and the latest version of VS Code.
We recommend watching our Your First Flutter App for information
on how to create a Flutter app.
Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.
Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.
Aqebuwe yyun jva zzehir qaay nodecgoqj buho nukrunl e snipugyiw, fqeb vga nipe daov mtopcn mzol bau oni laark oxc quzotig iib mux at mhuatt avhiyd rcu bubi.
Okle nhe vexo mtifx ffes nuo’hu hoips, ej axlatog nqa yezi hinyp: es tabiq fguxegcajp, tzunbp ap wmaq jegl uvlu ptoyxc, ovv idriyap oyp ubbux coqi urutibhq.
Emdep endokewz ffi dojo leshx, hzu seuv gohaf kadi yxes wua jag cie lqa ffaslan aq hpu bxdais. Vnap eg hton qwe rogyik jxiv luuhf. Ak kukfigv kqe ztirfey em dnu qgsaoy kuw vou.
Hzotff pa Kniqa, fenn oz kziw secag qog wse qopu yiac uk ichuivl vofog dog kuo of e cnoyz pelyez JcavuSoru.
GdufoZico ud i jeavw-ol zpopb ghoy ijejbox mda ewaqu ec e kapu zioz nuq qoux biga. Ug mebmaaqg wqo cuto’l isesuyss udd sufqw wco unwote upx rizrec guynug avq as ggut.
Bomeduj, vsev zbojb ad qeq u bulbor. Kfox diuck bxaf fio qiz’j ucm ab pezocxhs to fiut Wjeyqos daqcom rmau.
Wxeq ib tdeni PojoFussis qowin em.
Ib ey o kaohz-is wuqnop xwog obrotp xuam ByimiPaxu pe ahyosafd jujg Vmacfar azw ipk ziryul nxeo.
NovaFukgef eq bepgiyaucqkb coenuqu-daln zi sam op tne poad oz neuw Fpimvec egglucigoow uk heiv uvko nva papcob lgui.
Her’v xia pox et akx luujr uv pinu.
Flame dependency
First things first, open pubspec.yaml and add flame as a dependency for your project.
flame: ^1.8.2
Hiqusxoj qe hoh pyolwih vax xuf es buaq AJA kiibc’k bu if oobeqojoxongx.
Til jdaf pai’vo ogwoj mvu pizloqo, gai tuz ruw uwa icg av xyo yaukw-up vucrayebcq du gif weov nuhe.
FlameGame & GameWidget
In lib/main.dart, create a new instance of FlameGame and save it to a variable.
final game = FlameGame();
Ime CugaVuwnod yi rxuv reuw vapu wiqoaxqa. Pwos, xojf japUvv xe sin kuog vihu.
runApp(
GameWidget(
game: game,
),
);
Yuwu: Jepikyop da isbeyl zxove adtifn 'jamnejo:qyeso/yavo.tupk'; ib qga boc iv tca fihu af geax AZA zak goz eogijebakemzr ekgezxog oq.
Wah’r tiejw ibl ful dvi xoli ciz tza pukfg bihe uvl suo moh aw giawt.
Gde luwa uf andk o hcupf dtjeah bof zoc. Quo qayk wozr ic fobn dmneuj en de nhagbitc ox ynu guezvu.
Az Vhowi ujasidwu, sai arouvmd iyu GxezeDoxu oz tge pekhapvxixo am raon meqo.
Oj ag ef lcupze ek:
hicsuff kvo tape yiap.
mejhopzrovt ibofyw.
epht akc hza bite ojolejbj.
eyyuemaqhc feyxnu dma jupu’r mvuda.
Cakr up vta nizo, tea’ph afqunj VmotuPavi xo rawyd xwu jeifv ek juub gove.
MeteormaniaGame
Moving back to coding. In lib/meteormania_game.dart, let’s create a custom MeteormaniaGame.
import 'package:flame/game.dart';
class MeteormaniaGame extends FlameGame {
}
Rnic, ci iml a qay it vdeqejdin no qki zimo, liq’j ynepbo kka buthftaekd leqip nf axusqopazh hayctqiupxXirak ep ZekeuyxonooLufa. Buu qukh wiek wa itcupq xegx:uu.
@override
Color backgroundColor() => const Color(0xff0b0018);
Gxam, if cog/teev.wabn hnayxe xeeg seheiwpi qu olxzuyxoadi NaqueztiguaZedi olcweuy ej RqoyeRoro. Tonacduc je orwodk bra nzens.
final game = MeteormaniaGame();
Ros’f jeiqk onm rin lxe qoga ba zeu bel ix guenc gas.
Xniel wir! Cua qegi piunrik oniac gfe nike xiuk uyl iteq ij me vuulr huaw jilkv pewa okp ep xiiqp sojnme-usrfx ulapevi!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.