Archive

Posts Tagged ‘Game’

INVADERZ – My First XNA Game

December 1, 2009 azer89 Leave a comment

xna_logo

Game Title : INVADERZ

Genre : Shoot ‘em up

Type : Game 3D

Framework : XNA Game Studio 3.1

Tool :

-    Visual Studio 2008 Professional SP 1
-    SpriteFont 1.2


DOWNLOAD HERE

 

Judul Game     : INVADERZ

Genre              : Shoot ‘em up

Jenis                : Game 3D

Framework      : XNA Game Studio 3.1

Tool                 :

- Visual Studio 2008 Professional SP 1

SpriteFont 1.2

Categories: C#, Game Programming, Programming, XNA Tags: , , ,

XNA – TriangleStrip

August 9, 2009 azer89 Leave a comment

xna_logo

The idea behind TriangleStrips is that you should define each vertex only once. So for the first triangle, you have to define vertices 0,1 and 2. Now, for the next triangle, you only have to add vertex 3, XNA will always use the last 3 vertices to draw the triangle, so for the second triangle it uses vertices 1, 2 and 3, which is correct.

Untitled

Read more…

XNA – Quaternion

July 24, 2009 azer89 Leave a comment

xna_logo

The XNA Framework provides the Quaternion structure to represent and calculate the efficient rotation about a vector around a specified angle. Quaternions represent a rotation. Typically, they are used for smooth interpolation between two angles, and for avoiding the gimbal lock problem that can occur with euler angles.

A Quaternion is much like a Matrix, but can only store a rotation. Don’t let the name of this thing scare you away (for first time i hear it, i thinks it is a weird planet’s name :D ), although it’s very hard to understand mathematically (it makes my head blown away) a quaternion is VERY very easy to use.

Untitled

In this tutorial, we will create a simple example program using quaternion, we will draw a spacecraft and it would be flying through 3D world.

Read more…

XNA – Camera Rotation

July 19, 2009 azer89 Leave a comment

xna_logo

In this article, we will create a simple XNA program that load a 3D model, and rotating the camera around the model. In this example,  showing how to moving your camera position around the model. Camera target and camera up vector will remain same, what we need is to change camera position vector.

Untitled

Read more…

XNA – Using Effect

July 19, 2009 azer89 Leave a comment

xna_logo

The XNA Content Pipeline is pretty good. It implifies the process for importing and loading models, textures, and other content. Unfortunately, it is optimized for loading data, not code. Effect files are essentially code, so an alternative approach could provide additional benefits.

Like the XNA Content Pipeline, Effect Generator compiles your .fx files at build time, reducing game load times. Additionally, Effect Generator further simplifies run-time loading and effect parameterization.

Place your effect file in Content folder :

Untitled


We start by declaring an Effect:

Effect effect;


We’ll use the Content pipeline to load an instance of the Effect class:

effect = Content.Load<effect>("effects");


And render using the effect:

effect.CurrentTechnique = effect.Techniques["Pretransformed"];
effect.Begin();
foreach (EffectPass pass in effect.CurrentTechnique.Passes)
{
    pass.Begin();

    pass.End();
}
effect.End();

Read more…

XNA – Set Up Camera

July 18, 2009 azer89 1 comment

xna_logo

Before we render 3D world, we need set up camera. We do this by specifying the View and Projection matrices. Before rendering, both matrices are needed so the graphics card can correctly transform 3D world to 2D screen in our monitor.

Setting up camera in 3D world comes down to specifying two matrices. We can save the camera position and direction in a single matrix, which is called the View matrix. To create the View matrix, XNA needs to know the Position, Targer, and Up vector of camera. We can also save the view frustum, which is the part of the 3D world that is actually seen by the camera, in another matrix, which is called the Projection matrix.

Untitled

Read more…

Categories: C#, Programming, XNA Tags: , ,

XNA – Load 3D Model

July 11, 2009 azer89 Leave a comment

xna_logo

here’s the screenshot (click image for larger view):

one two

three four

five six

Read more…

Categories: C#, Programming, XNA Tags: , , ,

XNA – Draw Text

July 11, 2009 azer89 1 comment

xna_logo

Another simple example, how to draw a text in XNA =D
Demonstrates how to import a SpriteFont into a project and draw text using DrawString.

text

Read more…

Categories: C#, Programming, XNA Tags: , ,

XNA – Displaying Cursor

July 8, 2009 azer89 Leave a comment

xna_logo

XNA doesn’t automatically show a mouse pointer within the game window. First, you need a position for your mouse. You’ll also need a 2d texture to display as your mouse pointer

It’s very simple, just load a png image, and displaying it using spriteBatch.Draw();

Of course, we always keep track the mouse position =]

images

Read more…

Categories: C#, Programming, XNA Tags: , ,

Diablo III, Sebuah Game yang Patut Dinantikan

July 29, 2008 azer89 Leave a comment


Pertama kali lihat beritanya di gamespot…wuiih keren ! (walaupun hanya melihat wallapapernya saja). Dulu sih sempet main Diablo II, he he he,tapi karena udah “kejadulan” mainnya jadi gak diterusin, kita tunggu saja, moga-moga game ini cepat rilis(paling cepet 2009 akhir hu hu hu) dan moga-moga gameplay-nya akan membuat kita takjub.

Categories: Game Tags: ,