Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Is there any way to make some files with imgs/snds inside?  (Read 6628 times)

0 Members and 1 Guest are viewing this topic.

Mindiell

  • Hero Member
  • *****
  • Posts: 1261
    • ICQ Messenger - 41484135
    • View Profile
Is there any way to make some files with imgs/snds inside?
« Reply #15 on: August 27, 2010, 11:27:32 am »
.C is for C
.cpp is for C++
.h is for C or C++
.hpp could be for C++

BTW, all the code can be in the .h, apart the last code which is for the main.cpp
So, the main.cpp you've got the includes
For the .h you need all the other includes I gave (apart the .h itself for sure)
Mindiell
----

newn

  • Guest
Is there any way to make some files with imgs/snds inside?
« Reply #16 on: August 27, 2010, 07:01:21 pm »
Played a little bit with includes, made the example working.
After that, I've made it working on the main code, and even modified a little bit. The main problem was includes, it seems. :/

Thanks for the great tutorial and explanation. ;) I'll probably will be releasing some version of my game. Of course there's a lot of things to do still, but well, maybe someone will try it and give me some comments on it. :)

So if anyone's interested - check out my blog. ;) Link's in my profile, not sure, if i can post a link in my signature or my posts.

newn

  • Guest
Is there any way to make some files with imgs/snds inside?
« Reply #17 on: August 27, 2010, 08:30:17 pm »
Although, i had a little problem loading music files. They've no buffer, and buffer eats memory. Is there any way to put these inside and load them properly, with no intense, HIGH memory and cpu usage?