Thursday, May 16, 2013
Test And Debug
Our game did not have any problems really. Not that I have noticed. My teammates tell me that their is a glitch in the maze level although I have not spotted it. I guess maybe it depends on what computer you are using or maybe the browser. A lot of my teammates use Google Chrome as I always use my favorite, Mozilla Firefox. I hope that the judges did not see any glitches in our game and hopefully that did not throw off anything. Our game was tested by my friend Scotty, the team captain of Flower Power, and also by my teammate Mariana. (I hope no other teams going to the Globey's have any glitches. I have played Flower Powers game and seen no glitches, just a few typos I have helped them with.)
Combine FLA. Files
This was very easy for me since I am team captain and this is my main job. Our game started to look so great after we put it together and I was very proud of it afterwards. My team made things easy for me as all I had to do was add in their frames into my folders organized by the gameplay with the instruction & others like it. All I had to do was copy and paste their frames into the main game file on a frame. Flash will paste all of the files. All I have to do is put them in a file because I like to keep them nice and neat. not specifically organized as it was last year, but it's something and it still looks good when you play it. Combining files was kinda hard for some seventh graders and I helped a few of them with it when I visited their class before to see how they are doing with their games.
Tuesday, May 14, 2013
Use Pseudocode And Commented Code
My game in pseudocode...
Match all of the cards to advance to the maze. Get to the end of the maze while avoiding the enemies. Repeat the matching of the cards then the maze. You have won the game.
stop();
//tells frame to stop
var score = 0;
//the fake score
onEnterFrame = function(){
if ( (MatchE.hitTest(MatchA) && Match2.hitTest(Match4) && MatchC.hitTest(Match6) && Match3.hitTest(MatchB) && Match5.hitTest(MatchD) && MatchF.hitTest(Match1) ) ){
gotoAndStop(2);
}
//our matches
if (MatchE.hitTest(MatchA)){
MatchE.gotoAndStop(11);
}
if (Match2.hitTest(Match4)){
Match2.gotoAndStop(11);
}
if (MatchC.hitTest(Match6)){
MatchC.gotoAndStop(11);
}
if (Match3.hitTest(MatchB)){
Match3.gotoAndStop(11);
}
if (Match5.hitTest(MatchD)){
Match5.gotoAndStop(11);
}
if (MatchF.hitTest(Match1)){
MatchF.gotoAndStop(11);
}
//if it hits then it is a pair
if(score == 6){
gotoAndStop(11)
//if you won then go here
}
}
MatchE.onPress = function(){
startDrag(this);
}
MatchE.onRelease = MatchE.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match2.onPress = function(){
startDrag(this);
}
Match2.onRelease = Match2.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
MatchC.onPress = function(){
startDrag(this);
}
MatchC.onRelease = MatchC.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match3.onPress = function(){
startDrag(this);
}
Match3.onRelease = Match3.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match5.onPress = function(){
startDrag(this);
}
Match5.onRelease = Match5.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
MatchF.onPress = function(){
startDrag(this);
}
MatchF.onRelease = MatchF.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
//actual score
stop();
var score = 0;
onEnterFrame = function() {
if(hero.hitTest(enemy1)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy2)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy3)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy4)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy5)){
gotoAndPlay(7);
}
if(hero.hitTest(home)){
gotoAndPlay(8);
}
if(hero.hitTest(coin)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin);
}
if(hero.hitTest(coin2)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin2);
}
if(hero.hitTest(coin3)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin3);
}
if(hero.hitTest(coin4)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin4);
}
if(hero.hitTest(coin5)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin5);
}
if(hero.hitTest(coin6)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin6);
}
if(hero.hitTest(coin7)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin7);
}
//if it hits the coin you get points and a solider is game over
}
Match all of the cards to advance to the maze. Get to the end of the maze while avoiding the enemies. Repeat the matching of the cards then the maze. You have won the game.
stop();
//tells frame to stop
var score = 0;
//the fake score
onEnterFrame = function(){
if ( (MatchE.hitTest(MatchA) && Match2.hitTest(Match4) && MatchC.hitTest(Match6) && Match3.hitTest(MatchB) && Match5.hitTest(MatchD) && MatchF.hitTest(Match1) ) ){
gotoAndStop(2);
}
//our matches
if (MatchE.hitTest(MatchA)){
MatchE.gotoAndStop(11);
}
if (Match2.hitTest(Match4)){
Match2.gotoAndStop(11);
}
if (MatchC.hitTest(Match6)){
MatchC.gotoAndStop(11);
}
if (Match3.hitTest(MatchB)){
Match3.gotoAndStop(11);
}
if (Match5.hitTest(MatchD)){
Match5.gotoAndStop(11);
}
if (MatchF.hitTest(Match1)){
MatchF.gotoAndStop(11);
}
//if it hits then it is a pair
if(score == 6){
gotoAndStop(11)
//if you won then go here
}
}
MatchE.onPress = function(){
startDrag(this);
}
MatchE.onRelease = MatchE.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match2.onPress = function(){
startDrag(this);
}
Match2.onRelease = Match2.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
MatchC.onPress = function(){
startDrag(this);
}
MatchC.onRelease = MatchC.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match3.onPress = function(){
startDrag(this);
}
Match3.onRelease = Match3.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
Match5.onPress = function(){
startDrag(this);
}
Match5.onRelease = Match5.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
MatchF.onPress = function(){
startDrag(this);
}
MatchF.onRelease = MatchF.onReleaseOutside = function(){
this.stopDrag();
score = score + 1;
}
//actual score
stop();
var score = 0;
onEnterFrame = function() {
if(hero.hitTest(enemy1)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy2)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy3)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy4)){
gotoAndPlay(7);
}
if(hero.hitTest(enemy5)){
gotoAndPlay(7);
}
if(hero.hitTest(home)){
gotoAndPlay(8);
}
if(hero.hitTest(coin)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin);
}
if(hero.hitTest(coin2)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin2);
}
if(hero.hitTest(coin3)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin3);
}
if(hero.hitTest(coin4)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin4);
}
if(hero.hitTest(coin5)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin5);
}
if(hero.hitTest(coin6)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin6);
}
if(hero.hitTest(coin7)) {
score = score + 1;
scoreDisplay.text = score;
unloadMovie(coin7);
}
//if it hits the coin you get points and a solider is game over
}
Monday, May 13, 2013
Construct Code
The three things I always check when constructing my code first is for an opening { with it's matching partner closing }. The second thing I check for is a stop(); code at the beginning of each action frame. Finally, the last thing I always look for is all of the punctuation such as ; + = - These are all usually simple things that throw off the code in games. Sometimes it is more difficult such as the entire code is actually wrong, as in it is invalid for that frame. Sometimes it takes extra research to find exactly what you want to do. For example, my educator helped me find the exact code and how to exactly place it in my memory level for my team's game.
Update Team Development Plan
There was not much of a difficult concept to teach. Maybe why Hitler started the Holocaust for WWII, although we haven't mentioned much on that due to us not wanting to offend anyone. We find tutorials on historian blogs by scientists, the history channel, and our text books from the past three years. We had a lot of opportunities to look into old textbooks since we go to a PreK-8th grade. We taught quite a lot in the card level. Our maze level taught a bit about the stealth in how a scene may be to get into your base camp. All in all our game taught QUITE A LOT OF BASICS.
Wednesday, May 8, 2013
Present Team Demo
The big idea of our game is to teach the simple basics of WWII, it was easy to make this decision as my teammates told me, the captain, that it did not matter what we did as long as we could add in the education. We did not have to do much research as we had plenty of prior knowledge from 7th grade world history and 8th grade us history. There was not much to learn with flash as we knew plenty from last year although the drag and drop parts was a challenge for there were many ways to make it work, but we had to find a certain one to apply until it finally worked. The next steps that we are going to do with our game is clean it up of any faults it may have and make it look prettier with custom cursors, better looking buttons, and etc..
Add Drag Amd Drop To Demo
We have plenty of drag and drop in our demo. The level, or parts, I was working on was filled with it. In fact, that is all it was. Our drag and drop parts of our game are fantastic. The cards work perfectly and there is no score due to it being simple. Our drag and drop section teaches you the most in our game. The drag and drop is the learning aspect of our game and the maze is the fun part.
Add Sound To Demo
Our game does not have any sound in it due to us knowing that it doesn't really matter with how our game is set up. If we were to add sound then maybe it would be in our main menu and credits. Our computers don't all have speakers except for the master computers at our school so this would be another reason why most of our teams do not have any sound. Some of us do though. Maybe some battle sounds would fit into our maze game as well. If we had more time then maybe we would have added some sounds in.
Add Game Pitch To Demo
My team uses visual learning with our maze area of the game. We show a maze like battlefield and other things such as a campsite. Everything is in a flash style form, but it still teaches and shows you. Our final visual learning is the complete finishing the game scene with all the flags. It will teach you about how most of the flags of the countries involved in WWII looked liked during that time. Spain, America, and Russia are a few example of countries who have different flags compared to then and now. I would say that our visual learning is in a good area where it is not too much or too little.
Subscribe to:
Posts (Atom)