r/MakeCode • • Aug 02 '20

Help with my son's game

2 Upvotes

Hi -- I'm trying to work with my son to create a "pokemon" game. This is similar to any kind of shooting game. Boy shoots rocks. 1 out of 4 times the rock reveals a pokemon.

There are 4 types of pokemon that can be displayed. So we generate a random number from 1-4, and fetch a pokemon from the array and show it. When you touch the pokemon, you make it disappear (the concept is that you have captured it).

The idea is that you would go to the next level once you capture all of the pokemon, but I can't seem to figure out how to recognize which pokemon we captured. Any ideas?

Block code snipped attached here.

I thought about creating a variable called "chosenPokemon" or something like that that tracked which one was chosen -- but since there could be many on the screen at any one time, I don't think that works.


r/MakeCode • • Jul 27 '20

The MakeCode monthly newsletter is out early next month – sign up now!

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jul 15 '20

Adafruit Learning System project: a Chatty Light-Up Circuit Playground Express Mask

Thumbnail
learn.adafruit.com
2 Upvotes

r/MakeCode • • Jun 24 '20

The Adafruit subreddit surpasses 3,000 members

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • May 05 '20

The MakeCode monthly newsletter is coming out soon – sign up now!

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Apr 16 '20

Emergency Microsoft Teams mute/unmute arcade button built with Adafruit Feather and MakeCode

Thumbnail
twitter.com
2 Upvotes

r/MakeCode • • Apr 02 '20

Adafruit Top Secret! (Video April 1, 2020) #AdafruitTopSecret #CircuitPython

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Mar 02 '20

MakeCode Minute: Pixel Flipbook @johnedgarpark

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Feb 14 '20

ICYMI: MakeCode Newsletter: Through the Classroom Door with LEGO Line Follower!

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Feb 03 '20

The MakeCode monthly newsletter is coming out in a week, sign up now

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jan 20 '20

MakeCode Minute: Sprite Flipping in MakeCode Arcade

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jan 08 '20

MakeCode Arcade Released for General Availability

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Dec 31 '19

Video: we now show Arcade controlling LEDs with confetti on screen on 3.7 volt expansion board

2 Upvotes

This will serve to expand our use of Arcade to drive a 4 motor Mecanum wheel transporter as we have done with Micro:bit via the Robotbit by Kittenbot. Our goal is to develop a game console which controls electronics as does the Micro;bit using MakeCode. Very similar edge connector. Share code with extensions installed are in the description of video: https://youtu.be/cbw4-2_o67s


r/MakeCode • • Dec 31 '19

Ultrasonic distance sensor in Arcade with 2 wheel bot car..some thoughts

2 Upvotes

As shown earlier, we are able to use the MakeCode Arcade environment by Microsoft to do some controlling of a bot car by DFRobot called the Micro:Maqueen. This is after installing the Maqueen extension library in the Arcade system. (see YouTube channels: MakeCode and Arcade, MakeCode and Hardware..for demos and "share code" links.) So far it seems we can use the game clock to regulate movements of the bot car with Meowbit by Kittenbot. I have not been able to use Arcade tools within the Maqueen Micro:bit environment; only Maqueen extensions in Arcade. We also have shown "line follower" to work with this system of Arcade and bots. Also, we can program the Arcade game console to drive the 2 wheels for "pause" periods so the car can move in various directions. Now two important issues. 1. Meowbit V 1.1 does not work in the above system for us. My V 1.3 does work. I have seen a photo of a V 1.2 Meowbit and do not know if it works to drive a bot car. 2. There are actually TWO (2) Maqueen extensions. One works for me and one does not. I include the working extension in all my "share" URL links. Both extensions seem to get passed the compiler but the one called "jhlucky Maqueen" on Github if installed in Arcade will prevent program from downloading. So avoid V1.1 Meowbit and avoid installing jhlucky extension: https://github.com/jhlucky/maqueen . There are several more areas to investigate with this "all in one" game and micro-controller idea. So far, Ultrasonic does not work for me; it might be possible to test it with a common HC-SR04 sensor, a "T" type 20 pin expansion board for Micro:bit , and a Meowbit plugged in; all this running in Arcade.

Anyone who has a Meowbit (or other edge connector Arcade game console) and and Micro Maqueen bot car (or any other with edge connector port for Micro:bit) who would like to work on this research project, I welcome your help. Frank Schmidt


r/MakeCode • • Dec 19 '19

Arcade Meowbit better control of Maqueen 2 wheel bot car with Tumbling Cube on Screen:video

2 Upvotes

As you can see in this video, the bot car is better controlled by Meowbit game console with Arcade and the Russian Tumbling Cube on the screen. I switched to Arcade Beta for these experiments. So far, IR does not work with Meowbit; I do not know if it has 'radio'; Kittenbot says Bluetooth does not work. Lots to investigate but I think our kids will like a game console that serves as a robot controller too; all with MakeCode. Code link in video description: https://youtu.be/NHgBfdAAB4A


r/MakeCode • • Nov 11 '19

Adafruit: John Park's MakeCode Minute: Game Buzzer

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Oct 10 '19

MakeCode debuts a new sprite and animation editor in Arcade beta!

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Aug 20 '19

Creating a side-scrolling platformer game in MakeCode Arcade

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Aug 08 '19

MakeCode Arcade Stencilr – turn arcade images into large stencils #MakeCode

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Aug 07 '19

EV3 LEGO Robot Cars

2 Upvotes

We will be starting a new intro. to robotics project in Stone County, Missouri using 2 "found" LEGO robot kits at the local 4H offices and programming the EV3 Brick with MakeCode. Here's a video of what can be done:

https://www.youtube.com/watch?v=t0iK2J5wTi0


r/MakeCode • • Aug 05 '19

MakeCode Arcade Game Pick of the Week: Dance Party Remastered

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jul 27 '19

Universal Coding Blocks for MakeCode and Bot Cars: Extension for all.

2 Upvotes

Universal coding blocks: an Extension for MakeCode and robot cars that works with various products: you don't need a different extension for each manufacturer, from GHI Electronics: https://www.brainpad.com/2019/07/19/universal-robot-extension/


r/MakeCode • • Jul 15 '19

New Guide: PyGamer Marble Labyrinth Game in MakeCode Arcade

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jun 22 '19

MakeCode Minute: Arcade Light Sensor @adafruit @johnedgarpark

Thumbnail
blog.adafruit.com
2 Upvotes

r/MakeCode • • Jun 17 '19

NEW GUIDE: John Park’s Trash Panda Game @adafruit @johnedgarpark

Thumbnail
blog.adafruit.com
2 Upvotes