Search found 36 matches
- July 16th, 2013, 9:06 pm
- Forum: Everything
- Topic: My Game
- Replies: 21
- Views: 11007
Re: My Game
Ok, after week or so, I had done some changes to the game. The biggest one would be that it now uses inheritance and polymorphism to store the objects, which allows greater variability when adding new classes to the game. I know that the whole structure could use a bit more abstraction but I have re...
- July 15th, 2013, 2:43 pm
- Forum: Everything
- Topic: My Game
- Replies: 21
- Views: 11007
Re: My Game
Bah, should have known I would be better off using stdio...
Thanks for help anyways.
Thanks for help anyways.
- July 15th, 2013, 9:58 am
- Forum: Everything
- Topic: My Game
- Replies: 21
- Views: 11007
Re: My Game
Wouldn't it be better to use fwrite() then ? That way I don't have to put in there any separators.
- July 14th, 2013, 8:21 pm
- Forum: Everything
- Topic: My Game
- Replies: 21
- Views: 11007
Re: My Game
Sooo, I've been doing some upgrades and one of them was taking file manipulation from stdio to streams. While I used stdio( fpritnf( "%d%c.... ) everything was just fine, but after re-coding it to use streams things got all weird and to make it short I got it working after putting one 'char' between...
- July 14th, 2013, 4:08 pm
- Forum: Everything
- Topic: How to check if program has cleaned up properly?
- Replies: 24
- Views: 9557
Re: How to check if program has cleaned up properly?
Not sure if it works always, but when I was testing it ( I didn't remove objects on purpose ) the program exited with exit code different then 0 and in output window it has written that the code has memory leaks.
- June 12th, 2013, 3:29 pm
- Forum: Everything
- Topic: Jumping code?
- Replies: 9
- Views: 3860
Re: Jumping code?
You can take a look at jumping ( and player movement as well ) in my project here:
http://www.planetchili.net/forum/viewto ... it=my+game
I believe the jumping code is in player.cpp inside the MovePlayer function.
http://www.planetchili.net/forum/viewto ... it=my+game
I believe the jumping code is in player.cpp inside the MovePlayer function.
- June 2nd, 2013, 4:28 pm
- Forum: Everything
- Topic: Referencing
- Replies: 9
- Views: 3466
Re: Referencing
In your Attis constructor
change cursor(gfx), ball(gfx),level(gfx) to cursor(gfxx),ball(gfxx),level(gfxx).
I have no idea why it works, but it does.
Maybe someone more experienced can explain this to us.
change cursor(gfx), ball(gfx),level(gfx) to cursor(gfxx),ball(gfxx),level(gfxx).
I have no idea why it works, but it does.
Maybe someone more experienced can explain this to us.
- May 26th, 2013, 7:08 pm
- Forum: Everything
- Topic: Isometric game
- Replies: 3
- Views: 2568
Re: Isometric game
This will probably not answer your question and I might be wrong here, but I'm not sure if you can make function return multiple values( besides passing pointers in arguments or making a struct ). And why exactly do you need to know if it is an odd or even tile ? Wouldn't just an index of the tile s...
- May 5th, 2013, 7:54 pm
- Forum: Everything
- Topic: Multi-core processing?
- Replies: 4
- Views: 3766
Re: Multi-core processing?
Dude... what an awesome site , started learning right away.blueyeredragon wrote:multi core processing = paralel programming.
https://www.udacity.com/course/cs344
- April 8th, 2013, 9:07 pm
- Forum: Everything
- Topic: Saving structures
- Replies: 3
- Views: 2283
Re: Saving structures
Not sure what do you mean, but if you are looking for an alternative to declaring it as a member variable in class then you can just declare it wherever in the code, just put "static" before the type and the variable will persist even if the program gets out of scope of that variable.