working game example code at here
git clone https://github.com/M-B-G-A/mud-scan.git- change namespace in
mud.config.ts - deploy it
git clone https://github.com/M-B-G-A/emojimon.git- add some code to your game system.
// add below line on top of contract code.
abstract contract IMudScanWorld {
function EmojiMon_AchievementSyste_setAchievement (address playerAddress, uint32 score, uint32 stage) virtual public;
}
// add like this line where you want to log score
IMudScanWorld(mudscanWorldAddress).EmojiMon_AchievementSyste_setAchievement(_msgSender(), 100 * mt, mt);
- done

