Monday, June 30, 2014

Announcing CleaveFramework v0.1.1 (Open-Source Unity3D C# Application Framework)

I'm officially announcing the release of CleaveFramework v0.1.1  It's been in development for a little less than 3 weeks now and it is usable now in it's current state.

Public github repository here: CleaveFramework on Github.

There is some extensive documentation regarding the framework and it's specific features on the Github but here is the overview straight from the docs:

Why you use a framework
 This framework is meant to facilitate the implementation of a better structure for Unity3D game project code. It is by no means perfect, and I welcome any and all feedback and potential contributions in regards to improving its functionality and easing its usability. Thanks!
If you've ever finished, or worse started and not finished, a project using the Unity3D engine you realize the importance of well structuring your code. This framework was created to assist in maintaining that structure. The framework does not limit or shoehorn you into developing into a particular pattern however I personally believe it is most useful when utilizing a MVC/DI object pattern. You are however free from being constrained to one specific architecture pattern, be it DI, Service Location, or whatever magical Voodoo you personally have created.

Feature overview

The core functionality of the framework is two-fold based around an executable command delegate callback system and a SceneObjectData container for objects, automated system updating, and global data. Any amount of unique Objects are able to subscribe to commands and then implement callbacks upon execution of the command. Commands can be utilized to pass data to another object, as event messaging, or a virtual Execute() method can be implemented to directly manipulate the data within the command object itself before or after propagating to the delegates. Commands are pushed into the Framework via static methods which can perform commands on that frame, or after a given delay of frames or seconds. Commands can push other Commands during their execution giving the ability to create sequences of events.

I'm interested in some test users, feature requests, bug reports, potential contributors (of which we have received one so far), or any feedback in general regarding its usability and code quality.

Saturday, June 21, 2014

Totally on schedule monthly update

Pretty short update here.  I spent the past couple weeks porting what I had written in C++ to C# and the Unity engine.  Once I did that and got a lot of it working I decided to take some time and write a more generic framework to drive the application within the engine.  I've got a decent base of that now to work with and I've begun the job of refactoring the code I had written in the last few weeks to work with the new framework.  At this point I should be capable of using this base to drive the progress to a reasonably playable state, as long as things in my life do not change drastically in the next coming weeks.  I also wanted to share that I've made the code for the game itself available online for free as I develop it.  You're able to follow the code progress here: https://github.com/cleavetv/Architect if that's something you're interested in.  If you're able to get a copy of Unity (and assets) you can even build it yourself.  If anyone is interested in helping with compatibility version testing when I have builds ready let me know, I can provide compiled binaries for PC, Linux, or Mac.

Thursday, May 15, 2014

Messing with Unity

I took a break from working on the construction game to take a look at the Unity game engine.  I've been working on a control scheme for a 3D platformer game for the last couple of days.  Starting with some random guys physics package which had decent math but wasn't really set up for making an actual game.  I started by ripping up the movement into a state machine which now supports motor and grab functions.  You can operate the arms independently of the feet and utilize it to pick up, push, pull, and move objects around in the world.  Movement and jumping states were constructed so that we can add functionality for things like wall jumping more easily.  The state machines are run by a Controller object and then I wrapped the controller scheme into a Character system that can swap out the controllers at runtime based on other inputs.  This lets you change control schemes on any character depending on collision or game state.  So far it works fairly well, my first game test was using the system to swap control schemes on the player for moving in and out of zones tagged for water.  The results are pretty nice, I am able to craft an entirely separate group of states which control water movement and then immediately swap out of them when you exit the water by any means.
Cooling off in the water.

Friday, April 18, 2014

in-game Toolbars

The main bar (top) in horizontal orientation and
a nested bar below it also in horizontal displaying
file options: new, save, load, exit, and quit, respectively.
Hey guys.  I've got a short update today.  I spent some time implementing a toolbar interface for the in-game HUD.  Toolbars are able to be oriented either horizontally or vertically.  For now toolbars can only contain buttons.  Buttons can be text, image, or both and they can also have a tooltip attached to them.  The toolbars function similar to a menuing system, a button can either be the parent to another toolbar or it can have a function bound to it directly.  This lets us do nested toolbars within toolbars within toolbars, a bit redundant but I'm hopeful it will let us do some neat things later on.

I also spent a considerable amount of time refactoring the game's build tools system into a much cleaner state.  I'm now able to create new or modify existing tools much easier which should speed up their development.  In the past this was a fairly tedious process because the tooling was coupled very tightly with the game class and state manager.  In it's place I've developed a tool template class with appropriate input callbacks which is much easier to use, and in addition also executes much faster and is easier to debug.

Wednesday, April 16, 2014

I'm bad at this blogging thing

Wow I went a week between blog posts, I'm sorry about that.  Hopefully that will not happen again but, no promises :).  I can promise that I've still been hard at work here on the project.  It's taking a little bit more shape but more importantly so is the codebase.  In the last week I've incorporated a lot of new capability into the code,

Tuesday, April 8, 2014

Path finding

Hey guys, I'm here with another blog update.  Today I want to show you the progress I've made on the implementation of pathfinding algorithms that the simulated people in the game world will utilize.

If you're familiar with building and sim games you know that a huge part of the gameplay revolves around creating the world for your sims to live inside of.  Obviously a large part of living in a world is knowing how to navigate inside of it.  Pathfinding is the mathematical solution to having our sims be able to navigate through the world you build.  Without it they would run into walls, nobody would ever figure out how to leave their rooms, let alone graduate and this would make the game pretty unfun.