Sunday, November 14, 2010

Life and Junk

Lately, as I'm sure a lot of you noticed, I haven't been in the mood to post or program or anything of the like. But, occasionally I get the urge to start doing stuff like programming again.

It's the main reason my game has taken so long. Even though I have been working on the game for about two years, I have only been actually working for about a total of two months.

On an unrelated note, have you ever just wanted to quit your job, take all your stuff, and just leave. Like to another part of the country. Well, I have. A lot actually. But usually it only lasts for about five seconds, then I come back to my senses and realize how stupid that would be.

Anyway, till next time, Have Fun.

Saturday, November 13, 2010

iPod touch

I got a new iPod touch 4g a few days ago and found a few apps that make blogging a lot more convenient so I will probably (hopefully) be posting more. And seeing how my last post was about a month ago, that's a good thing I think.

So, after years of bashing apple without ever having owned anything from them, I now have a reason to hate and, to a lesser extent, like them. First, on the iPod, for the most part it is awesome although the auto-correct feature is sometimes annoying. The only bad part so far is iTunes.

For example, if you download an app then decide your in a hurry and don't want to copy the app to your computer during the sync, iTunes decides you must not like it and uninstalls it from the iPod.

Hopefully, with any luck my mood won't change and I'll make a real post tonight after work.

Sunday, September 26, 2010

Im Still Alive

I've been playing Halo: Reach so much recently that I have't been able to post much here or work on my game. But, here is a status update for those that care:

I have the graphics and control systems loading properly and actually displaying something and hope to have some screen shots soon of what it can do.

I am currently working on the loading and saving of game worlds for both client and server.

That's all I got done last night, as that's the only time I've been able to work on it now that Halo has finally started getting old.

Saturday, September 18, 2010

Halo Reach

Today I'm going to take a break from programming to review "Halo: Reach".

  In campaign mode, Halo Reach is fast paced, engaging, and fun. The story line is one of the best every seen on a Halo game, and the best there ever will be, since Bungie is no longer going to make them. The characters feel real, and you form real emotional connections to them.

  In multiplayer, the fun gets even better. Bungie went all out in this iteration of the game. Every game type you could want, up to 16 player matches, and an impressive lineup of maps. And, now, matchmaking in both campaign (Bungie has temporarily locked it to prevent "spoilers") and firefight modes.

 Bungie has redesigned the graphics engine for Halo Reach from the ground up to allow them to not only have AA, but also to have huge maps that span miles of terrain. The cutscenes look spectacular in particular and are rendered in the game engine so in co-op you see the player that did the best in the last round as "number 6". But dont worry that your XBox cant handle the AA, because the engine will turn it off if it needs to, in order to maintain a good frame rate.

 The new control scheme takes a little getting used to if you didn't use "bumper jumper" in Halo3, but all the classic configurations are available if you don't like the new one. But, no matter which you pick, the controls never feel clunky and there is always a setting that will be comfortable to you.

Overall: 10 out of 10.

Sunday, September 12, 2010

Once again ... C/C++

Today I am going to talk about C++ instead of basic C. C++ adds several new ideas to C, the biggest of which is Object Oriented Programming. Objects are variables (called classes) that contain other variables and/or functions (called members). There are two ways to create an Object: class and struct

Typically, a class contains both variables and functions and a struct contains only variables, though in newer versions of C++ the two are treated the same. Lets create a struct:
struct Account
   int Number;
   float Balance;
Notice the semicolon " ; " after the ending bracket is required. To access the two variables I created, I would, first, create a variable of type "Account" then you can access the members of the class with the period operator " . ". Like this:
Account anAcct;
anAcct.Number = 123567;
anAcct.Balance = 0.0f; //"f" tells the compiler it is a float type. use "c" for char.

When you create a class, you can specify a "constructor" and a "destructor" that are automatically processed when the variable is created and destroyed respectively. Both are named the same as the class with no type defined though the destructor has a tilde " ~ " before its name. For instance:
class Account
   int Number;
   float Balance;
      Number = 0;
      Balance = 0.0f;

   void SetBal(float B)
      Balance = B;

