Welcome!

Hey, I'm Skylar, a kid aspiring to become a competent programmer. This blog is here to detail my dabbles in development.

My dream is to one day become a professional programmer and do some game development in my spare time.

Thanks for visiting my blog, and I hope you'll come back!

Pages

Been a While Since I've Had a Post...

Well, thought I'd just write up a quick post, since I haven't had a post in a while. So Charge is still in no working condition, sadly, but I am finding more time to work on it. I've made a software engineering club at school, so I'm helping out a lot of new programmers work with C++, although we might be 'converting' to C#, since their ambitions seem to be within XBox games.

So I have been dabbling around in C#, and I have to admit, it's a great language. So far I've only made simple console apps, but I've made some pretty cool stuff. I created a simple local server/client chat app... Can't really be used to chat with others, just with the computer. But the cool thing about it, is that it converts the strings you type in, into packets (byte arrays) and then encrypts the packet, and decrypts it when it gets to the other side. So it's a little interesting =p.

So let's get back to the actual game development going on. I'm getting cleaner code =D. I updated the SDL_Template I made some time ago, so now it has a GameHandler class which holds the game's statemachine. I've also made a base state class, and have made all states singletons. The State Machine holds 3 states: Current, Previous, and Global. This way I can revert back to the previous state at any time. It will also help with in-game menus, so that I can make the actual game the previous state, and the menu as the current state. I also created an ImageHandler class, which has all my methods for loading/applying images, and also counts how many images are loaded and puts it into a Debug file.

Going on from the Debug file, I have finally set up two different binaries. I have Debug and Release, but now they aren't exactly the same. I have a function called Debug, which takes in a char array, and outputs it to a Debug.txt file. But it's only created if the binary is in Debug mode. This way I can make Debug specific code, so when there's problems, I won't have to put in code to take out later =D.

So as of now, Charge has a nasty segfault, and I think I've found the problem, but worst comes to worst and I will have another recode, but this recode shouldn't take longer than 5 days. The only thing Charge has, at the moment, that my SDL_Template does not have, is: Telegram struct, Message Dispatcher, Entity Manager, Base Game Entity, Derived Classes from Base Game Entity (Game Entity, NPC, PlayerControlled), and the Ship class. So by the end of this recode, Charge should be up and running, and I should be able to take off running with it. The way I've redesigned it, makes it incredibly easy and flexible to program AI, thanks to Programming AI by Example anyways. A lot of the new stuff I'm using is my own revised version of some stuff from that book. I don't find much time to read, so haven't read much from Code Complete, but I'm really stoked to read both that, and finish up Programming Game AI by Example.

Well that was my post to prove I'm not dead, so hopefully I'll make another post later =D.