Stuck at the "Game Interface with BGA Cards" - Adding Dependencies in Tutorial Hearts
Posted: 04 January 2026, 19:28
I dont know what to do next when I reach this step. I copied the code and added close brackets but the code still not run.
"If you open cards.jpg in an image viewer you will see that it is a "sprite" image - a 15x4 grid of images stitched together, which is a very efficient way to transport images. So we will use the card manager class to mark up these images and create "card" divs for us and place them on the board.
First, we need to add dependencies in the .js file:
define([
"dojo",
"dojo/_base/declare",
"ebg/core/gamegui",
"ebg/counter",
getLibUrl("bga-animations", "1.x"), // the lib uses bga-animations so this is required!
getLibUrl("bga-cards", "1.x"), // bga-cards itself
], function (dojo, declare, gamegui, counter, BgaAnimations, BgaCards) {
return declare( // ...
Now we will remove the fake card we added (in .js file) search and remove
Then we will add initialization code of bga cards and related component in setup method after the template code and before setupNotifications"
I think there is somethings missed here. Help me.
"If you open cards.jpg in an image viewer you will see that it is a "sprite" image - a 15x4 grid of images stitched together, which is a very efficient way to transport images. So we will use the card manager class to mark up these images and create "card" divs for us and place them on the board.
First, we need to add dependencies in the .js file:
define([
"dojo",
"dojo/_base/declare",
"ebg/core/gamegui",
"ebg/counter",
getLibUrl("bga-animations", "1.x"), // the lib uses bga-animations so this is required!
getLibUrl("bga-cards", "1.x"), // bga-cards itself
], function (dojo, declare, gamegui, counter, BgaAnimations, BgaCards) {
return declare( // ...
Now we will remove the fake card we added (in .js file) search and remove
Then we will add initialization code of bga cards and related component in setup method after the template code and before setupNotifications"
I think there is somethings missed here. Help me.