0% found this document useful (0 votes)
21 views1 page

Microsoft MakeCode Arcade

The document outlines a MakeCode project involving sprite interactions in a game. It includes setting up player, enemy, and food sprites, managing their positions, and implementing score changes based on overlaps. Additionally, it features music playback and camera follow functionality for the player sprite.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Microsoft MakeCode Arcade

The document outlines a MakeCode project involving sprite interactions in a game. It includes setting up player, enemy, and food sprites, managing their positions, and implementing score changes based on overlaps. Additionally, it features music playback and camera follow functionality for the player sprite.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MakeCode       

on start

forever

Search...  set tilemap to tilemap


set mySprite3 follow mySprite with speed 50

set mySprite to sprite of kind Player


play melody  at tempo 120 (bpm) until done

set mySprite2 to sprite of kind Food

 Sprites set mySprite3 to sprite of kind Enemy on sprite of kind Player overlaps otherSprite of kind Food

change score by 2

set mySprite2 position to x pick random 20 to 150 y pick random 20 to 150

 Controller

set mySprite2 position to x 42 y 35

 Game set mySprite3 position to x 92 y 21


on sprite of kind

change score by -1
Player overlaps otherSprite of kind Enemy


move mySprite with buttons
set mySprite3 position to x pick random 20 to 150 y pick random 10 to 150
camera follow sprite mySprite

 Music set score to

start countdown
0

120 (s)

  Session #3       

You might also like