top of page

Wizard Dragon Game FINAL

This is my completed assignment. I tried my hardest with this and I will admit I think I tried making something way out of my league since I had way too much difficulty with this. Some aspects of the game are successful while others are not, I tried my hardest to get some of the coding to work but I had to remove some parts entirely since I really was stumped on how to go about it.

Other than the difficulties I faced I can say that there are parts of the code that work well. I was able to get the wizard to move successfully and shoot little magic missiles that fire horizontally with intent to aim at the dragon on the right side of the screen, and there is some kind of collision with the dragon as well. There is also a box that the wizard is limited to moving around so that he is not able to move past the dragon or beyond the borders of the screen. Originally I wanted the dragon to shoot fireballs but I could not figure out how to do so successfully, but in the process of trying to make the fireballs I thought it wasn't a bad idea to make what I did have into a swinging or swatting arm. I added a health bar up top that works a little, I was able to make it so that the health could be subtracted after a missile hits a point on the dragon, but after a certain point it keeps going downward, I was unable to figure out how to make it not continue past 0, but I was able to make it so that the health that goes down does so slowly and the hit point on the dragon is small and a little tricky to hit to reduce the health. I also could not figure out how to have the dragons arm effect the wizard since I had difficulty with collisions. Other than the hurdles I added skulls and rocks and chests to the background.

Assignments: Text

Wizard Dragon Game

For my final assignment I would like to make a small fantasy based game where one would play as a wizard to fight a dragon in a battle in order to obtain an object in a chest such as a chest or some kind of treasure item. I would want the wizard to start in an empty room, perhaps a castle or some kind of camp or cave and in this room would be instructions on how to move the wizard and shoot and what is the goal, I would possibly have some kind of flavor text about defeating the dragon in the next room. I would then have the wizard walk below into the next room where a dragon battle would start, and I would have some kind of health bar or number that indicates my health and the dragons health, upon the dragons health hitting 0, a chest would appear and upon opening it the item pops out and then a win screen appears.

Assignments: Text

Moving Wizard Game

https://editor.p5js.org/efetter/sketches/3bpZhGiZV

This project I made a little wizard that moves around on the screen. He is on a brown background with a treasure chest and a big red dragon. I wouldn't mind using this project later in my final project since I want to make some kind of RPG or small adventure game. If I were to expand on this currently I would make it so upon interacting with the dragon he would make some kind of snarky comment and to make the chest open up and have some kind of coin or gem come out with a little victory screen, but as of right now I do not know how to do that

Assignments: Text

p5js Bouncing Color Changing Ball

https://editor.p5js.org/efetter/sketches/sky3Vp_0A

This is the bouncing ball assignment, This was a little difficult but I decided to repeat the same statements for X for Y and added in the Y statements another randomized RGB code.

Assignments: Text

p5js Pilea Plant

https://editor.p5js.org/efetter/sketches/k3O12vEhji

The image I made for this project through coding is my pilea desk plant, its a cute plant with circular leaves that grow out from the center. I used several circle shapes for the leaves and connected them to a main stem in the center with lines. For the jar/pot I used a rectangle with rounded edges and I Made a smaller on up top with a different color for the lip of the pot. I played around with the stroke thickness, at first I did not want any outline at all but found I liked it more with the outline.

Assignments: Text

Midterm Project

this is just a video showing what the frog is supposed to do, upon touching the touchpad, the legs move up and down.

Assignments: Video
ABD0AE4D-5E79-4801-A442-73310E671A01.jpeg

Midterm Project

Frog external. I painted it green with yellow speckles and gave it a silly face and little box eyes

Assignments: About
A6487836-E5F6-4963-ABF4-BB882B8F65BC.jpeg

Midterm Project

Internals of the frog, here I have the motors fixed down on a box that goes across the width of the larger box and the microbit is placed on top with a wire that sticks out the end.

Assignments: About

Midterm Project Part 2: Completed

https://makecode.microbit.org/_EsP4E6UaPiwq

So this is my completed midterm "hopping frog assignment" the code works properly so that the legs move how I want it to! I made a box to hold all of the components and it it entirely made out of blue painters tape and watercolor paper (I chose this kind since it functioned better than the card stock) I hot glued the motors on the inside of the box and then pointed the motors outward and cut holes into the box so the spinning part of the motor reaches the outside. Then I hot glued some wooden skewers that I shortened to fit the size of the paper box legs and then hot glued and taped them down for extra security. I then cut a slit on the top part of the box for the touch pad to slip through. I attempted to tape it down but unfortunately I think it registered the tape as a touch which made the legs move indefinitely.

