Friday, September 7, 2012

MAKING THE GAME

MAKING THE GAME


5/9/2012

Since the due date for the assignment was soon approaching, I thought it was time that I finally thought of an idea for my game. After a lot of thinking and additional investigation, I had finally concluded what I wanted to do with my game.



I had planned to establish a game in which my sprite one ( main character = cat) had to basically go through a series of rooms ( backgrounds) in order to create the perfect gift for her friends birthday. e.g. clothing, jewellery, shoes etc.



However to increase the difficulty I thought I would put in extra things that my sprite could choose from, but wouldnt be that suitable for a gift. e.g muddy shirt, snails, rocks, cactus plant etc. Consequently making the game start all over again. In addition to increase difficulty if the player is unable to complete the game within the time limit of 80 seconds the game would start over.



6/9/2012
After my last discussion of my ideas, I had already made some progress. Previously I mentioned my ideas and here is a screenshot of those ideas put into action in my actual game.


As you can see I have multiple backgrounds in place to not only provide a variety for the player, but to also enhance the quality of the game and of course to allow the user to find the various pieces for the gift.





As you can see from this screenshot, there are multiple things which the user has to collect in order to create a gift for her friend, the cats friend. A this point I have created a variable in which the user can chose a name for their friend and the cat actually recites this name back to the user. Below is a snapshot of the algorithim used to produce this variable.
You will notice, in order to make this game more complex and entertaining, I have made an additional algorithim so that when the cat actually touches these things to collect them a message pops up to congratulate them on finding the right thing. Below is yet another screenshot of what algorithim I wrote to accomplish this, as well as some of the things that are said :


ALGORITHIM


ALGORITHIM


ALGORITHIM TO CREATE VARIABLE IN WHICH THE NAME IS RECORDED



OBJECTS ADDED TO INCREASE DIFFICULTY

Choosing a cactus as a birthday gift, is not such a great choice. If the player selects this as an option then they will be forced to start the game from begginning.

Water- which can cause the player to trip over, forcing them to start the game again.



These objects ( as seen above) have been added to increase the difficulty of a user as they try and gather the pieces. Also for more inclusion of the user, a message pops up when the cat comes into contact with these objects. Below is a screenshot of the message you will recieve and the algoritihim wirtten to trigger this, if a cat comes into contact with the snail :


ALGORITHIM FOR THIS


This is just a mere example of the kind of messages that would be recieved. For your information if this does happen, you will have to start the game again and during this process the timer will be 'refreshed'.
7/9/2012
Already experiencing difficulties!

SPRITES APPEARING IN THE WRONG PLACE
After I had finished writing my algrotithims for the first two backgrounds, I already began experiencing some issues. The most troubling thing was that when I went onto the previous background the shirt and cactus plant sprite I had created for my second background would appear. Although this was not a major difficulty I still felt it was worth blogging since it was something that took me a while to resolve. I was able to resolve this problem, and below is a screenshot of the algorithim I created to resolute this problem: .



In addition to this, this same message that was broadcasted was to be recieved by the stages. Causing the game to reset to the first room and hence starting all over again.

CONFUSING ALGORITHIMS
In addition another difficulty I faced was with my algorithims. Although after I added each algoritihim, I went back and checked whether it was working efficiently my sprites still went all "funny". What I mean by this is that, a lot of my sprites began to behave differrently to the way in which I had programmed them. However nothing is impossible and by putting this saying into action I was able to find a solution. My solution was that I deleted all the algorithims from where things started to go all "funny" for me. In addition when I was fixing this up I discovered I had a lot of excess algorithims. By this is I mean I had lots of broadcast this and broadcast that, but intially all these broadcasts required the sprites to do the something at the exact same time. So while reforming my game I figured out, that for all my sprites I could just have 'when I recieve this' , they would do what they needed to do at the exact moment since I wanted them to react at the same time when a certain thing happened. Due to my explanation sounding a bit confusing below are a few pictures, which explain this concept a bit better:
1. So this algorithim demonstrates that if sprite one touches sprite 20 then this is to be broadcasted.
2. Once this is broadcasted the following things happen:


( causes some sprites to hide)




As you can see by making one algorithim of broadcast, I could make my sprites all react at the same time. This was a real advantage because it not only reduced the amount of algorithims I had written but also lessened the confusion of following what all the algorithims were actually written to do.
SAVING IN THE RIGHT PLACE
Surprisingly this was my greatest difficulty. During the making of my assignment it was not actually until the day before the assignment was due, I realised that in order to save the assignment onto my USB I actually had to go into my desktop and then E drive. Instead of saving it in here, I was actually saving it on my documents. Consequently this became a limitation for me as I couldn't really work on my game while at school, I had to do it at home due to my stupidity. The credit for this solution definitly goes to Xiara, who taught me how to save it on my USB.

DIFFICULTY WITH ROOM 3
As mentioned previously my greatest difficulty in this room was to make certain sprites disappear and new sprites appear when the player made their way through from room 2 to room 3. However I was simply able to resolve this by inserting the following algorithims:

* insert algorithims which show that the dress is to disappear when touching certain colour
* show algorithim which shows that the boots, jewellery snail etc appear when the certain colour touches. ( due to the broadcast aspect that is released when contact is made)

