This week we have been looking into the use of classes. I decided to see if this would be of use within the game I was developing but after experimenting with codes it became clear using classes would be too complex and it would be easier to just have the action script within the timeline as the class was not recognising the stage. I would also need multiple objects for one class as I was hoping to achieve a ‘correct’ class and a ‘wrong’ class but within AS3 again this is a complex procedure and not worth it in the long run. I am however going to use a class for the ‘Swiper’ object, as it will perform the same task each time.
I have also decided to change the timer from being an animation of a clock clicking to a simple countdown, as within the design there was not room for the clock. However using a number countdown I can incorporate it easily into the design within a cloud.
I also realised I needed to add a variable into the coding so that if all the food was collected before the time ran out the player would move on to the next level. This was achieved with a true/false statement so if the objects had been hit (true) and it was both that was listed the player would progress.
Saturday, 14 March 2009
Game design #6
I have completed an introduction to the game and a homepage where the player has a choice to play, read instructions or quit. I know have a background design that I have applied to each of the levels and a plate with the food to be collected on it. Information pages were also created to go in between the levels once completed telling the player what food group the food was from keeping in the educational theme of the game. The next step will be to create the tweens for the falling food for each of the levels.
Labels:
game design,
interactive design,
online enviroments
Game design #5
I created a really simplistic version of the game with tweens to work out the AS3 that I would need, it was a simple key function to make Dora move to collect the food and then an if statement to see if the food had hit Dora or not. However it came apparent that when Dora was still the IF statement was not occurring. To stop this from happening I added a timer to check if there had been a hit every 10 seconds so it wouldn’t just apply when the Dora was in movement but static as well.
After completing this simple version I added a variable for the score and included it within the IF statements for the food so if the correct food was hit then 10 points were added and if an incorrect food was hit the player looses 5 points from there current score.
After completing this simple version I added a variable for the score and included it within the IF statements for the food so if the correct food was hit then 10 points were added and if an incorrect food was hit the player looses 5 points from there current score.
Labels:
game design,
interactive design,
online enviroments
Social network #5
I have created a night’s page that has all the nights listed and a link next to each for the member to join them. This however is going to have to be included within the site simply as a design of the page as with the time we have left I will not be able to achieve this as the coding would be complex.
I have also created a larger form from the simple comment form I have already achieved within the night profile pages for the homepage as a registration form. However at the moment I only know how to input text fields and a registration form has to include other data such as dates for example. Therefore it will either have to be submitted partially working or similar to the night join page be included simply for design aspects.
I have also created a larger form from the simple comment form I have already achieved within the night profile pages for the homepage as a registration form. However at the moment I only know how to input text fields and a registration form has to include other data such as dates for example. Therefore it will either have to be submitted partially working or similar to the night join page be included simply for design aspects.
Social network #4
I have now achieved a working login and changed the coding of the SQL statement so the ‘WHERE’ is related to the login id of the user. Initially I had the login on the profile page with a link from the home page and had the PHP underneath the login to show the profile however when trying to add sessions this caused problems and the user wasn’t being recognised when returning from visiting other pages within the site.
I therefore decided to have the login on the homepage and then a menu link to the profile to over come this problem as others had achieved successful sessions by doing it this way. Once I had then added the session coding to all the pages when the member moved within the site their session was remembered. The only problem I now have is that I wanted the ‘log out’ button to both log out and return to the homepage, unsure on how to achieve this I overcome this problem by having the logout button within the profile page return to the homepage where you then have to click the ‘log out’ button to fully log out of the session.
I therefore decided to have the login on the homepage and then a menu link to the profile to over come this problem as others had achieved successful sessions by doing it this way. Once I had then added the session coding to all the pages when the member moved within the site their session was remembered. The only problem I now have is that I wanted the ‘log out’ button to both log out and return to the homepage, unsure on how to achieve this I overcome this problem by having the logout button within the profile page return to the homepage where you then have to click the ‘log out’ button to fully log out of the session.
Social network #3
I then completed the same as I had for the profile page discussed before but instead sucked the data on the night from the database. I will create a page for each of the nights individually and create links from the member profile to them so the member can only view the information on the nights they are part of. At the bottom of the page I have a simple form that inputs comments into to the database and then displays them next to the form on the page once submitted. At present I am having a few issues with the form as it seems to enter a blank input every time the page refreshes however I am hoping to sort this within a surgery session with Simon.
Social network #2
The first pages I created where the profile pages for the members as this involved sucking data out of the database, which I could now achieve successfully. Once I had the data how I wanted in PHP I could then apply CSS to it and fit in into the feel of the design. The profile page coding will need to be altered when I look into logins so that the data shown is dependent on the log in id but to test I simply have the information showing from one member. I also want to have a section in the lower half titled my nights with picture links to the night page according to which night groups the member has joined. However at the moment I am unable to achieve this as my linking table does not seem to be working correctly but I am hoping to resolve this after a surgery session.
Labels:
css,
online enviroments,
php,
social network,
web applications,
web design
Subscribe to:
Posts (Atom)