Wednesday, 25 March 2009

Amazing Memory - evaluation

Having now finished Amazing Memory, here's the bits that didn't make the short evaluation.

My main problem namely was initiating the hit test object for the maze walls. Having used an object that the character sits within, instantly the code would recognise it as a hit and bar any movement due to how it was programmed.
I eventually overcame this by swapping to hit test point which can register x and y values, identifying co-ordinates. Now, when the character is inside the maze it can move freely and then on colliding with a wall, the stop movement is activated.



This then led onto the next problem! Whilst hitting a wall, my code removed key presses so that in theory, the user couldn't carry on through. I managed to find a solution by getting it to re-buffer away from the wall by 5 pixels - not noticeable to the player but code-wise a viable option.

The rest was reasonably simple. Courtesy of David Downes' example Flash files, the count down clock worked in it's three forms for my game. I learnt the need to disable key presses whilst the remember/reveal options were active, as the user tried to cheat and move through whilst the walls were viewable.

I noticed a bug in regards to the clock timer going past 0, i.e. counting -1, -2. In my code I had specified when timerclock==0, stop - abbreviated form. David suggested to overcome this by using <=0 as this will encorporate the switching between code and timeline and rectify it so that when it goes past 1, it will activate the stop. Rather than getting to 0, telling it to activate the stop and by this stage it has already decreased to -1 and so on.



Lastly, when updating the graphics the flower became difficult to see when placed in certain areas of the grass background. I remedied this by adding a white padding hopefully making it more legible now.



There were initally the typical problems of embedding the custom font 'Lazy' from dafont.com and me not embedding all the required glyphs. To save problems in the future, I will now just embed all caps, lower case, punctuation and numerics - this covers the span I will likely use.




In all, I found this assignment achievable by splitting it up into manageable development stages. To sit down and code this from start to finish would have been daunting and I probably wouldn't have accomplished it. If I were to make a game again, I would definitely handle it in this way - it's a sound time management system that I have since incorporated in my other modules, such as PHP.


Overall, I am pleased with my game and although difficult to play at first, I find it a different, but interesting game. Submitting it to amateur online games sites however could prove or disprove my opinion completely!


@

Sunday, 22 March 2009

Social networking site - recycling is good

My last post about Flash banners for Get In: Get Gaming was unfortunate in that I went to the effort of making a banner which I then didn't think was good enough for the site and so didn't use it! 

However, as I'm increasingly finding with design, every idea has a worth and is useful. 
Back when I was making Villains I did an initial batch of logos, naturally, only one being chosen to use. When needing a specialised header for the pages, I combed through my original designs and successfully implemented/incorporated them together, thereby fuelling a recycling scenario.

I have been fortunate enough to do this again for the social networking site. 

The light blue tone was the main problem the first time around - it stuck out too much and downgraded the overall feel. 



The image above I darkened by adding a darker filter along with a black border. Alas, it was to no avail. I still wasn't pleased with it.

Cut to a few days before hand in and me turning my attention to filling the pages with content and I had an idea. Utilising the gradient background that already proved successful I decided to do a typographic sort motion piece just reinforcing the title of the website. Naturally, the choice of neon light blue was instantaneous. This time however I went for a techy, digital feel using LCDDOT custom font from dafont.com.

>

Initially I expected this to go onto the main page, but it ended up placed to appear once the user has logged in. In terms of literary meaning, I know this is a little off: "get in: get gaming" probably should be before they login, but it was the second banner, courtesy of recycling, a gaming legends banner that felt more apt on the homepage. It served a better purpose: attracting the attention of potential visitors.

Whereas previously the gaming icons floated, spun, faded on and off the horizontal banner, this time I just decided to go with a scrolling from right to left effect. 

>

I dropped images that weren't square i.e. having whitespace etc so to conform to the square rigidity of the piece. I think this is an effective Flash banner as it should draw in the eye to the gamer on first loading the index page, particularly as the colourful images make for a strong contrast against the black backing. Furthermore, the scrolling effect makes for a nice piece of motionary graphics.