7/9/2012
Today I began to edit my third slide, during this process in order to create my sprites I thought I would use some off the internet. How did I do this? Simply saved my picture as, and then imported it as a new sprite. In additin to this I also had to use the rubber to erase the excess paint around the pictures. After realising that this method was taking too long I also hand draw some of the sprites. As seen below, these are an example of sprites that have been hand drawn:


8/9/2012
Today I began to edit my second last background ( bedroom 1) during the making of this background I did not experience many difficulties. I experienced the usual troubles of making certain objects appear and disappear which was now getting pretty easy due to the fact I had already made this algorithim multiple times.


However as I progressed with the creation of this background, I began to find making one of my particular sprites ( as seen below) move in a particular direction of side to side motion.


This algorithim ( as seen below) however allowed me to conquer this predicament and create a 'villian' which would increase the difficulty of the game.


8/9/2012
Although this was very last minute I had finally decided the perfect name for my game, which was "SHOP UNTIL YOU DROP", although the user is not literally shopping the concept is correlated to the idea of shopping. Hence the decision of imposing this name.


In addition I thought it was a great idea to include some famous musical themes such as james bond, mission impossible and bee gees to provide the player with a greater level of entertainment.

Sunday, August 5, 2012

Argumented Reality


1.       Define augmented reality (AR).
      Augmented Reality is a type of virtual reality that aims to duplicate the world's environment in a computer.  An augmented reality system generates a composite view for the user that is the combination of the real scene viewed by the user and a virtual scene generated by the computer that augments the scene with additional information.

2.       Provide some examples of how augmented reality might be used.
Examples of how agumented reality maybe used includes when shopping. For instance one could try a sofa in their own home to see if they actually like it. Moreover a consumer could perhaps virtually try a dress on themselves to see if they like it and it suits them.

3.       Traditionally a user would use text entry to search for  information in say Maps or  a search engine. How does AR offer a different alternative?
AR offers a differrent alternative as it allows an individual to

4.       How might the following people make use of AR;

        A mechanic- could perhaps see what tools would be suitable to rectify problems

        An interior decorator- can test out colours and pattersn on walls beforehand

        A student

Tuesday, July 24, 2012

Pseudo Codes

Here are some notes I made while Sir was explaining to us what Pseudo Codes were.

Type of Enlgish- common words
Infromed structure- so it does not follow a set of rules
This tries to describe the algorithim in text that resembles code although may not be

Psuedo Code Commands
Here are some fo the Psuedo Codes we did with Mr Lenon.

If...then
else
These are examples of selection commands, since you are required to select something.

Some Keywords that should be used

Repeat .. until } this is an example of a repetition command
an example of when this command is used includes : add one until a total of 50

Protest Repetition
Post Test Repetition
Intialize means set to a certain value
Input means get a value
Print means output to hard copy

Writing a pseudo code for filling a bath with water:

Task : Writing a code for "filling a bath with 80 L"


Sunday, July 22, 2012

Making An App

Today I learnt how to make an app and to be honest it was quite simple and easy to make! All i had to do was download Java, open up a site, a block editor and an emulator and there I was ready to roll !











Basically these are all the steps I followed to produce the app. Unfortunately I accidently closed the window before I took a shot, therefore I dont have the final product. Though I remember Mr. Lenon checked the app and approved it for me anyway :D 

Monday, July 16, 2012

Flowcharts


  1. What is a flowchart?
A flowchart is a means of visually presenting the flow of data through an information processing system.
2. Describe the basic flowchart symbols for;
  •  Start or end of the program a rectangle with curves on the corner
  • Computational steps or processing function of a programa rectangle with curves on its edges
  • Input or output operation a rectangular box
  • Decision making and branching a rectangular box
  • Flow line a diamond 

  1. With the decision making symbol (diamond) and the process symbol (rectangle), what are the rules for how many lines may enter and leave the symbol.
  2. In a rectangle one line must enter and one must leave. Whereas in a diamond one enters and two come out.
  3. Study the sample flowcharts then create a flowchart for a coin toss where heads means Mary pays for the pizza and Tales means Bill pays.


The sum is a variable and so is N in the example

Sunday, July 15, 2012

Algorithms


Algorithms



What is an Algorithm?

An unambiguous set of steps, which when performed correctly by a processor, will result in a process being carried out in a finite time.

For example if you were to explain to someone how to make a cup of coffee you would be defining an algorithm;


1. boil the water,

2. place coffee in the cup,

3. place sugar in the cup,

4. add the boiling water,

5. add milk,

6. stir.
1. Examine the algorithm above. What twoproperties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee? What is it that makes an algorithm correct?(Hint: what would happen if you swapped step "6" and step "2"?)

What makes this algorithim above so effective is that it has simple commands that can be followed by a computer. Addtionally the steps are chronological, making the task easy to be carried out.

2. Define Algorithms for the following processes.
Posting a letter.

Get a piece of paper

Using a pen write what you want on the paper

Fold the paper in half

Open envelope

Place paper inside envelope

Put the flap down

Seal the envelope

Put address on the outside of envelope

Put postage stamp

Drop of in post office

Making toast.

Withdraw two slices of bread from loaf

Place bread pieces inside the toaster

Pull the lever down

Set the temperature, according to 1 2 3 4 5

Wait for the bread to come out

Spread desired topping on bread
Calling a friend on the phone

Pick up the phone

Place the designated number

Wait for dial

Start talking once you hear a voice on the other end