1 / 51

Planning

Planning. Reviewing G reenfoot games. Play 3 Greenfoot games and make notes about the following: Aims of the game Characters : Inputs/Controls Rules of the game Levels Variables. Global Men.

iola-sosa
Download Presentation

Planning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Planning

  2. Reviewing Greenfoot games • Play 3 Greenfoot games and make notes about the following: • Aims of the game • Characters: • Inputs/Controls • Rules of the game • Levels • Variables

  3. Global Men • Has two separate parts to the game so far:Action Game Part: - Turning carbon dioxide molecules into two oxygen molecules and a carbon molecule by special equipment- Becoming familiar with the controlsStrategy Platform Part:- Collecting trash in a limited time frame- Figuring out the invisible maze in the map using the visuals as cluesControls (In case no one cares to read the tutorial)Left Movement ? Left Key, ARight Movement ? Right Key, DJump ? Up Key, W, SpacebarUse Handheld Protonic Equipment ? JUse Ranged Protonic Equipment ? K • http://www.greenfoot.org/scenarios/1033

  4. Glacier Defence • Defend one of the polar ice caps from our pollution, in a 20-wave strategy-based game! • http://www.greenfoot.org/scenarios/1094

  5. Animal Diet • This is a game made for a school project. The idea was to make something educational. “I didn't have much time to work on it, but I consider this to be just a PROTOTYPE and I'll keep working on it as soon as I have some free time. ““I'll also work on the game art and by the time I'm done it will look much different.”http://www.greenfoot.org/scenarios/3768

  6. MIND MAP Gaming Ideas • Type of game (maze, platform, shooter) • Theme/background • Characters • Inputs/ controls • Rules of the game • Levels/Missions • Variables

  7. Creating your game • Use Fireworks to make all the: • characters/actors /objects • Backgrounds • Intro screen • Gameover screen • Collect sound effects – findsounds.com

  8. Storyboarding • http://dogtrax.edublogs.org/2011/12/16/more-video-game-storyboarding-the-student-perspective/ • http://www.youtube.com/watch?v=k-9pkB05IlQ • http://www.youtube.com/watch?v=3fk0uWer6IQ • http://www.youtube.com/watch?v=Q10ZO-8ByAc

  9. Actors Name for your game Levels Inputs Aims/Rules What variables? Write about sound effects Choose an environment

  10. Success Criteria • Intro screen • How to play the game - instructions • Scoring system • Enter players name • Scoreboard • Game over

  11. Success Criteria • Calculate the ….. • Display ………..on the screen • Be able to know the end of the game…. • Start game…. • Know that level/score/time the player is on • Fun to play… • Good graphics…

  12. What makes a good game? • Is it fun to play? • Does it have different levels? • Does it keeps a score? • Can you can play with friends? (multiplayer) • Does it have a point? – story or narrative • Does it have good quality graphics? – backgrounds & characters • Does it have a goal or task? • Is it easy to play? • Does it use suitable sound & music? • Does it have easy to use controls? • Do you like the characters? • Is there enough help and guidance?

  13. Algorithm Planning Flowcharts & pseudo code

  14. Learn how to plan algorithms All • Know the difference between a input, process and output • Write a simple algorithm using pseudo code • Write a simple algorithm using a flow chart • Know the difference between iterationand IF selection Most • Write a complex algorithm using pseudo code • Write a complex algorithm using a flow chart Some • Know the difference between a low level and high level flow chart

  15. Inputs, processing, outputs Planning

  16. Algorithms Planning • Defining inputs/process/outputs • Flowcharts • Using Pseudo code descriptions – writing code in plain English

  17. Some Keywords • For looping Do While • For selection lf , Else If, Else • Process words: • Get, set, increment, remove • Input words: click, press, enter • Output words: print and display

  18. Inputs/Process/output table

  19. Inputs/Process/output table

  20. Inputs/Process/output table

  21. Algorithm Planning Task 1 Write down in plain English (pseudo code) the instructions for a object to move left to right and starts again from the left when it hits the edge. Starting position X=100 and y=100. 1. Set x position to 100 and set Y position to 100 2. Get current X position 3. If current X position < stage width then Change X position by 1 Else change X position to 0 4. Repeat steps 2 and 3 Forever until game ends

  22. Algorithm Planning Task 2 Start of game set score to 0 Do until no more asteroids If spaceship bullet collides with the asteroid Get current score Change/ increment current score by 1 Set score to new score Display current score on the stage Remove asteroid

  23. What is a flowchart? • Logic diagram to describe each step that the program must perform to arrive at the solution. • A popular logic tool used for showing an algorithm in graphics form. Chapter 2- Visual Basic Schneider

  24. Purpose of Flowcharting: • An aid in developing the logic of a program. • Verification that all possible conditions have been considered in a program. • Provides means of communication with others about the program. • A guide in coding the program. • Documentation for the program. Chapter 2- Visual Basic Schneider

  25. Start Flowchart Temp (input) The flow chart is made up of an input, decision and the alternative processes or actions. Temp > 25 (decision) False True Turn on A/C (process) Turn A/C off (process) End

  26. High level pseudo code List in order how your game works: For example: • Entry screen • Enter player name • Play game • Show final score • Show scoreboard Step in the process Procedure Input/out

  27. Controls pseudo code • If press left arrow • Change X by – 5 • If press right arrow • Change X by + 5

  28. Levels pseudo code Press enter on intro screen If Level 1 Display level 1 Display score Set score to 0 Display 4 asteroids, space ship If spaceship collides with asteroid Display game over If bullet collides with asteroid remove asteroid and score + 1 If asteroids = 0 Display level 2 Set Score to 0 Display 5 asteroids and spaceship. If Level 2 If level 2 & Asteroids = 0 etc ….. Display game over Show scoreboard

  29. Jump code start Set gravity to 0 If Space clicked If collides with platform Set acceleration to 2 Set gravity to 12 Set gravity = 0 Setlocation(get x, get y + gravity) Setlocation(get x, get y + gravity) Set gravity = gravity + acceleration

  30. If statements start If ? Collides with ? Yes Step 1 Step 2 No

  31. Enter Name • Player enters name • Press enter button • If player name < 15 characters • Set player name (variable) • If player name is > 15 • Display error message

  32. Enter name start Enter name If player name <15 Yes No Display error message Set player name

  33. Scoreboard Get data from data file Add data to player array Add new player name and score to player array Sort array by score – highest to lowest Display array list Save array data to data file

  34. Scoreboard start Player data file Build player array Add player name and score to Player array Sort array Display array list Save array list to data file

  35. Choice of programming language • I have chosen to use Greenfoot software to create a game that will run through a browser on a mobile phone. Some mobile browsers support running Java Applets, if the appropriate software has been installed on the phone by the manufacturer.It can be run on a Nokia N900 smartphone using OpenJDKas a app but is not compatible with Android and Iphone.

  36. Programming Language: • I have used Java to program the game using Greenfoot software. Greenfoot software is a good platform for creating games and prototypes: The advantages of Java are as follows: • Java is easy to learn. Java was designed to be easy to use and is therefore easy to write, compile, debug, and learn than other programming languages. • Java is object-oriented. This allows you to create modular programs and reusable code. • Java is platform-independent. One of the most significant advantages of Java is its ability to move easily from one computer system to another. The ability to run the same program on many different systems is crucial to World Wide Web software, and Java succeeds at this by being platform-independent at both the source and binary levels. The disadvantages are: Find out – do some research on the internet

More Related