In terms of Flash complexity, I wanted to loop it so the first one would join with the last one, making it cyclic. Unfortunately with limited time and PHP being the key priority I merely inserted a second string of images after the first load. Should the user hang around long enough on the first page they will see it scroll through but hopefully not long enough for it to get to the actual end where a black void will appear momentarily!

In all, this was an exercise that showed and proved that ideas are not dead and gone the first time they don't fit. It is reassuring and feels good to know the effort you put in is worth it. Furthermore, being a fan of motion graphics, I'm pleased with these pieces as they play nicely on the eye.

@

Friday, 20 March 2009

Amazing memory - the designs/refining

Today is the deadline and today I will submit my completed Flash game.

Having gone from a rather blank idea - remember a maze, I'm pleased with the progress. I initially put off the design side to things, unusual because I usually enjoy getting involved with that. But encouraged by the likes of Sarahs and Jacqui's visuals, I knew I had to make an effort. 

The initial look I tried was a sand background. I just wanted something that wasn't the flat and plain white background.


I then decided to try inverting it so it was the maze that had visuals. Admittedly this idea fell short pretty soon as the walls disappear, so I would have been back at square one - white!



However, I liked the grassy look. The hue and saturation is really vivid and strong. It looks good. I thought about it and tried to develop a  scene that would resemble some sort of wildlife/nature in the backyard feel. I added a ladybird as the 'ball' and flower as the 'end'. It worked well.



I went on picking out a typeface and colours that would bode well. I think the red contrasting against the green is perfect. There is a distinct clarification. 



I decided to add a cooky sort of indie typeface which again bodes with and makes up a good thematic visual. 

Making the item you navigate around with a character, named as Dotty, it gives the game a more sort of personal feel, a little life/character to it. I like this touch.



From my experience, I knew that instruction page was important. I was aware it definitely shouldn't appear too crowded, yet I didn't want to make the instructions so sparse that they weren't informative enough. 

It's minimal, but I like the visual representation of the game's aim here - get to the flower, with a curved dotted line from Dotty the ladybird. This should connect much quicker with the audience who probably don't wish to read all the text.

--

In terms of the coding/structure, I have added a points score system that collects the time left after each level and combines into one large score at the end. As with other similar games, the incentive to 'better your score' should prove encouraging enough to want to replay, being quicker and more skilled in remembering the mazes.



I am really pleased with the design after having completed it. It looks a lot like the current branding used by Robinsons. Perhaps this was an unconscious influence.

All that needs to be done now is user testing. From experience, I have found this to be vital in pointing out bugs or making me aware that something isn't clear enough/needs evolving.

@

Thursday, 19 March 2009

Amazing Memory? more developments

Compared with PHP, Flash this year has been a relative breeze. Perhaps it's error reporting is a little more specific, but I've enjoyed the game making process so far.

Since last time I've started to add an important part to games - scoring. It is this aspect that often encourage repeat plays in the hope of bettering previous scores. 


From my original game plan, I wished for any time left on completing a level to be converted into their score. Initial attempts had me trying to calculate the total time of a level (40) - timeremaining. This wouldn't function however. After a surgery session with David, I discovered it was as simple as printing the time when it stops (when they hit the finish line).

It is now simply a case of inserting the seperate score display between each of the stages. Admittedly, the graphics are currently below par. This will be addressed, although I've put it off so far! This will likely be the last development I make. I think I am going to struggle a little over graphics that are qualitative. I suppose the main essence of a game is gameplay, yet I clearly listed uninspiring graphics as a no-no in my game objectives, so I will have to commit myself to it.

Next up, the decision to include a reveal option is a great help for those struggling. It stops the main level timer whilst itself counts down for a limited period. However, I noticed that you could then cheat your way through the entire game by hitting it at any moment you become stuck. To counteract this, I decided to impose a set amount of strikes. 5 in particular, for the whole game. Even that might be too generous? I am going to conduct user testing to find out!



