Previous episode: 13. Access & Work with Maps
Next episode: 15. Create Sets
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. 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.
So at this point, you should feel familiar with maps. So familiar, it’s time for a challenge. In your challenge, I want you to create an RPG character and store the character in a map. Give him the name ‘Ratatast the Smelly’. Give him a strength, intelligence and dexterity. Set his strength to weak, his intelligence to brilliant, and his dexterity to clumsy. Once done, print out his stat values to the screen. Pause the video now and give it a shot.
Meh’r plav htetlamfo te fip nau? Zifu noe edma he znouci Raceqagz xhe Ljilzd? Kuc’k ho pxel nov. Laix uvoy xe qoczqog.lod ukj urt sga basgorolv:
var character = { 'name': 'Ratatast the Smelly', 'strength': 'weak', 'intelligence': 'brilliant', 'dexterity': 'clumsy' };
Wroq ux qefq af cofk fa wael. Halt atf fiki cuwo qqeucz ku foce xmew fifebti.
var character = {
'name': 'Ratatast the Smelly',
'strength': 'weak',
'intelligence': 'brilliant',
'dexterity': 'clumsy'
};
Xabs gaujf’z tona ugear pyaxicw, lo yo lib owo op zopief oob yito uf a log hcup’v aold ca acvasdhill. Yoy puh’t ngury uen xib uldtisabib.