top of page

Why Do We Code?

Computers run simply off of ones and zeros. The code we write for games and websites are all translated into ones and zeros. The code is simply a set of instructions for the computer to read. There are many different coding languages that allow us to give the computer instructions. We can use java and c# for coding  games, and we use HTML and CSS to code websites. Without coding it would not possible to use the internet, send text messages, or even listen to music. It is important for us to continue to learn how to code and not take technology for granted.

The Game!
Home
Recent Posts

Unity Code C# (The Game)

Example #1

The code above gives the player the ability to move the rocket back and forth using the arrow keys. The code also makes it so that the player cannot move the rocket off the screen and avoid all of the space rocks.

Example #2

The code above makes the rocket constantly accelerate (go faster). The speed of the rocket is constantly being multiplied by time making the rocket accelerate every tick(every time the code is run through in this case it is run through ten times per second).

HTML (Web Coding)

Example

The code above is the backbone for the website. All the text on the website is entered in the HTML code. As you can see <h1> has the title to the site in the brackets.

CSS (Web Coding)

Example

This is a simple example of how CSS code modifies the look of a website. If you can remember the <h1> was declared above and the CSS code tells the title where to be (centered) and the font (cursive).  I would show the rest of the code for centering the game on the site, but is a mess that will confuse everyone. Comment if you want me to post it.

Shaun's Blog
About the Author

Over the last 10 years I have been interested in video games. I have played them consistently throughout my life, and now I have the chance to create one of my own. I hope it will be a learning experience, and the game I create is a stepping stone to bigger and better things.

Interview With Mr.Baez
Connect
  • Google+ Social Icon
  • Facebook Social Icon
  • LinkedIn Social Icon
  • Twitter Social Icon

Word Count: 1357

bottom of page