Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Friday, July 1, 2011

Bug fix and AI re-design

Sorry its been about a week since my last post.  Here is a video documenting the fix for a bug that I accidentally introduced to the game.  Basically by adding a ceiling that is a collider, the game could no longer find objects that you click on to move them.  I fixed it by moving the ceiling in edit mode.  I also moved some code around to segregate AI functionality a bit more.

Sunday, June 19, 2011

I changed my github setup

I realized that within a ShiVa project there is a scripts folder that has the raw Lua files.  I setup that folder as my github folder and so now I am syncing directly from there.  As a result, my github files are now divided up by functions/event handlers.  Just an FYI in case you get confused when you go there.

Thursday, June 16, 2011

Code cleanup and github repository video

 
 We already talked about this stuff on the blog, but I also put up a YouTube video demonstrating some of the code changes I made and what the github repo looks like.

Code repository on github

I uploaded my AI script code files to github so you can view the complete code instead of relying only on the videos.  I'm doing this because sometimes it is easier to look around in the code when you are learning.  I consolidated all of the functions and event handlers for an AI into one file, but I couldn't do that for the AI variables--sorry.  So if you are following along in the code and see a reference preceded with "this" and you can't figure out where it is coming from, that's why.  I committed the code but it hasn't shown up on github so hopefully I am doing things right.

The great code cleanup!

Okay, so in my videos I keep saying that I will clean up the code and add some documentation.  As I have been working on some of the more complex features of the game, I realized that I needed to do the clean up now.  Last night I got through most of the code and got things straightened out and as a result I have also decided to publish the code so that people can take a look at it directly rather than just through video.  I'm working out the details, but the source should be up soon!