Archive

Posts Tagged ‘Programming’

Game development Update

August 31st, 2009

For the last couple of days I’ve been playing around with panada3D game engine. So far with out much problems I’ve been able to create 3D sound, landscape collision, 3rd and first person camera. I have also been messing around with blender and been able to UV map my models that I make useing it. This means that my boaring white meshs are all nice and colourfull see;

UVMapThe orb of Azumanga spins!!

Pete Programming, StarQuest , ,

Frame rate independent movement in PyGame

August 19th, 2009

To make sure that your game runs the same on all computers that can handle it. You will need to make sure that your actions are independent from the frame rate. To do this in python you can put this code above the game loop

framerate = 60 #frames per second
clock = pygame.time.Clock()

and then at the end of your game loop put

timepassed = clock.tick(framerate)

This should help with makeing the game more playable ^_^
Hope this helps.

Pete Programming , , ,

JScrollPane back to top

May 1st, 2009

If you want to make your JScrollPane return to the top once you have enter some text, try this:

myTextArea.setCaretPosition( 0 )

It places the curser back to zero and in turn makes the JScrollPane go back to the top.
Worked for me, hope this helps someone.

Pete Programming, Tutorials ,

MMORPG Update #2

March 9th, 2009

Okay so after a very long time here is a MMORPG Codename Starquest Update.  This only contains some basic images, which have been created useing the IrrLicht engine and varius other applications such as 3D Studios Max, Blender, Earth Sculptor and Photoshop.

Below shows the lightmapping test on a room mesh.

Lightmap created useing images

The lighting was created useing irrEdit, it generates the light effect and creates an image to be placed over the mesh.  There are other lighting effects called Per Pixel Lighting and this is created dynamicly by the application.  Below is an example of such effect.

Spaceship mesh with per pixel lighting

I have also be anble to crate an appliacation that uses 3D Sound, the engine is irrKlang, this means that depending on where you are, or in this case the camera, in the 3D world it will change the position of the sound source.  I have also created a nice 3D landscape useing Earth Sculptor, a simple to use 3D Landscape application.

Landscape, with skydomeLandscape wth skydome diffrent location

These landscapes have been created with a skydome, which is an image that you can see in the sky and will allways see no matter where you are located in the 3D world.

So this is a nice update for the development of Codename Starquest.  I will continue on creating and developing, so we shall see what happens.  The plan is to create a small working First Person game, then third person.  I will update you when this happens if at all ^_^

Pete out.

Pete Programming, StarQuest , ,

Chaos Gate

February 16th, 2009

I am attempting to create the chaos gate from the anime .hack //SIGN, for those of you who don’t know what it is.  A chaos gate is “a sort of transfer device that takes us from one place to another.” — Lord Orca —within The World (a MMORPG) Here’s a picture of the chaos gate from .hack //SIGN;

And a video,

I will show you what I end up making soon(ish)

Pete Anime, Random Useless items of interest, StarQuest , , , ,

Programming Variables Very Basic

September 12th, 2008

A variable is data that is stored in the computers memory. A variable can be a number (Integar, Float) or just one letter or number (Char) or it can be a string of letters or number (String) in some programming languages like Java and C/C++ you need to declare and initialize the variable, this means that you have to say what type it is and what it is called.  With some scripting languages like Python and PHP you don’t have to declare them which means that you don’t have to say what type they are you just give them an name.

How to declare and initialize in Java:

int foo;

foo = 15;

String foo1;

foo1 = “String”;

How to declare and initialize in Python:

foo = 15

foo1 = “String”

This is a very basic introduction, hope this has helped someone.

Tracking GIR!

Pete Programming, Tutorials

GIR And PyGame

June 9th, 2008

I have had a play around with PyGame and this is what I have been able to do. PyGame Mess One these where made by taking bits from the example code, line by line chimp and other PyGame games. erm I created them along time ago so I can’t really remember where I got the code from.

Well the next post will have something more interesting and useful that’s a promise!

Pete Programming, StarQuest , ,