Pokemon in My Own Way !

by jagdish sutilal in Craft > Digital Graphics

488 Views, 0 Favorites, 0 Comments

Pokemon in My Own Way !

Screenshot 2021-01-07 195830.png

Hi, I was amazed by the way how people had made pokemon games so, I thought of making my own version of pokemon fight simulator ,with help of app lab I started by a brief idea of how should my game look after all the coding ,I did this by simply drawing a screen where how my game will look .

Supplies

For the supplies I used code.org or the app lab which is a very good block coding platform .

Code.org/App lab

Starting to Code !

Screenshot 2021-01-07 200222.png

So for starting our project I went to app lab and as all time I added some variables, some functions that the attack would have how much accuracy and how much damage etc. At the beginning I made some variables using 'var' , then for the attack damage I gave as a variable with numbers stored in it 'var attack=150', so you can also introduce variables and then add some more functions such as if this button is pressed this would be the damage to the opponent and this was done by substracting damage from opponent pokemon's health. After you have done this you also have to add some other condition for the opponent pokemon to attack yours so used random numbers and switch case for this .

Adding Screens

Screenshot 2021-01-07 200849.png

After you the important thing of coding the only thing to make your game lively is to add images or gifs I simply googled it and found some appropriate pics you can find some images and then simply add in the labeled section remember to be as much as your game to be like a pokemon fight.

Running and Testing the Code -

Screenshot 2021-01-07 200534.png

App lab in code.org has built in code runner or tester which helps us to run and find if any mistakes are there in the code, as shown in the image simply press on run button to run the code and play your amazing game, if there any logical or coding mistakes then the mistakes will be shown in console log.

Final Results !

Screenshot 2021-01-07 195830.png
Screenshot 2021-01-07 201405.png
Screenshot 2021-01-07 201749.png

After completing coding simply press on share button on the window and then comes the link which can be used to play the game without anyone to see the code and it looks quiet neat in this way .I thought that if you like pokemon but don't have coding experience it would be better to share the code and game -

Code-code

Game-game