top of page
Search

Midterm Update:Snake game

  • Writer: Steven Gonzalez
    Steven Gonzalez
  • Oct 9, 2019
  • 1 min read

The wiring I think is right since its just simple setting up button. The problem I have is with the code because its not working and I don't know why. I put in a while loop till the sprite(snake) touches the edge and makes it false. I tried to make the buttons toggle I thought maybe that would fix it but it didn't. And put a while do for the toggle so when its held down it moves and added a change sprite x by ___. And did that for the others except put y in some so it moves up. But that doesn't work and I don't know why. I'm not sure if instead of using the sprites I should create an array but I wouldn't know how to display it on the 5x5 led screen. And I still haven't started assembling a container because I want to make it work first and add some red and green leds.



https://makecode.microbit.org/_b5rRhw5Vr8DJ

 
 
 

Recent Posts

See All
Algorithms:Homework 13

how I found the algorithms that is unfair is by just searching in google companies using unfair algorithms. In this article it has five...

 
 
 
Assignment 11

for this I tried to go off what we did last class and delete a ball i tried using array.pop() and array.splice() but I couldn't get it to...

 
 
 

Comments


©2019 by Steven. Proudly created with Wix.com

bottom of page