To access the functions inside a class is the same as accessing a variable. I.E. I could call "anAcct.SetBal(1300.45f);". If you were to create a pointer to an "Account" object, you could access the members with the "arrow" operator " -> ". Anything referenced in such a way is treated as the real object and not a pointer. For Instance:
Account anAccount;
Account *pAcct;
pAcct = &AnAccount;
pAcct->Number = 9023;

Inside a class you can even tell the compiler how to handle operators (such as +, -, =, ==, etc.) using the operator keyword.

I've included two files to show the operator keyword in use:
DataTypes.h - the file that defines the classes.
DataTypes.cpp - the file that has the actual code.

And, finally for today, for an object to create a pointer to itself, it can use the keyword this.

C/C++ Part 3 - the sequeling

Last time I talked about Arrays and Loops. Next I need to mention conditional statements. The most common conditional is the if/else statement. The simplest way to show you how to use an if statement is to show you.

int x = 1;
  //Stuff goes here if true
} else {
  //Stuff goes here if false

Fairly strait forward. If the condition is true then the first block is processed. If it is not, and you have supplied an else, then the else is processed.

Up until now, as most have commented, C is similar to many newer languages like JavaScript. That is mostly due to the fact that they are based off of C. Now, I will talk about some features that separate it from the rest.

Pointers, for instance, are powerful and fairly easy to use. Pointers contain only the memory address of a variable. Creating a pointer is easy. Simply add an asterisk " * " in between the variable type, and its name. White space is not needed as the asterisk is a special character that cannot be part of a variable name. To create a pointer to an int:
int* Pntr1;
int *Pntr2;
int * Pntr3;

All three are correct. To "point" a pointer to a variable you simply need to use the ampersand " & " character before the name of the variable. Such as:
int Acct;
int* pAcct = &Acct;

And, finally, to treat the pointer as if it were the original variable, use the asterisk again before the pointer name. For instance:
int Acct;
int* pAcct = &Acct;
*pAcct = 5;

In this example Acct will be set to 5 and the pointer will remain unchanged. In C the most common use of pointers if for whats called a "C-Style String" which is simply a pointer of the type "char". Strings, of any type, are able to store lines of text as an array of chars terminated by a " \0 " (a special character with a value of 0).

To use strings, and other special types, you will next need to know about the #include statement. #include is a pre-processor directive meaning that it is processed during the compile process (when the compiler turns the code into a program). Pre-processor commands are all independent of the program you are making and, in fact, will not be part of the final product. There are only a few commands and the ones you will most need are:

#include - includes a file.
#define - creates a pre-processor variable used both in #if statements and in the C code
#if - operates mostly the same as a normal if statement
#ifdef - if a pre-processor variable is defined, then the following code will be compiled.
#ifndef - if a pre-processor variable is NOT defined, then the following code will be compiled.
#else - if the last #if command was false then this code is used instead.
#elif - same as an #else except it also includes its own condition.
#endif - ends an #if statement's reach.

The rest can be found here as well as some other interesting info. I am not going to go into detail about C include files but most of them can be found here.

Next time I am going to talk about C++ which adds many new things.

Saturday, September 11, 2010

C/C++ Continued

If you haven't read it yet, my first C tutorial should be read first by beginners. Last time, I talked about some basics of C. This time, I will talk about some more slightly advanced topics.

Lets say, you wanted to store one hundred account numbers in your program. To do this with normal means would mean typing out:
int Acct1, Acct2, Acct3, Acct4; //And so on ...
// Yes, you can define more than one variable at a time.
Needless to say, this would take a long time and you would have to reference them all separately. This is the reason we have arrays. An array simply is a simple way to store a lot of data within only one variable. To create an array holding 100 int variables, you would simply do this:
int Accounts[100];
Then to call a position in the array you would do this:
Accounts[0] = 2884756;
Arrays will always start at 0 and end one position less than the number you typed originally. In this case I typed 100 so the array indexes are from 0 to 99.

Since you can call a position on an array with a number, you can simply insert a variable holding a whole number inside of the brackets " [ ] ". (char, int, short, or long) This allows for much more versatility than having to specify each time which variable you wanted in your code. For instance, Lets say I wanted each number in the array to be set to 0. You could do the following:
int Accounts[100], x;
for(int x=0; x<100; ++x) // I'll talk about this in a minute.
    Accounts[x] = 0;
Or to make it simpler, when you create an array you can set a default value by using the curly brackets "{ } " around a value. Like this:
int Accounts[100] = {0};
You can also set all values by separating with a comma like this:
int Abc[3] = {1,2,3};

Now, in the last example I used a new command called for. for is one of the loop types available in C (as well as many other languages). for takes 3 parameters broken down into 3 steps: Initialization, Condition, and Increment.

Initialization is processed only once before the loop starts. (In the example, creating a integer variable "x".)
Condition is checked every time the end of the loop is reached. (In the example if x is less than 100.) If Condition is true, the loop repeats. If it is false then it doesn't (or breaks).
And, finally, Increment is processed every time the loop repeats. (In the example "++" causes the variable x to increase by 1. It is the same as typing "x=x+1")

Other types of loops are:
do while - 1 parameter; Condition. The do while loop always processes the first time regardless of the Condition statement. Use:
do {
   //Stuff goes here.

while - 1 parameter; Condition. Use:
while(x<100) {
   //Stuff goes here.

In all of these, the condition statement must return either true or false. This, in C as well as other languages is called a "Boolean" statement. To get this you need one of the Boolean operators:
== (equal)
!= (not equal to)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)

Wednesday, September 8, 2010


For today's topic I figured I could teach a little C/C++.

If you already know the language, then this will seem very boring. This is designed for those who know nothing about C/C++.

To begin, C++ is just an extension of C that adds functionality. So to learn C++ you need to learn C first. In both, everything is case-sensitive which means that something named "ABC" is not the same as "abc" or "AbC". All are unique names.

In C, each command is followed by a semi-colon " ; " signifying the end of the command, and extra spaces, tabs, and line breaks (collectively called "white space") are ignored. So, you could put multiple commands on the same line if you wanted.

I.E. the line:
is the same as:

But, for simplicity and to make it easier to debug (find and remove problems) you'll want each command on a separate line. You can also create segments of the code that the compiler (what turns the code into a program) will ignore by using a double backslash " // " (which will ignore everything after it on the same line) or by using backslash-star " /* " to start and star-backslash " */ " (which can span multiple lines) to end. These are called comments because they are commonly used for explaining what your code will do in a section.

So we could have written the above code like this:
a=3; //This part is ignored
b=1; /* and so
is this */


In C, code can be separated into sections called blocks by using the curly brackets " { " and " } " to open and close a block respectively, and each command that you create (function) will need to have a block of code directly following it's name. So, lets create a function shall we:

int Add(int a, int b) //int is a variable type I will talk about in a second
  return a+b; /* "return" causes the function to exit with the value that follows it (must be the same type the function is defined as) */

Now, I introduced several new things in this so lets review them. First, a function is created by first calling the type of variable the function will "return" followed by its name and a set of "parameters" inside of a set of parenthesis " ( ) ". When you call this function later you simply use the name you provided and fill in the parameters you want (I.E. you could call "Add(1,2);" and it would return "3".

Variables are the places where you store data. When you create a variable you define its type followed by it's name. In our example above we created two variables in the function declaration: int a and int b

int is a variable type that holds a single number (if your on a 64 bit system its range is from –2,147,483,648 to 2,147,483,647). int by default is signed meaning its first bit tells whether it is positive or negative but this reduces its maximum value by about half. If you wanted it to not contain this sign bit, you could call it as unsigned int.

The unsigned keyword changes a variable that is default "signed" to be unsigned. the signed keyword does the opposite.

Other data types are:
void - holds no data at all. (used later)
bool - holds a single bit. (true or false)
char - holds a unsigned number 1 byte long. (0 - 255)
short - holds a signed number half the size of int
long - holds a signed number twice the size of int
float - holds a signed floating decimal point number (1 of 2 only default types that can contain a decimal)
double - holds a signed floating decimal point number twice the size of float (also called double precision)

in C those are the basic types. You may have noticed that they all only contain numbers. "Well how do you store text?" you might ask. The char type can contain a single letter as well by placing single quotes around it. Such as 'a' would contain the number corresponding to "a" (or 61) in ASCII. To store more than one letter you need an "Array" which I'm not going to talk about this time. (next C lesson maybe)

That's enough basics for now. I'll continue with more later.

Until next time. Have fun.

Edit: I forgot the double var type.
Edit2: I forgot the bool and void types as well.

Monday, September 6, 2010

Prayer Vs Work

In my youth I was promised that as long as I was a good person, God would help me when I needed him. But, I always asked, "Where was God when my mother had lost both of her kidneys? Where was God when my father couldn't find any work? Where was God when my mother died?" and, yes, my family was religious and all prayed for help.

Now some of you christfags will say "It was God's plan" but that doesn't mean anything when you also say that if you pray, God will help you. If God just follows his plan, then what is the point of prayer. Because, if you pray, and you believe, God says he will help you. But, if it was part of God's plan, then he wont help even if you pray.

Therefor, even to christfags, prayer does nothing.

Or let me ask another question:
Can God create a rock so heavy not even he can lift it?

If you answered yes, then you just said God can't lift that rock, and is therefor not omnipotent.
If you answered no, then you just said God can't create that rock, and is therefor not omnipotent.

And, if God is not omnipotent then he is not God.

Saturday, September 4, 2010

Another Day ...

and nothing new to report on so how about random wallpapers.

Friday, September 3, 2010

Duke Nukem Forever

Wow! Duke Nukem Forever, for those not in the know, has been long, long, long, long awaited ever since Duke Nukem 3D that came out on the N64. And now, thanks to Gearbox (the makers of Borderlands), there is a playable demo at PAX and it will be coming out in 2011.

Wednesday, September 1, 2010

Oh Noes It's Teh Furriez

Today I figured I would link some of my favorite places to visit (and usually do so once a day)

(WARNING: some of these are not work safe)
Do Not Click any Red links unless you are 18 or over.

First we have Web Comics:
GUComics - started as an Everquest only comic, he now makes fun of all games and gaming news
WTFComics - a long standing comic following the adventures of a few characters in Everquest.
Housepets! - funny furry comic following a few anthropomorphic house pets.
Original Life - Jay Naylor's newest comic. (not everything on site is work safe)
House of LSD - (Not Work Safe) 3 girls start up a porn company.

I also have a few other things I regularly view:
Knotcast - Furry relationship podcast (Not Work Safe)
Fur Affinity - (mostly work safe until you have an account and tell it to show adult content) a place for furs to share art mostly.

Tuesday, August 31, 2010

Metroid: Other M

Now that the game is finally out I wanted to offer my review of the game.

To start with, on the positive side:
  • The graphics were some of the best on the Wii with only a few glitches that I have found.
  • Game-play was fun and fast paced which is a nice change from the slower prime series
  • Cut scenes were excellent and merged with the game nicely.
  • Controls, while sometimes a little clunky, worked pretty well most of the time.
And on the negative side:
  • The game was too short for me. only took me 3 days to beat it while playing a few hours a day. (total about 4hrs)
  • Storyline, while good, made Samas seem like a wimp
  • A few (around 4-5) times after some cut scenes you were forced to look around for one tiny item on the screen with no indication of what it might be. The bad part of this is that you have to hover your cursor over the item your looking for for a few seconds before the game gives you a hint that your looking at the right item.
overall I give it a 4/5

edit: forgot one negative and one positive about the game heh


Today I got my path finding functions finished. It can find a path through any 2D obstacle course, and rather quickly too. usualy takes about 1ms.

<---- Shows it takes 4 seconds to process 2000 times resulting in about 1-2ms per run.

Monday, August 30, 2010

Today's NOT Cool Award ....

... goes to Microsoft.

Those greedy bastards don't seem to think they have enough money. For those of you who haven't heard; Microsoft has said they will increase the price of X-Box live from the previous $7 a month to $10 a month. Now, while most of you will say "What's the big deal? It's only $3." With their current 25 million subscriptions they boast, every $0.04 earns them $1,000,000. so at $7.99 they get $199,750,000 per month. However, the reason for the increase is what has me upset, not the price.

They say they are providing more services now than they did when they increased it to $7. So far, the only services they provide for "free" when you have a membership, are either free on every other system or free to anyone with a web browser. They have "Last FM", "Twitter", "Face book", demos of games, videos on demand (that you usually have to pay for), and now they are adding ESPN (which I won't even look at).

This sounds like a big list except that on the PS3 for free (without a monthly fee) you get a web browser that allows you to visit everything from twitter to you-tube, free game demos, themes, etc. The only thing that the PS3 doesn't have that the X-Box will, is ESPN. And to add insult to injury, on the PS3 you can pay for a plus membership (about the same as X-Box live) and you get free games (whole games), discounts on downloadable items (some drop from $50 to $5), early access to demos and beta invites, and, if you get the year subscription for $49.99, you get 3 bonus months.

To me, the PS3 offers much more bang for your buck.

DHTML for dummies

Just got off work and figured I would add a post to my blog.

Topic for today: DHTML 101

Most people know HTML so today I'll talk about how to code some basic DHTML (Dynamic HTML). The concept is simple to grasp; Any HTML that changes itself to suit the user is DHTML.

First you must give each object that is going to change in the HTML a name (this makes it easy to find later). To do this simply add:
name="bob" id="bob"
to any HTML element. (change bob to whatever you want as long as you remember it) some browsers will only support either id or name so I add both which doesn't hurt.

Next you usually want an easy way find it, which varies from browser to browser. To make this easier to made a simple function that gets it for any browser.
function getByID(id)
var ret;
if (document.getElementById)
ret = document.getElementById(id);
else if (document.all)
ret = document.all[id];
else if (document.layers)
ret = document.layers[id];
return ret;
Now that we have that function you can get the element 'bob' by calling getById('bob');

The most common form of DHTML is a pop up menu when you mouse over a link.
We do this using the <DIV> tag. you can do a lot of things with the div tag but this time we will focus on their ability to be hidden.
simply make a div tag like this:
<DIV id="bob" style="visibility:hidden; position:absolute; left:100px; top:150px;">
As you may have guessed this box will be positioned 100 pixels to the left and 150 pixels down from the top left of the page and you can add extra settings for color, style, etc.

Now the easy part: showing and hiding the div tag. To do this simply call"visible" (or "hidden") to show/hide the tag. So all we need to do is make a link that has
inside the <A> tag then add
to the div tag.

Since I can't show you everything, you can have the fun of figuring out how to add a timer to auto-hide the div if you don't move your mouse into it.

Saturday, August 28, 2010

History 101

I figured today I could share some of my back story. (picture unrelated)

I grew up in Arkansas of all places. Most people try to pin being gay on not having enough paternal influence, but my father was always there for me. He wasn't able to work, as he had to take care of my mother who had lost both kidneys before she was 16, so we lived off of government money.

By the age of 5 he had taught me how to read, write, do basic math, and had started teaching me to program. It was only Q-Basic (on a Commodore 64), but It was still pretty fun to get the computer to do what I wanted. I quickly branched out and now know quite a few languages. C, C++ (6.0 and .Net standards), Visual Basic, JavaScript, HTML/DHTML/XML, CSS, etc.

Having grown up in Arkansas, I didn't have access to any good computer courses through high school so I had to teach myself as even my dad only knew the tiniest bit of C. Through FBLA in high school I had won a few awards (1st in state for visual basic programming, and 5th in nationals) but mostly my talents went unnoticed.

When I finally moved out and went to college, things got more interesting. I worked at the University's Geographic Information Systems division as a programmer (really a webmaster mostly but I did work on stuff other than the websites). During my stay at college I had stumbled upon this group of social outcasts much like myself and found the community to be quite friendly. Only later did I find out that most of the internet hates furries.

That's enough history for now (which was the only class I've ever failed. lol) so until next time. Have fun.


Hi, I'm a furry. If you didn't know that by now, I feel sorry for you. :P

I'm new to this whole 'Blogging' thing but figured I would give it a shot.
I am a programmer so a lot of my posts will be about the program I am currently working on, I'm also gay and an atheist so some of my posts will be about those as well but nothing too risque.

I am currently working on the client side of a MMO I have been developing for about 5 months. lol. I just wanted to see if I could do it so I started making it work. server side is about half done just starting on the client now so nothing to show you really.

That's it for now so have fun and I will post again tomorrow