​

The only odd thing about the frog that is off other than the touch pad not being able to be held down is the left leg sticks up, but then when you use the touch pad it resets to the neutral position and then does what its supposed to do. Another issue I had with the frog was the wires falling out of the breadboard, especially one of the ground wires for one of the legs which without the ground wire would cause it to spin indefinetly. I also had an issue where the touch pad would fall out because that piece also frequently falls out of the breadboard. Altogether those issues are a simple fix since it just requires the frog box to be opened to have the wires placed back in.

Assignments: Text

Midterm Project Part 2: Frog Update

https://makecode.microbit.org/_EsP4E6UaPiwq

For this update of the midterm I was able to get the motors to move at the same time but I realized one of them has to be in an opposite direction since the motor is going to be facing the opposite direction of the other, and I was able to successfully put that together, I did have a few problems with figuring out the logic statements though.


Next I decided to utilize the touch pad and have it so you gently touch the frog and he should react by having his legs move up and down depending on how long you touch him. Since I am making the frog out of thick paper, either card stock paper or watercolor paper I needed to really make sure that the touch pad would react to a very light touch since I do not want this to break, after trial and error with the touch pad I came up with a value between 10 and higher since the force needs to be geniunely light/sensitive.

Assignments: Text

Midterm Project Part 1: Frog

https://makecode.microbit.org/_hhUhMbYygJFd

For the midterm assignment I really liked the idea of a little cute interactive toy since the professor had mentioned repeatedly a little teddy bear that interacted with the holder. I wanted to make a little frog that "leaps" or "hops." A motor with a rotating bit would be the part that makes the legs move, the hopping wouldn't necessarily make the frog jump into the air, but it would move its legs up, or rotate down, to lift the back end of the frogs body up and down. For the interactive bit I would like this hopping motion to be activated by the touch pad or a button on the top of the head, preferably the touchpad though because it almost looks like your petting the frog on the head. The code I have for now is the beginning parts of it, I am having a difficult time getting the frog to return to a leg down/neutral state, but I was able to get the motor to move and I managed to figure out how to make both motors move at the same time

​

Oh and I am going to make the body out of thick rigid paper like cardstock or water color paper and paint the frog with nice colors.

​

Assignments: Text

Microbit #4 Musical Instrument

https://makecode.microbit.org/_3oW3UhFxJg2V

So for this project I had thought of multiple projects but the two that I attemped was a continuation of my mini soundboard from the last assignment or a rudimentary "trombone/trumpet." I managed to make some progress with the soundboard, but when I applied my programming to the microbit it did not work, so I decided to go with my other plan which was the trumpet but after much trial and error I could not get it to work in the way I wanted it to. I used 2 light sensors as the buttons since If you covered the sensor with a finger it would make a lower pitch, and if you raised it off, a higher one since more light would be hitting it. I was able to program the sensors to play different notes based on how much light they received, but It does not work entirely well, It seems like the second sensor is more quiet or is almost overpowered by the first one, I am not sure if it is a limitation of the microbit, if I put the pieces in incorrectly or messed up programming somewhere. So in the end this sort of works? but I am really not happy with it

Assignments: Text

Microbit #3 Mini Soundboard

https://makecode.microbit.org/_gW1cqqfrjbsr

I made a mini simple soundboard for this assignment, I utilized both A and B buttons on the Microbit itself and the 2 new buttons added onto the breadboard as well. On button push A It makes one note sound, on B another and other notes on the 2 breadboard buttons. This project kind of works? The notes I programmed to the buttons make the sounds that need to be mad but the buttons on the A and B make a long continuous beep when pressed, it plays the proper note but it does not stop and I am unsure where I went wrong.

Assignments: Text

Microbit #2 Jumping Guy

https://makecode.microbit.org/_f11Ai6f8Ffx5

For this project I made a little guy do jumping jacks on the Microbit and on one movement I made one light turn red and on another movement I made the other light turn green. I thought this assignment was going to be way harder than expected since it seems a little daunting with all the wiring, even though it is not as much, and it was at first but then I began by backtracking what we learned in class such as the conditional statement "if this then that" and I wrote down what exactly I wanted to do and worked my way through trial and error. In the end it was way easier than I thought.

Assignments: Text

Microbit #1 Rain

https://makecode.microbit.org/_Fe01FH0Dri6v

For this assignment I liked animating small things into the LED part of the code so I chose to make a little raining animation and when the button A is pushed a rain notification appears.

Assignments: Text
bottom of page