DXFramework

DXFramework

DXFramework is a simple, illustrative, general purpose 2D (and 3D) computer game engine for Microsoft Visual Studio using Microsoft’s DirectX technology, version 9.0c.

DXFramework is currently running version 1.0. It has 3 revisions for C++ available for download on their website, as well as a XNA studio express version. It requires Microsoft Visual Studio 2005(or express), the latest DirectX SDK, the Windows SDK, as well as a Python Interpreter. All of these are available from the DXFramework Wiki.

The original version of DXFramework was written by Corey Johnson and Jonathan Voigt. The DXFramework 0.9.4 rewrite was completed by Jonathan Voigt. DXFramework is currently maintained and managed by Jonathan Voigt at the University of Michigan.

It has been used at the University of Michigan since 2002 and University of Massachusetts Dartmouth since 2008 with success in game design classes focusing on arcade style games.

Examples

Adding a sprite into a software being made using DXFramework.

dxf::Sprite varname;

Written in the header file of a class this declares the variable “tank” as a sprite.

varname.CreateFromFile(L"name.ext");

This is written into the .cpp file that the header is imported into; it will attach an image onto the sprite variable to be rendered when the program runs.

ClassName red;

Add this into play.h(default in a new game) and “red” can then call any of the necessary Tank functions it would need to load, unload, render, or update.



Add a new class to be used in a game; this is where the sprites are controlled.

void name::Load() {
//This is where sprite images are loaded and initial values are declared.  
}
 
void name::Render() {
//This is where the sprite(s) of “name” are rendered, for 2D games the 
//sprite variables would be called with .Render2D().
}
 
void name::Unload() {
//This is where the sprites are unloaded from the program, this is called by adding //.Unload() to the sprite variable.  
//Removing them without unloading can cause many problems in a program.
}
 
void name::Update() {
//This is where the sprite rendering coordinates can be changed, color changing, or other //methods can be called to edit the sprite such as rotating the sprite.
}

A “name” object would then added into “play.h” to be used to call any “name” functions or unprotected variables.

License

DXFramework is licensed under a BSD-style license.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • List of game engines — Many tools called game engines are available for game designers to code a game quickly and easily without building from the ground up. Contents 1 Free and open source 2 Proprietary 2.1 Commercial 2.2 Freeware …   Wikipedia

  • Game engine — A game engine is a system designed for the creation and development of video games. There are many game engines that are designed to work on video game consoles and personal computers. The core functionality typically provided by a game engine… …   Wikipedia

  • Crystal Space — Developer(s) Jorrit Tyberghein et al. Stable release 1.4.0 / January 25, 2010; 20 months ago ( …   Wikipedia

  • Source (game engine) — Source engine …   Wikipedia

  • OGRE — For other uses, see Ogre (disambiguation). OGRE Developer(s) The OGRE Team …   Wikipedia

  • NScripter — is a software engine that is used for the creation of visual novels, written by Naoki Takahashi. Due to its simplicity and its liberal license (while it is not open source, royalty free commercial use is permitted), it quickly became popular in… …   Wikipedia

  • Digital Novel Markup Language — Original author(s) Karin (Internet name) Developer(s) J. Miguel Initial release 1998 Stable release 2.24 / 2000 Developm …   Wikipedia

  • Chrome Engine — Developer(s) Techland Initial release 2003, with Chrome Engine I Stable relea …   Wikipedia

  • Diesel (game engine) — The Diesel engine is a game engine developed and used by GRIN. The engine was originally developed for their game Ballistics and has been used, albeit with modifications, in a number of other games since then. The first installment of the engine… …   Wikipedia

  • Liste de moteurs de jeu — La liste de moteurs de jeu répertorie des logiciels moteurs de jeu utilisés par les développeurs de jeux vidéo. Sommaire 1 Moteurs de jeu libres 2 Moteurs propriétaires gratuits 3 Moteurs commerciaux …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”