A most of the times when I talk about my pet game engine I mention really vague stuff like I'm working on the entity system, or collision system or whatever. This works great during conversations as a quick way to say "I'm actually doing something that doesn't involve scratching my butt", however if you're reading this blog then you're either minimally interested in what actually my engine is about or you have too much spare time and are wasting it reading random blogs from the LudumDare feed(in which case you've probably already read more interesting blogs like Hamumu's or Bleck's and are just too lazy to do anything else than read the less interesting ones) and being this the case you'll probably won't mind if I describe how my pet engine works. If I'm lucky it won't derail as my last post did (yeah, originally I was just going to talk about my engine a bit, but then I got distracted and ended up doing a rant/tutorial about the ever so useful macros).
Tuesday, January 26, 2010
What actually is Litterbox?
A most of the times when I talk about my pet game engine I mention really vague stuff like I'm working on the entity system, or collision system or whatever. This works great during conversations as a quick way to say "I'm actually doing something that doesn't involve scratching my butt", however if you're reading this blog then you're either minimally interested in what actually my engine is about or you have too much spare time and are wasting it reading random blogs from the LudumDare feed(in which case you've probably already read more interesting blogs like Hamumu's or Bleck's and are just too lazy to do anything else than read the less interesting ones) and being this the case you'll probably won't mind if I describe how my pet engine works. If I'm lucky it won't derail as my last post did (yeah, originally I was just going to talk about my engine a bit, but then I got distracted and ended up doing a rant/tutorial about the ever so useful macros).
Sunday, January 24, 2010
My Little Litterbox and Advanced C++ Macro Tutorial
Right...
I decided to let the "El Poho" name belong to my past, since I already have a name for my one manned so called studio which is "Catbox Beta" I actually came up with a more suiting name for the engine:
Litterbox
The editor will be probably named after another cat related thing (catnip? nah... it sounds more like scripting language to me).
Litterbox inherited a lot from El Poho but it allows me to go a step farther. With every iteration of my engine I learn new tricks, I find new traps I must avoid and learn to plan more and more ahead. The results of 20 or so iterations of my engine, since the day it could barely run a pong game are quite notable. Everything is so beautifully modular I can add and remove components without much hassle. The two months I played with the Valve's Source engine didn't go to waste either! I learned the power and infinite usefulness of macros, this knowledge makes me cringe every time I hear those naysayers say that Macros are bad, and that they only replace consts and inline functions! WRONG! Macros are a nifty little way of putting text in places making creation of new classes a cinch! Get ready for some learning because here comes a class about advanced use of C Macros!
I decided to let the "El Poho" name belong to my past, since I already have a name for my one manned so called studio which is "Catbox Beta" I actually came up with a more suiting name for the engine:
Litterbox
The editor will be probably named after another cat related thing (catnip? nah... it sounds more like scripting language to me).
Litterbox inherited a lot from El Poho but it allows me to go a step farther. With every iteration of my engine I learn new tricks, I find new traps I must avoid and learn to plan more and more ahead. The results of 20 or so iterations of my engine, since the day it could barely run a pong game are quite notable. Everything is so beautifully modular I can add and remove components without much hassle. The two months I played with the Valve's Source engine didn't go to waste either! I learned the power and infinite usefulness of macros, this knowledge makes me cringe every time I hear those naysayers say that Macros are bad, and that they only replace consts and inline functions! WRONG! Macros are a nifty little way of putting text in places making creation of new classes a cinch! Get ready for some learning because here comes a class about advanced use of C Macros!
Sunday, December 13, 2009
destroyed
Hm...
I participated in the LudumDare contest this weekend. I knew I couldn't make an entire game but I hoped I could at least make a little part of it. boy was I wrong... Everything went to hell because I rushed things, entity management system was horrible, everything was full of hacks that didn't surpass the pressure of hard work, the engine was a disaster. But I was okay with that, I knew at the start I probably couldn't make it and I was cool. When I finally decided to drop off I was actually a bit happy as I learned a lot of important lessons, made a lot of mistakes and all in all this will help me in the future. However one thing happened I didn't account for. My game was going to be called "The world is beautiful out there...", I wanted to have a small guy jump through levels at a half fast pace, when I gave up I made a post on LudumDare blog saying that I can't finish the game. In the last few words I wrote That next Time I will finish the game and that I will win. I felt this was a pretty cool thing to say and decided to add an image to make it sound even cooler. In the same posy I put an image I composed in photoshop from the assets I've drawn as a preview level. Just a house on a hill going to water.
I showed the blog post to a friend and he noticed noticed that it could go great if it was the last the cool image was the continuation from that level. An incredibly short game, just 3 screens, and all you do is walk from the house to the cliff. It could be done by ANYONE in just those 5 hours left until the end of LD. Anyone except me. I grabbed my code and tried to forcibly put it together. My engine was so bad, so utterly putrid I couldn't add 3 simple classes to it and make 1 level. It would be a great "Well, I didn't manage to do my actual game but this makes me cool" farawell game.
God I feel bad right now. I failed so hard it hurts.
~Spliter
I participated in the LudumDare contest this weekend. I knew I couldn't make an entire game but I hoped I could at least make a little part of it. boy was I wrong... Everything went to hell because I rushed things, entity management system was horrible, everything was full of hacks that didn't surpass the pressure of hard work, the engine was a disaster. But I was okay with that, I knew at the start I probably couldn't make it and I was cool. When I finally decided to drop off I was actually a bit happy as I learned a lot of important lessons, made a lot of mistakes and all in all this will help me in the future. However one thing happened I didn't account for. My game was going to be called "The world is beautiful out there...", I wanted to have a small guy jump through levels at a half fast pace, when I gave up I made a post on LudumDare blog saying that I can't finish the game. In the last few words I wrote That next Time I will finish the game and that I will win. I felt this was a pretty cool thing to say and decided to add an image to make it sound even cooler. In the same posy I put an image I composed in photoshop from the assets I've drawn as a preview level. Just a house on a hill going to water.
I showed the blog post to a friend and he noticed noticed that it could go great if it was the last the cool image was the continuation from that level. An incredibly short game, just 3 screens, and all you do is walk from the house to the cliff. It could be done by ANYONE in just those 5 hours left until the end of LD. Anyone except me. I grabbed my code and tried to forcibly put it together. My engine was so bad, so utterly putrid I couldn't add 3 simple classes to it and make 1 level. It would be a great "Well, I didn't manage to do my actual game but this makes me cool" farawell game.
God I feel bad right now. I failed so hard it hurts.
~Spliter
Sunday, December 6, 2009
El Poho going good
btw El Poho is the name of my game engine until I find a better name.
Ok, I finally added polygon collisions into it. It's a smaller version than the previous one but it's very easy to add features in it. For now the main features of it are:
-great scalability (should be easier to make a game in it now)
-Polygon-based collision system
-compact (most unnecessary features like GUI and a great number of other stuff was not implemented)
and as a bonus:
-simple yet powerful particle engine!
However I'm still planning on adding a simple GUI system for things like buttons and text at the very least, I should probably add an event system as well.
Another feature I'm working on is quite an important one: Scheduling.
So far it runs at 30 frames per second and it just waits some time between every frame to mantain that, but I need to add a feature that skips the drawing step completely if it runs too slow. So far every object in the game has a few functions like draw() and think(). With the scheduler I'll be able to set every object to think at diferent time periods, like every 1 second or every 1/20 seconds, which will make it a lot faster when I'll have to add AI support to it. With scheduling I can have AI's in Idle states that think every 5 seconds or so, or think every 1/20th second if on full alert, this'll be an enormous performance boost.
For testing the engine out I'm making a small game where you control a dust cloud. Not much to do for now as I'm having some trouble in porting things to the new collision system (what worked back then doesn't work now).
Ok, that's all for now.
maybe I'll update thig blog later this week.
-Spliter
Ok, I finally added polygon collisions into it. It's a smaller version than the previous one but it's very easy to add features in it. For now the main features of it are:
-great scalability (should be easier to make a game in it now)
-Polygon-based collision system
-compact (most unnecessary features like GUI and a great number of other stuff was not implemented)
and as a bonus:
-simple yet powerful particle engine!
However I'm still planning on adding a simple GUI system for things like buttons and text at the very least, I should probably add an event system as well.
Another feature I'm working on is quite an important one: Scheduling.
So far it runs at 30 frames per second and it just waits some time between every frame to mantain that, but I need to add a feature that skips the drawing step completely if it runs too slow. So far every object in the game has a few functions like draw() and think(). With the scheduler I'll be able to set every object to think at diferent time periods, like every 1 second or every 1/20 seconds, which will make it a lot faster when I'll have to add AI support to it. With scheduling I can have AI's in Idle states that think every 5 seconds or so, or think every 1/20th second if on full alert, this'll be an enormous performance boost.
For testing the engine out I'm making a small game where you control a dust cloud. Not much to do for now as I'm having some trouble in porting things to the new collision system (what worked back then doesn't work now).
Ok, that's all for now.
maybe I'll update thig blog later this week.
-Spliter
Sunday, September 20, 2009
I love my life
It's so full of hope and joy getting crushed again and again and again....
Now everything is working, I bought the cable, I have a net connection... But I can't think of a single thing to program!! I don't want to make clones, they bore me with their lack of originality, I want to make a small game that's original and lots of fun. Or at least original! But I can't.
Whenever I sit in front of my pc with intent to make something I can't think of anything.
On top of that I discovered things aren't quite as easy as I thought at first. For once, I pay 120 Euros for the rent (which I already knew), then 170 euros for my uni (which I already new) and then 25 euros for water electricity etc... Or so I thought, I actually have to pay at least 40 euros for electricity and water and internet and gas and TV (which I don't even use) and it all accumulates into a pretty 330 Euros a month. If I get the same scholarship as last year I'll be getting 350 euros a month. which leaves 20 euros to live from per month (food,and other daily needs). So I have to look for a job. Actually I've already been on a job hunt yesterday and brought a few pamphlets with me, but it turns out that I have to have a documents which allows me to work here in portugal, funnily enough this document went missing when I sent it to DGES so I could go to university!!
Now I have to get a new one made and it can take quite some time. On tuesday I'm going to SE to ask for new one (luckily last year I needed the same document so I already have all the paperwork done to get the new one).
And if that wasn't enough a friend of my dad has my wacom in her house and she's outside the country now.
Things are going really sweet.
Spliter
Now everything is working, I bought the cable, I have a net connection... But I can't think of a single thing to program!! I don't want to make clones, they bore me with their lack of originality, I want to make a small game that's original and lots of fun. Or at least original! But I can't.
Whenever I sit in front of my pc with intent to make something I can't think of anything.
On top of that I discovered things aren't quite as easy as I thought at first. For once, I pay 120 Euros for the rent (which I already knew), then 170 euros for my uni (which I already new) and then 25 euros for water electricity etc... Or so I thought, I actually have to pay at least 40 euros for electricity and water and internet and gas and TV (which I don't even use) and it all accumulates into a pretty 330 Euros a month. If I get the same scholarship as last year I'll be getting 350 euros a month. which leaves 20 euros to live from per month (food,and other daily needs). So I have to look for a job. Actually I've already been on a job hunt yesterday and brought a few pamphlets with me, but it turns out that I have to have a documents which allows me to work here in portugal, funnily enough this document went missing when I sent it to DGES so I could go to university!!
Now I have to get a new one made and it can take quite some time. On tuesday I'm going to SE to ask for new one (luckily last year I needed the same document so I already have all the paperwork done to get the new one).
And if that wasn't enough a friend of my dad has my wacom in her house and she's outside the country now.
Things are going really sweet.
Spliter
Subscribe to:
Posts (Atom)
