You should know about some functions before you begin any sort of real work with SDL.
Initialize one or more SDL subsystems (SDL_Init )
The SDL_Init function should be the very first function that is called. If this function is not called, no other SDL function will operate. When you call this function, you specify which of the SDL subsystems you intend to use in the application. The identifiers for each of the subsystems are shown below.
Thursday, July 7, 2011
Wednesday, July 6, 2011
Setting up SDL in codeblocks
- First of all you've to download SDL headers and binaries. The download is available at http://www.mediafire.com/?ce02ii51rvoxezm
- After downloading, extract the zip file.
- Copy the contents of include folder and open ...\CodeBlocks\MinGW\include folder where your codeblocks has been installed ( such as C:\Program Files (x86)\CodeBlocks\MinGW\include). Create a new folder named SDL and paste the copied contents inside it.
- Copy the contents of bin folder and paste it inside C:\Windows\System32.
- Repeat the above step for lib folder. Paste the contents inside ...\CodeBlocks\MinGW\lib.
Tuesday, July 5, 2011
Collision detection in flash
Collision detection is an essential part in games. It ensures that the game physics are relatively realistic, so that an object does not cut through other objects or hovers when it should fall. How well a game can detect collisions is an integral part of the believability and enjoyment of the game.
Here is a simple concept in flash to test the collision detection.
- Create two objects in flash, here for demo say two rectangles with red and blue color.
- Right click both objects and convert them to symbol giving them names red and blue.
- If properties panel is off, go to window menu and turn it on.
- Select the respect objects and under properties panel give the instance names to both, say red and blue (these are the names we will be using to identify the them in action scripts).
Monday, July 4, 2011
Create your own character in flash-able to move
- Create a character ( may be a circle here just for demo)
- Right click the circle, convert to symbol, select movie clip and then give a name to the character finally pressing ok
Sunday, July 3, 2011
Make a Program Run at Startup
It sometimes require for us to make some programs run at startup. To accomplish this task, follow the steps as mentioned :
- Run registry editor ( run (win+R) and then type regedit)
- Then Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
- Edit\New\String Value
- Rename New Value #1 to the name of program to be run at startup
- Double click the name so renamed
Saturday, July 2, 2011
Customize windows 7 - GodMode
By creating a new folder in Windows 7 and renaming it with a certain text string at the end, users are able to have a single place to do everything from changing the look of the mouse pointer to making a new hard-drive partition.
GodMode is the name given to cheats in video games that provide you with all weapons and access to all areas. As it turns out, Windows 7 has a GodMode cheat. It is basically a control panel of sorts which provides you access to all the features in one explorer window.
To enter "GodMode," one need only create a new folder and then rename the folder to the following:
GodMode is the name given to cheats in video games that provide you with all weapons and access to all areas. As it turns out, Windows 7 has a GodMode cheat. It is basically a control panel of sorts which provides you access to all the features in one explorer window.
To enter "GodMode," one need only create a new folder and then rename the folder to the following:
Friday, July 1, 2011
Changing Text on XP Start Button
Resource hacker
Resource Hacker is a freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files (*.res). It incorporates an internal resource script compiler and decompiler and works on Win95, Win98, WinME, WinNT, Win2000 and WinXP operating systems.
Viewing Resources: Cursor, Icon, Bitmap, GIF, AVI, and JPG resource images can be viewed. WAV and MIDI audio resources can be played. Menus, Dialogs, MessageTables, StringTables, Accelerators, Delphi Forms, and VersionInfo resources can be viewed as decompiled resource scripts. Menus and Dialogs can also be viewed as they would appear in a running application.
Saving Resources: Resources can be saved as image files (*.ico, *.bmp etc), as script files (*.rc), as binary resource files (*.res), or as untyped binary files (*.bin).
Modifying Resources: Resources can be modified by replacing the resource with a resource located in another file (*.ico, *.bmp, *.res etc) or by using the internal resource script compiler (for menus, dialogs etc). Dialog controls can also be visually moved and/or resized by clicking and dragging the respective dialog controls prior to recompiling with the internal compiler.
Adding Resources: Resources can be added to an application by copying them from external resource files (*.res).
Deleting Resources: Most compilers add resources into applications which are never used by the application. Removing unused resources can reduce an application's size.
Downloading resource hacker
Download resource hacker from the link http://www.mediafire.com/?acn0l46z8os67y7
Modifying explorer.exe file
Resource Hacker is a freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files (*.res). It incorporates an internal resource script compiler and decompiler and works on Win95, Win98, WinME, WinNT, Win2000 and WinXP operating systems.
Viewing Resources: Cursor, Icon, Bitmap, GIF, AVI, and JPG resource images can be viewed. WAV and MIDI audio resources can be played. Menus, Dialogs, MessageTables, StringTables, Accelerators, Delphi Forms, and VersionInfo resources can be viewed as decompiled resource scripts. Menus and Dialogs can also be viewed as they would appear in a running application.
Saving Resources: Resources can be saved as image files (*.ico, *.bmp etc), as script files (*.rc), as binary resource files (*.res), or as untyped binary files (*.bin).
Modifying Resources: Resources can be modified by replacing the resource with a resource located in another file (*.ico, *.bmp, *.res etc) or by using the internal resource script compiler (for menus, dialogs etc). Dialog controls can also be visually moved and/or resized by clicking and dragging the respective dialog controls prior to recompiling with the internal compiler.
Adding Resources: Resources can be added to an application by copying them from external resource files (*.res).
Deleting Resources: Most compilers add resources into applications which are never used by the application. Removing unused resources can reduce an application's size.
Downloading resource hacker
Download resource hacker from the link http://www.mediafire.com/?acn0l46z8os67y7
Modifying explorer.exe file
- Make a backup copy of the file explorer.exe located at C:\Windows\explorer. Place it in a folder somewhere on your hard drive where it will be safe.
- Start Resource Hacker
- File - open - explorer.exe located at C:\Windows\explorer.exe
- String table - 37 - 1033
- Replace the word 'start' with the one you want such as 'browse' and then compile script
- Then, File-save as - inside C:\Windows\ with any name such as explore.exe
- Close resource hacker
- Run ( win+R)
- Type regedit
Subscribe to:
Posts (Atom)