The Fancy New Update To My Game

So I made a game, right?

Well my game just got updates such as:

  • New background color and graphics
  • We now have a leader board
  • Guess what! “what?” we got more levels! Now there are 20. “no way!”
  • Levels 12-20 have all side lasers by clicking W for up laser, S for down laser, A for left laser and D for normal right laser

Go to www.blobattack.com to play the new version right now!

(limited time only! <just kidding ūüėܬ†>)

My NEW Game Has Come!!!! Check It Out NOW Right Here #RightNow!!!!!

Hey everybody! My new game Blob Attack has come so you better check it out right now because it is EPIC. I do coding with my dad and we just came out with a new game! Here are some things to know about this game:

  1. Level 3-14: Click the space bar to shoot lasers!  OMG LASERS!!!
  2. Level 5-14: The blobs will shoot lasers that you have to dodge!  WHA!!
  3. Blobs will start to shoot backwards in levels 9-14 and shoot top, bottom, left and right (all sides) in levels 12-14.
  4. How do you go from one level to the next? Use the arrow keys to move around. The goal is to make it to the other side of the page without getting hit by the blobs or their lasers.

Coding: More About Objects And Classes

Hey so you heard about the card game I am working on. NO!!!!!!!!! okay here is a link to learn more about my card game.

I made a card class to make cards for my game.

var Card =function(number,suite) {
  this.number=number
  this.suite=suite
}

I also made a deck class to get the right cards and make a deck from those cards

var Deck = function(deckProperties) {
  this.cards=[]
  for(var suite in deckProperties) {
    var start=deckProperties[suite][0]
    var end=deckProperties[suite][1]
    while (start<end+1) {
      var card=new Card(start,suite)
      this.cards.push(card)
      start++
    }
  }
  
}

I am using deckProperties to get all the cards I need for the game and I use the card class to make the cards. Next, I pushed all the cards that I made into a list.

I made an object to get the right cards for my game

var dP={}
dP.H=[7,14]
dP.D=[8,14]
dP.C=[8,14]
dP.S=[7,14]


Create a new deck

var deck=new Deck(dP)

You can get the cards by writing  deck.cards

 

Coding 1: Classes and Objects

Classes:

An object’s type is a class. The class tells you what properties and methods that type of object has. Here is how you would write a class in JavaScript:

var FidgetSpinner=function(color,shape) {
 this.color=color
 this.shape=shape
}

FidgetSpinner.prototype.spin=function() {
 //Do something here
}

Objects:

Now that we learned about classes we can make an object

var spinner=new FidgetSpinner("color","shape")

let’s spin the spinner

spinner.spin()

 

Coding so so boring yet cool

Coding, boring yet cool. I hate it but i am doing it. My dad and I are making a card game called seven eight. I am learning  the computer language JavaScript. We hope for the card game to be done and available and ready to play in a few months.

I got to making the computer play after you play. I learned how to shuffle and distribute the cards. Here is a screenshot of the game: