Thursday, April 19, 2012

Update on Missiles

I started to write the missile portion and came to the realization that I need to write a load up script.  Currently, the load process for all variables are located in the flight control class.  It was just easy to do it that way and put off the writing the load sequence.  It's limited in that it's catered towards the player's viper. 

I was using old models from the previous prototype; shooting them was fun.  Since there are significant differences between the new prototype and old prototype, the locking on sequence will not work with the old models.  I need to write two dummy load up scripts: one for the player's viper and the other for a cylon raider.  Once that is complete, I can actually create and test the missile portion of the fire control class. 

I did manage to get a raycast to work.  I can tell if the mouse pointer "hits" an object.  There was an issue with the "main camera"; however, someone on Unity Answers suggested using a publicly declared camera as a solution.  It worked out great. 

Also, I can identify the object being hit by the mouse.  That's just to let you know where I am in the process.  Faction data will be stored in the Player Data class which needs a proper load script at this point.  This prototype will feature a Resource Manager class that will handle the creation and loading of data for all objects.  I want have complete game objects (like a fully functional viper, cylon raider and at least one capital ship) before creating this script.

3 comments:

  1. I haven't seen the code so I can't really say what code needs to be cleaned up. However, I would say that you're on the right track with a resource management script, and maybe if appropriate, a preload script for when your game evolves and textures gain higher resolutions. Maybe you already have one?
    You've got a lot of work to do, but you'er chugging right along. When you have a stable alpha/beta let me know and I'll test it out.

    ReplyDelete
    Replies
    1. I'll be adding some code later. I'm relatively new to blogging. I'm still learning about syntax highlighters...

      I'm still aways from having a good alpha...

      Delete
  2. Here's some levity while we wait. I created a blog just to have something to do here on the POOW.

    ReplyDelete