Page 1 of 1

An 2D Interface Prototype for my game project

Posted: Thu Dec 14, 2006 9:36 pm
by Guimauve
Hello everyone !!

Yes ...
It can be done ...
Wtih PureBasic...

This is a prototype of the 2D interface for my 3D game project.
If you have play with TIE Fighter or X-Wing Alliance from Lucas
Arts, it's very similar interface.

Limitations :

Resolution fixed to 1024X768X32
DirectX7 or later is needed.
WideScreen is not supported yet.
The Main interface only.
Low to medium quality Graphics. (It's just for testing)
Be patient, it's long to load. (This will be solved very soon)

I will show it to you because it's time to test this part of my program.

File:1->OpenSpace.zip About 1.1Mo
Image

@Fred : I have asked for the CanvasGadget() because I need it to
built an editor to create graphics like these one. I will probably create
a temporary Gadget for my need until your is ready.

Have fun !

Regards
Guimauve

Posted: Fri Dec 15, 2006 12:59 am
by rsts
Looks like it will be very nice.

I did pick this up from the error log

Text0 = OpenSpace - Erreur
Text1 = Impossible d'initiliser DirectX !
Text2 = Impossible d'ouvrir l'écran !
Text3 = Package - Erreur
Text4 = Le répertoire %PACK% n'existe pas !
Text5 = Le sous-répertoire %FOLDER% n'existe pas !
Text6 = Sprite - Erreur
Text7 = Impossible de charger les Sprites !
Text8 = Pack - Erreur
Text9 = Impossible d'ouvrir le Pack !

cheers

Posted: Fri Dec 15, 2006 1:51 am
by Guimauve
Oh don't worry it's not an error log. This is error message text need by the program in case of trouble. They are in french for the moment but in the future the game will be fitted multi-language so a file with text message, one for each language, is needed.

I will change how these files will be generated later.

BTW, thanks for your reply.

Regards
Guimauve

Posted: Sun Dec 17, 2006 11:34 pm
by Guimauve
An updated version ready to test. If you use the launcher to start OpenSpace.exe you can choose between two screen resolution 800X600X32 or 1024X768X32.

The interface loading is way way much faster than the first release.

See the first post to download.

Regards
Guimauve

Posted: Sat Dec 23, 2006 1:25 pm
by ZeHa
Is it correct that there is no visible mouse cursor? If yes, I would consider changing this ;) otherwise it's too wacky to control

Posted: Sat Dec 23, 2006 3:03 pm
by rsts
ZeHa wrote:Is it correct that there is no visible mouse cursor? If yes, I would consider changing this ;) otherwise it's too wacky to control
In my case, it loads a special 'pointer' cursor, although I'm not sure where it obtains it.

cheers

Posted: Sat Dec 23, 2006 3:08 pm
by thefool
I see a pink cursor.

Request: titles above the doors; its annoying to look in the corner all the time when on a large monitor.

Posted: Sat Dec 23, 2006 9:32 pm
by Guimauve
thefool wrote:I see a pink cursor.

Request: titles above the doors; its annoying to look in the corner all the time when on a large monitor.
Just like a Gadget ToolTips ?

The cursor is a Sprite3D, you just need to display the sprite this way :

Code: Select all

DisplaySprite3D(#Cursor, MouseX(), MouseY())
or with an ordinary sprite

Code: Select all

DisplayTransparentSprite(#Cursor, MouseX(), MouseY())
ZeHa, your graphic card probably not support sprite size like 48X48. I will correct this problem on the next release.

Thanks for your test report.

Regards
Guimauve