Game-Framework-in-Scratch

include page="scratch_header" editable="true" =GF - Game Framework in Scratch= a wiki page for everyone to add or adjust this text, to worked together to making this GF to happens GameFramework is some sprites show above to help scratch programmers to build a GUI, look the same over many scratch project. The game with red, green, yellow dot is only in simple ways making a small game to show how GF should be used, it is not a good game.

http://scratch.mit.edu/projects/klasbricks/234935 - Show a demo online (needs JAVA) or to download (needs scratch) http://scratch.mit.edu/forums/viewtopic.php?id=8438 - Discusions about Game framwork

=Game with GF= http://scratch.mit.edu/projects/klasbricks/395533 GF-Hitmath http://scratch.mit.edu/projects/klasbricks/234935 GF-Framework

=Game converted= http://scratch.mit.edu/projects/klasbricks/239742 GF-CountFruits http://scratch.mit.edu/projects/klasbricks/238230 GF-AlphaCircles http://scratch.mit.edu/projects/klasbricks/250709 GF-Solitaire http://scratch.mit.edu/projects/klasbricks/436810 GF-MultiBalls http://scratch.mit.edu/projects/klasbricks/246251 GF-MasterMind http://scratch.mit.edu/projects/klasbricks/249675 GF-Slider http://scratch.mit.edu/projects/klasbricks/175278 GF-Hitmath

=Want converted= http://scratch.mit.edu/projects/Paddle2See/137150 Salling Course, with more boats and levels

Missions

 * For user to help create a standard GUI for small game with levels for making it easy to start playing
 * For programmers to give have a framework to begin to make levels and code for start and stop game very simple.common problem is when a single level game grow, it gets strange coding.
 * Making so few sprite possible to for making presentation, select level but code in sprite should be easy to understand.
 * Making many good program for education called GF-xxxx so it could be use in education for other thing than computer programming
 * If there is many good education program then it will inspire student to write education program for younger student.
 * Those sprite should be easy add to different backgrounds and games
 * Have a level in games for computer beginners or young children, and for children with computer experience.
 * Build many small level which to make it easy to start playing felling and showing progress
 * On first screen there should be enough info (keyboard, mouse) to begin play pushing triangle play buttons
 * Small size in KB so it get easy download, and making fast small game

Inspiration
I was very impress of http://gcompris.net/ which is a open source project with over 100 different education programs, programed in Python and have make a common framworked for select game, start game ending game. over 70% should be easy to make in scratch and many have already been build to some part in scratch already. 20% is possible but scratch is need to stretched. Some of the small games was I interested to improved, but is a big step to learn a program language one IDE and a framework and SVC before you could begins to add and improved. It is not on web, you need to download and install. Scratch have already web publishing, tags, selection fixed, and with GF there could be helped programmers to build skilled games with levels so they get longer lived and higher educations effects. A vision is that the best GF-games in scratch can be gcompris and many of gcompris game can be in scratch.

Need help

 * 1) To answered following question
 * Should there be i life counter (common in games)
 * Should there be pause( complicate code,
 * Making good understandable English in GF and in this wiki about GF
 * Simplify code or making graphic more clear or nicer
 * How should many person in scratch collaborate over over same code.
 * Should it be a program documentation in help screen
 * On suggestions

**Version**
> add incress level and age when WIN.
 * GF - Framework v0.07 more clear code 5 Sprite, 21 scripts, 6 broadcasts
 * GF-Framework v0.05 CHange graphic to yellow pacman, and red with tags, and maxpoint showing when finish
 * GF-FrameWork v0.04 Have Help,Age-Level,Level, sublevel (points),start, Game red,yellow
 * GF-FrameWork 001 - First test only play button

How it works
Shortest - None computer experience or young kid (in progam age=1) or (easy levels, beginners) middle - Computer experience, students (in program age=2) (normal levels) Longest - Good play if computer experience and adult (in program age=3) (hard levels) (why show all three, to show there is three choice, if only two, edit the sprite and removed) Game restart with the new setting (show on current level for making it easy to have different numbers of levels)
 * Help** - click on it show help screen
 * Tree people**
 * Dice**/**Numbers** (v0.7) - click on it change levels, if a level is finish and won it will increase,
 * Play** - Click to start with current selection

Sprites



 * AgeSprite** - show and selected age-level
 * StartSprite** - All game logic
 * LevelSprite** - show and select level
 * HelpSprite** - on click show helpscreen, can adds more helps pages
 * NoteSprite** - Show small start helpscreen, win and loose


 * Yellow**, **Green,** **Red** - is only an example games, should be removed.

GLOBALS VARIABLES
When using to add GF to a other scratch project I add gf- infront of all variable -2 lose game -1 Win game 0 Menu or help active 1 Game in progress ( 2 pause but then need in all objects gaming loops (wait until  ) (should be more difficulties or new maps on different level in demogame incres maxpoint but this game get harder because the size) (could easy write more costumes very simple to add a numbers on it) (level and/or point could easy get remove without braking the logic)
 * gf-GAME** is gameStatus
 * gf-AGE** is a level-age 1-3
 * gf-LEVEL** is level 1-maxlevel
 * gf-MAXLEVEL** Which is maxlevel, could be different costumes for to 9
 * gf-POINTS** to show how many points
 * gf-MAXPOINTS** to show end of this level

Brodcasts
The brodcast GamaStart use different order from WinGame, it is for that GameStart should first in brodcastlist and GameStop second. gf in front of all is for no conflict and easy to found in list
 * gf-GameStart** - This should be the most used recive for starting all sprites
 * gf-GameStop** - If not stopAll sprite commands is used or loop with 0>
 * gf-Icons-update** - Update all icons in buttom row when change
 * gf-LoseGame** - Message from some sprite that the it is Lose game, show loose sign
 * gf-NewGame** - It is for initing global game variable before gameStart
 * gf-WinGame** - Show Win sign and increase levels and Age

Screenshoots
When game is finish and won version 004