Hi VirtualAce,
You mean should we use something like openframeworks.cc ? or is there anything else you are pointing to. Kindly suggest. Thanks
Type: Posts; User: sarvsav
Hi VirtualAce,
You mean should we use something like openframeworks.cc ? or is there anything else you are pointing to. Kindly suggest. Thanks
HI Alpo,
I have a doubt here, as I am loading all images and sounds in Game class, so, what is the need of extra class for Image, Sound.? Because no other class is going to use that class Image,...
Thanks for your feedback, alpo. Yes, the point make sense. I will modify it again. Thanks again.
Hi Alpo,
Wow, 2D RPG engine, I am planning to work on it next.
Are you planning on building separate manager classes to handles loading images / sounds / states, or doing it all in the Game...
The SDL team is working too hard, I noticed lots of bugs have been fixed for SDL2, but still lots of alive. Yes, as its learning project, So, We cann't force anyone to install a new OS or purchase a...
Hi GReaper,
There is a topic in our milestone too, when we move to v0.6.0 to v0.8.0. We will discuss, how to port your SDL 1.2 apps to SDL 2.
Kindly share your views, is it a bad idea?
Hi Everyone,
We have started a learning project named cyberbitgame [1], that will help others to learn about game programming. We will discuss and share our knowledge about how software...
Thanks for your help.
What i was looking for is some thing like this:
enum _mytype { IamInt = 0,
IamFloat = 1,
IamUnknown = 2
...
HI ALL,
When declaring enum, we use like
enum enumname {
value1 = 1,
value2 = 2
};
Thanks laserlight, it worked like charm.!
the solution will fail again,
suppose the newfile contains : 4.7 3.2 1.2, and i use
fscanf(newfileptr,"%i",current); // current is of now int type
then what happen is that, it returns 1 and...
Hi, okay, lets take an example, name of file is "newfile"
When i use fscanf(newfileptr,"%f",current); //current is the variable of type float.
now suppose the content of newfile is 1 2 3
what it...
Hi everyone,
I have a doubt . I have a file, that may contains either stream of float, int or characters. How can i find that whether the file is of int, character or float?
Okay i got it, Thanks SirPrattlepod
okay, then why the 6 and 10? i think its 6 or 12. why its coming as 10.
Hi all,
I stuck at one more place,
int main()
{
char ch[2] = "hi";
char myCh[2][2] = {"hi,"hi"};
Thanks tabstop and anduril for explaining very well.
(In C, whenever you see constant, you're allowed to pass a non-constant object; the reverse is not as true.) => I wasn't aware of this. Thanks for help.
1 more thing, i am confused about,
...
Hi, i have a doubt related to C function. For ex :
int puts(const char *s);
In argument list, why we are using const here? Now consider the below code
Yes, you are right. There are some errors in my post. Even i learnt some new things too.
By the way, i have used this: » Preprocessor magic: Default Arguments in C - Intelligent rumblings
May be helpful for someone else.
Cheers
Seems to very similar to function overloading, but i like the trick. Thanks for the help.
Yes , passing argument is one of the best solution.
Hope it helps,
the input file in this format :
1
2
3
4
e
we
Hello Everyone,
How to create default arguments in C? Is there any way to make default arguments ( i mean any alternative for them).