Search found 178 matches
- Mon Aug 30, 2010 4:45 pm
- Forum: Game Development
- Topic: Where to use classes, when creating games (newbie here)?
- Replies: 8
- Views: 1416
Re: Where to use classes, when creating games (newbie here)?
With classes there is a whole world of possibilities! Let's say you create a class named Entity , the Entity holds a Point struct which will be the x and y positions, like say for instance. Struct Point { int xPos; int yPos; }; Now you have all your standerd get and set functions and your Constructe...
- Sun Aug 08, 2010 12:36 pm
- Forum: Programming Discussion
- Topic: Lua Question
- Replies: 9
- Views: 1160
Re: Lua Question
Nah it's fine now.
I just compiled Lua myself into a .a file rather than a .lib and it's working fine.
Thanks guys.
I just compiled Lua myself into a .a file rather than a .lib and it's working fine.
Thanks guys.
- Sun Aug 01, 2010 4:50 pm
- Forum: Programming Discussion
- Topic: Structure of a Game Engine?
- Replies: 16
- Views: 1353
Re: Structure of a Game Engine?
I had a look at the thread and I came up with this: I will have a general cCore or cSystem class that has the five functions that get called in main (onInit, onRun, onInput, onUpdate and onCleanup). With it there will be other classes such as cCharacter and cNPC in a seperate game folder that will i...
- Sun Aug 01, 2010 4:04 pm
- Forum: Programming Discussion
- Topic: Structure of a Game Engine?
- Replies: 16
- Views: 1353
Structure of a Game Engine?
Hi, I want to get to work on a basic SDL engine that can be used to make small 2d games. How would I go about the structure of a game engine? And how would I seperate the engine from the actual game? External .txt files? Can someone please show me the light? How would I organise my files and classes...
- Fri Jul 23, 2010 3:16 pm
- Forum: General/Off-Topic
- Topic: 21st Birthday Bash
- Replies: 39
- Views: 5006
Re: 21st Birthday Bash
Happy birthday Falco!
Hope you have a super special ultra awesome day! Yay!
Remember to have an extra beer for your pal, LordPingas.
And awesome picture, Pritam!
Your talent in art is amazing to say the least!
Your a great inspiration.
Hope you have a super special ultra awesome day! Yay!
Remember to have an extra beer for your pal, LordPingas.
And awesome picture, Pritam!
Your talent in art is amazing to say the least!
Your a great inspiration.
- Mon Jul 19, 2010 10:16 am
- Forum: Programming Discussion
- Topic: Lua Question
- Replies: 9
- Views: 1160
Re: Lua Question
I'm not using luabind or any binding libraries, I'm just new to lua and I want to implement them to the engine I once had before I decided to rewrite it so it can be, well, more like an engine. How would I set up lua correctly to Code::Blocks? Oh and I'm so sorry for the very late reply, I completel...
- Mon Jul 19, 2010 10:13 am
- Forum: Programming Discussion
- Topic: Quick Question
- Replies: 3
- Views: 365
Re: Quick Question
Oh, but do they declare the classes for like the Player or Items in a seperate .h or .cpp file or do they declare them in Lua?
Oh and thanks!
Oh and thanks!
- Mon Jul 19, 2010 6:56 am
- Forum: Programming Discussion
- Topic: Quick Question
- Replies: 3
- Views: 365
Quick Question
Hello. My quick question is well, if I were to make an engine (renderer, input, scripter, sound thing, animater and the like) how would I make the actual game itself? Would I like have a Player class that inherites from an Entity class or something? Or would I handle all the game with Lua? How would...
- Sat Jul 10, 2010 4:00 pm
- Forum: Art, Music, and Design
- Topic: Anyone Know Anything About Color?
- Replies: 6
- Views: 1966
Re: Anyone Know Anything About Color?
That sure helped me.
Great reference for beginners in programming!
Great reference for beginners in programming!
- Sat Jul 10, 2010 3:46 pm
- Forum: Programming Discussion
- Topic: Lua Question
- Replies: 9
- Views: 1160
Lua Question
Hello fellow game developers. :) I'm working on this engine which is pretty good so far and it's going pretty well and I am trying to implement Lua. The problem is that I'm using Code::Blocks and I have linked the includes and libs and everything but I keep getting "undefined reference" er...
- Sun Jul 04, 2010 12:53 pm
- Forum: General Gaming
- Topic: Worst game you've ever played
- Replies: 36
- Views: 5817
Re: Worst game you've ever played
Sonic 06... 'nuff said.
- Mon Jun 21, 2010 8:18 am
- Forum: General/Off-Topic
- Topic: Resignation
- Replies: 21
- Views: 3195
Re: Resignation
You was the best addition to the team and it's very sad to see that you have left.
Hopefully you change your mind.
Hopefully you change your mind.
- Mon May 31, 2010 1:20 pm
- Forum: Game Development
- Topic: Elysian Shadows Off-screen Tiles
- Replies: 12
- Views: 2092
Re: Elysian Shadows Off-screen Tiles
They are using off screen tile culling in there engine.
When I asked Falco how he implemented it, he said something like this:
When I asked Falco how he implemented it, he said something like this:
Take the top left of your screen and divide it by your sprite size.
Then write a for loop within a for loop that iterates from the top left to the bottom right.
- Sun May 16, 2010 6:35 pm
- Forum: Programming Discussion
- Topic: Can Anyone Help Me Out?
- Replies: 4
- Views: 428
Re: Can Anyone Help Me Out?
It's okay I fixed it... I should of called SDL_SetVideoMode() before loading the surface files. I can't see anything hugely wrong with the code, except your doing a lot of drawing in the event loop. Minus using up alot of cpu cycles I don't think this would cause any issues, but whatever, could be t...
- Sun May 16, 2010 5:41 pm
- Forum: Programming Discussion
- Topic: Can Anyone Help Me Out?
- Replies: 4
- Views: 428
Can Anyone Help Me Out?
Sorry, it's late at night and I want to get this working before I get to sleep. #include "SDL.h" #include <string> const int Grass = 0; const int Wall = 1; int xPos = 200; int yPos = 300; int map[12][16] = { {1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0}, {1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0}, {1,1,1,1,1,0...