Lastly, I noticed just like the ping pong game, that the controls seemed a little sluggish/unresponsive. In response, I have set any key press to be a boolean: key up-true, key down-false etc. When they press the left key for example now, in the code it activates function keydown by making it true. Admittedly, the difference isn't that great compared with pingpong as I am using one frame per level, whereas ping pong streamed through 3. Nonetheless, it is perhaps still a more advanced method input for movement.

I am surprised at my development with Flash, in all. Whereas PHP has felt a bind, the syntax of ActionScript3 seems more straight forward if that's possible. Reverse a year and a bit and I would have been the complete opposite. Perhaps I can now add to my C.V: Other languages: French... German... AS3... 

@

Tuesday, 17 March 2009

Social networking site - one step forward, one step back



I've spent quite a few hours trying to implement various pieces of code to try and achieve the register page, or upload image page. Unfortunately, all to no luck. It's highly frustrating and wedges even more distance between me liking PHP. 4 hours of one massive circle doesn't bode well, each time.

To combat the feeling of incomptency, I noticed that the top header section of my site appeared a little bare. It currently stands as a black box. 


The Playstaton site uses scrolling banners that feature gamers, or gaming characters behind a semi opaque colouring. I admired this in my earlier analysis.



I decided to try and make a Flash banner that incorporated the colour highlight of my current design and then mix it in with legendary gaming characters.





The neon light blue was naturally the most in keeping but also a distinct enough colour to draw attention. The grey was too drab, and the blue a little too much of a different hue to appear to aid continuity with the design.



Notably, framing it within a curved corner border made it more fitting with the sort of on screen game menu graphics we are used to. I liked the motion tween movement of the characters that I inserted, it varied between moving across the screen, fading in, spinning out, growing and having tremors. It certainly wouldn't be amiss on all the other typical gaming sites.

Feeling that development wasn't over, I tried to add a little more visual interest, as the blue with a character did look a little uninspiring. 

Firstly, I added a graph paper grid behind. This added that sort of visual detail that I was seeking but wasn't stylish enough in my opinion. I exchanged it for raised dots from my sugar lump design. I love recycling designs.




Thinking that I'd made a worthy banner, after having tweaked with the colouring of the light blue - lighter, darker, more blue, more grey, I added it to the site.

It looked OK, but it didn't fit in with the sophisticated visual elsewhere. I've noticed more and more since completing the design that the grey gradients and black make for a real sophisticated feel. The addition of the neon light blue make for a contemporary twist. I am proud and pleased with this design, I think it embodies stylishness. However, the banner looked tacky. It was difficult to get the colourisation of the blue to match when using a reduced alpha channel, and so, regrettably, I decided not to even use it.

Talk about one step forward, one step back. This PHP is tainted!

So, moving forwards, I hope to fix some code together to get the site to function. As I said, I am pleased with the design, and if I document what I intended the site to do, I think the premise is good. Just a shame that the code and I are not currently friends.

@

Wednesday, 11 March 2009

Memo:

Flash game update - 'Amazing Memory?'

Since my last post, I've made and implemented quite a few new features. I have found that development is manageable by doing it in reasonable stages: level designs, alpha transformation to 0, countdown clock, reveal option. 

Firstly, one of the key objectives I set out beforehand was to have levels that increased in difficulty. Henceforth, I have created 7 designs which I think will cater for a decent amount of gameplay. I did discard some other designs as I felt them a little too repetitive. However, luckily I noticed that by altering the start and end positions will make for variety within the game, sometimes you'll be heading clockwise, sometimes anti-clockwise, sometimes north and so on.

I was cautious of making the first level in the least simple, so to ease the player in and encourage them to enjoy the game.



From then on, the gameplay becomes more difficult by adding in more complex routes, or little walls that will get in the way if not remember and eat up some time as the user tries to get around the obstacle.

 
  

