I have another question.
How would I make a resource file (*.rc) and integrate it in my game?
All help is appreciated!
Printable View
I have another question.
How would I make a resource file (*.rc) and integrate it in my game?
All help is appreciated!
In Microsoft Visual Studio you can add resources by pressing Ctrl+R. It will automatically create the resource file for you. I don't know how to change the extension but then again I don't know what purpose that would serve.
it wouldnt serve the prurpase definatly not if your not giving out the source
I am not giving out the source always. There will be future projects in which I let friends download my games in fully compiled form. I want to know how to create a resource page, or atleast how to access one after being compiled.
THis is what a resource file looks like for a ismple program i
was writing :
Im not aware fo a way that you cna change the extention,Code:// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//
IDC_CURSOR1 CURSOR "cursor1.cur"
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
still dont know why youd want to, but you could try setting a new
extention up thru yoru operating system, so that your compiler
recongnizes it but that sitll doesnt mean it will work.
Okay nevermind the extension change. I just want to know how to make a resource file that stores images in it for animations later in the game so that they are not open source (currently my sprites are loaded from folders from within the games directory). I don't want people taking my sprites. :-p
i dont think you can do a sprite as a resource.
errm correction, maybe thsi would help??
http://www.developerfusion.co.uk/show/2471/