31/10/2018

Great day in Web today.

Class involved an introduction to AJAX, asynchronous javascript and XML. This is bult into web browsers today and allows us to send a request to the web server just to update a part of the page displayed by the browser.

We don’t have to reload the entire web page but can just update an area of the page.

My project is progressing well.

I have login, register working and the session variables are stored between pages.

And finaally,  have learnt how to animate an object across the page, my graphic appears at the bottom left and floats across to the top right.

Brilliant progress on Milestone 3. Now just a comment section to display and update ?AJAX and a progress bar.

 

29/10/2018

A great weekend coding my project, I have managed to fix a bug that myself and my tutor were struggling with.

My Inventory Unity Scene wouldn’t open correctly and threw an object null exception. Turned out I was referring to a class where I was instantiating the Inventory scene but was not setting any values to the instance.

The values were being set in a different class called PlayerManager. So I was able to refer the Inventory scene to the instance in Playermanager.

I have also worked on changing the values in the status bar, currently they are updated in a new class called StatusInformation which adds values to the fields in Unity and updates these values once per frame. This is close to working as planned.

I have also found a minor bug in log in scene, where the field does not display the new prompt text if a player enters an incorrect password.

I have also fixed my scenes table, some of the directions were pointing to the wrong scene.

Update, the project now updates the Experience display if I move to a new scene  and updates the Health display if the player dies.

Milestone 2 paperwork is also complete. I’m happy the Milestone is now complete 24 hours before the deadline.

26/10/2018

Excellent days work today.

In class we learnt to debug Javascript in our web browser using the developer tools attached to the browser.

We also looked into HTML 5 form validation. This is much simpler to implement than Javascript validation and all my competition entry form have some validation.

I also learned how to populate a drop-down list on the form, lots of copy and paste and a small list of schools appears, there are more than 2500 schools in New Zealand and I will add more as time allows. I had better add MGC for my daughters.

I have also added login functionality to the site and when logged in the Header page changes to display a name and eventually a progress bar.

Problem to solve, my SESSION variable disappears between pages, I’m off to DuckDuckGo.

24/10/2018

Working on my project Milestone 3.

Progress so far, I have managed to write some jquery script which causes some basic animation of my graphic, now to try and improve the animation.

The next steps are

  1. Form input validation with regular expressions
  2. Login
  3. Progress tracking

Input validation checks the form data to ensure it matches what our database expects and in HTML 5 use a pattern tag to enter a regular expression to make sure the input matches the pattern.

Our class today was an interesting look at validation using javascript functions, these functions use the same regular expressions as the pattern attribute in HTML 5.

An enjoyable exercise but for the milestone HTML 5 is acceptable and much simpler.

22/10/2018

A successful days work today on my project, my log in screen wasn’t working yesterday after a days frustrating coding.

Today I reverted back to a previous iteration and started again with the log in code.

Brilliant its working.

Next step is to get the story for each scene directly from the database when I go to a new scene.

18/10/2018

The project is going badly, I am struggling to combine the recent code examples into my working game and don’t know how to change the code examples to mimic my game.

This weekend is a three day Labour weekend so I will have to explore the code I have and try to adapt my functioning game to work with the new functionality required for this Milestone.

Class today was a look at delegates and how they function after asynchronous web requests. We were also introduced to JSON. JSON transfers data across a network.