Importantly, these are not how the designs will stay, visually. At the moment they provide a function. On completing all the additional code based tasks, I will return to the designs and update them. I am considering themes, such as an Aztec look, or Roman, along with Egyptian or Japanese. 

The unique selling point of the game relies upon the fact that the user must remember the route/maze as it disappears within a set period of time. I moved onto installing this event.

After having researched online, I learnt that it was possible to create fading tweens within the action script. However, it appeared long and quite laborious, so I decided to opt for a straight reduction in the alpha state - from 1, to 0. 


This is achieved only after a 'remember time' clock counts down. So I had to install this too.
Courtesy of David Downes' Flash examples, I was able to look up the code required for a countdown clock. 

I decided a suitable amount of time was 8 seconds, and so set the remembertimer variable to 8. However, I soon found on testing the movie that whilst the 'remember clock' counts down, the user is able to begin their route through the map. Hence, I had to remove the stage event that listens for key events whilst the remembertimer is active.

Here is the code that now is required to suitably allow the user to remember the maze, not play, but then be allowed to play when remembering is over: 

 
maze.alpha=1;

var remembertime=8;
// total time to countdown

var remembertimer:Timer = new Timer(1000, 0);
//(delay in milliseconds, number of repeats)

function remembertimerStart() {
   // start timer and starts timerHandler function when the act is completed
        remembertimer.addEventListener("timer", remembertimerHandler);
        remembertimer.start();
rememberclock.text=remembertime;
}

function remembertimerHandler(event:TimerEvent):void{
      remembertime=remembertime-1; // remove 1 second every 1000 milliseconds
      rememberclock.text=remembertime; 
 // when clock reaches 0 then it will stop the timer and the walls will become transparent
 // the keys will become usable
 // the clock will be reset ready for the next level
      if (remembertime==0) {  
 remembertimer.stop();
  rememberclock.text="";
 maze.alpha=0;
 stage.addEventListener(KeyboardEvent.KEY_DOWN,detecthit1);
 leveltimerStart();
 }
}

As can be seen, this activates the next timer, the leveltimer, which is the total time allowed to hunt round the maze. It was necessary to use rememberclock.text="" when it completes as I decided from a design point of view to have the clocks in the same position. Otherwise, I encountered the problem that the rememberclock read 0 and overlapped the levelclock which counts down.



Lastly, through playing the test versions myself, I became aware of how difficult the game can be when not paying full attention. This resulted in me allowing more generous time allowances per maze, upping it from 30, to 40, yet still this could prove difficult in the latter stages. I am wary of extreme difficulty, as it was sometime I found I disliked through my Flash game analysis.

To combat this, from an early stage I realised the option for a 'reveal' button would be helpful. I found the implementing of code easy enough... or so I thought. Harking back to my very first days using Flash, it was a case of setting up an event listener for when the reveal button is pushed:

revealBtn.addEventListener(MouseEvent.CLICK,revealtimerStart);
 

However, I received an error concerning the third countdown clock I have working in this game. It repeatedly sought a type of event. Having always been a little unclear on the purpose of myEventObject, or e:event, or event:MouseEvent  it was courtesy of a surgery session that allowed me to get it cleared up.

Now, the 'remember clock' counts down, the 'level clock' then is cued, and should the user need it, they can push reveal and the 'reveal clock' will be activated, which pauses the 'level clock' but then makes it continue after the alotted time. 



I am pleased so far with my progress. I have tried to steer away from quick fixes, and unlike my previous history with Flash, my coding is not too superfluous. The functions that set up and make the game run are all on the first frame. Thereafter, the following slides just require calling the rememberTimerStart () function, which begins the processes.



So far I have been fortunate in encountering little trouble in the development of my game. Nonetheless, advances can still be made. As I mentioned beforehand, the design needs enhancing, but then also, I would like to add in bonus points, which that in itself requires sorting out a points score system. I have tried a little but failed in my efforts. Lastly, if time feasible, I want to limit the amount of times reveal can be used. This will no doubt concern using a variable options setting up the amount. 

@