GAMELIB [LINUX / WINDOWS] (English)

Advanced game related topics
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

GAMELIB [LINUX / WINDOWS] (English)

Post by Num3 »

Cap.Bator made this nice game lib, using sdl, you can get it >>here<< ...

Since i've found a few bugs, and my french is ... let's say ... bad, i created this thread...
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

BUGS
  • 1. TTF font support is very bad... If you refresh it, size changes, and letters get cutted.
    2. There is no way to hide the mouse cursor!
Anonymous

Post by Anonymous »

Yes , and Thanks for this post.
For the first bug , i will use in the future a bitmap font.
For the second "bug?" i missed the function :oops:
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

tried to use the lib on Linux... but the OpenLibrary command fails on
SGUI.so (even the car demo doesn't work....)

tried to use an absolute path... but no success... :( any idea? (permissions are set to read the lib....)
Anonymous

Post by Anonymous »

Is not strange , you must have a SDL, SDL_ttf , SDL_image library. :wink:
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

it's working now... very impressive and 8) stuff ... thanks a lot for sharing..
I'll have a closer look....
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Cpl Bator... This is just kick ass!!! Excellent work!!!

Your Games website is great as well!!!

Keep up the good work.

Will post if I have a prob.
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Cpl. Bator, this is outstanding... I haven't found the ISO example yet, but I think I know how to do it.

I modified one of the graphics files... I could not resist driving my old jeep (so I added a racing number and...)

http://www.bluemesapc.com/image/Chassis.png

Click to DL

Image
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

funny :)
POiNT.OF.PRESENCE group
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

SDL support display many sprites from one texure?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Well the statement ended in a question mark...
:D
I am sorry but I don't understand what the question is in your statement?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Anonymous

Post by Anonymous »

You can load " Meta texture " , you change the UV coordinate for display the good sprite.

GameLib will be integrated to Gears3D....
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

Cpl.Bator wrote:You can load " Meta texture " , you change the UV coordinate for display the good sprite.
Tell more in detail please.

I have not found the description in Help file. :cry:
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

SetGLSpriteVertexColor - not worked. ->

Code: Select all

IncludeFile "GAMELIB.pbi"

Engine = InitEngine()
OpenGLScreen(Engine,640,480,32,0,"01-SIMPLE SPRITE [KEY A & Q FOR SET ALPHA]")
SpritePointer = LoadGLSprite("Medias/Ubuntu2.png",255,0,255)

a.f = 1

Repeat

ClearGLScreen(Engine,64 ,128 , 255 )
SetGLSpriteVertexColor(SpritePointer,255,160,128,64)

 Event = PoolEvent(Engine)

  Select Event

  Case #SDL_QUIT        ;the button "close window" is pressed
      EndGL(Engine):End
      
    Case #SDL_KEYDOWN     ;get the last key
      key = KeyEvent(Engine)
  EndSelect

  
Rot.f+0.5
;SetGLSpriteAlpha(SpritePointer,a)
RotateGLSprite(SpritePointer,Rot) 
DisplayGLSprite(SpritePointer,64,0)

If key = #SDLK_ESCAPE :  EndGL(Engine): End :EndIf 
If key = #SDLK_a : a+0.01 : EndIf  
If key = #SDLK_q : a-0.01 : EndIf  

SwapBuffers(Engine)

ForEver
There is no difference with "SetGLSpriteVertexColor"
or without "SetGLSpriteVertexColor"
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Post by zxtunes.com »

03-StarField.pb = Slide Show.

it normal?

Graphic cart: GeForce MX400
Post Reply