Jump to content

Welcome to #AfterLife.Gaming Community
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Little game

- - - - -

  • This topic is locked This topic is locked
55 replies to this topic

#41
Pønor ø.ø

Pønor ø.ø

    Your member title is shown beside posts you make

  • Member (5)
  • 6119 posts
  • Gender:Male
  • Location:Fluffy :o

Game name is still hidden :troll:

Inb4 "BraXi's flirt game for beginners"
ish
  • 0

#42
SliZe

SliZe

    Stationary Assassin

  • Member (5)
  • 4229 posts
  • Gender:Male
  • Location:Norway

Game name is still hidden :troll:

I know what it is :dave:
  • 0
Posted Image

Come closer, and I will SliZe You!

My Portofilio: http://slize.net

Just ask me if you want a sig!
X-Fire: nico1375

Spoiler


CoD4 Admin

#43
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland

I know what it is :dave:

Me too :troll:
  • 0
Spoiler

 

#44
Lossy

Lossy

    I have to pay for bandwidth

  • Senior Admin (80)
  • 2247 posts
  • Gender:Male
  • Location:Earth
who deleted me comment o.0?

Y U SO SERIOUS PERSON?

There no game name yet so its all good!!
  • 0

#45
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
Rewritten user interface (aka. menu) code to be more friendly and easier to use, it shortened code about 10 times or even more and now its similar to itemDefs in CoD4 :)

This isnt impressive:
Posted Image


But this is:
UIItem item = newUIElement( UI_IMAGE );
item.setRect( 0,0,800,600 );
item.setImage( MaterialMgr.loadMaterial( "ui_main_bg" ) );
UIItem item2 = newUIElement( UI_TEXT );
item2.setRect( 400,300,0,0 );
item2.align = ALIGN_CENTER;
item2.font = FONT_DEFAULT;
item2.setColor( 0.5f, 0.7f, 1.0f, 1.0f );
item2.setText( "This is simple UI_TEXT item %i!", 123 );

[......]

renderMenu( "menu_test" );



And thats the old code:
void UI_Main::init()
{
rotatey = 0.0f;
gfx[0] = MaterialMgr.loadMaterial( "ui_main_bg" );
gfx[1] = MaterialMgr.loadMaterial( "ui_main_darken" );
gfx[2] = MaterialMgr.loadMaterial( "ui_button_red" );
gfx[3] = MaterialMgr.loadMaterial( "ui_main_clouds" );//animated cloud
gfx[4] = MaterialMgr.loadMaterial( "ui_main_grass" );
gfx[5] = MaterialMgr.loadMaterial( "ui_main_logo" );

}

void UI_Main::button( int group, int id, int y, char *text )
{
    UI.drawImage( 400.0f, (float)y, 200, 40, ALIGN_CENTER, gfx[2] );
    UI.drawText( FONT_DEFAULT, 400-8, y+28, ALIGN_CENTER, text );

    Vector2i mPos = Com.getMousePos();
    if( UI.isMouseOver( 300, y, 200, 40 ) )
    {
        if( id == 4 )
        {
            glColor3f( 0.9f, 0.4f, 0.4f );
            UI.drawText( FONT_DEFAULT, mPos.x, mPos.y+45, ALIGN_CENTER, "Do you really want to leave? <img src='http://www.afterlifegaming.net/main/public/style_emoticons/<#EMO_DIR#>/sad.png' class='bbc_emoticon' alt=':(' />" );
            glColor3f( 1.0f, 1.0f, 1.0f );
        }

        if( Com.isMouseButtonPressed( BUTTON_LEFT ) )
        {
            switch( id )
            {
            case 4:
                exit( 1 );
                break;
            }
        }
    }
}
void UI_Main::render()
{
glColor4f( 0.5f, 0.5f, 0.5f, 1.0 );
UI.drawImage( 0.0f, 0.0f, 800, 600, gfx[0] );
UI.drawImage( 0.0f, 0.0f, 800, 600, gfx[1] );
if( fadein )
{
  alpha += 0.002f;
  if( alpha >= 0.86f )
   fadein = false;
}
else
{
  alpha -= 0.002f;
  if( alpha <= 0.5f )
   fadein = true;
}
glColor4f( 0.8f, 0.8f, 0.8f, alpha );
UI.drawImage( 0.0f, 0.0f, 800, 600, gfx[3] );
glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );
UI.drawImage( 0.0f, 100.0f, 800, 500, ALIGN_LEFT, gfx[4] );
UI.drawImage( 400.0f, 100.0f, 460, 100, ALIGN_CENTER, gfx[5] );
GLuint offset = 300;
button( 0, 0, offset, "START NEW GAME" );
offset += 44;
button( 0, 1, offset, "SELECT MISSION" );
offset += 64;
button( 0, 2, offset, "OPTIONS" );
offset += 44;
button( 0, 3, offset, "CREDITS" );
offset += 64;
button( 0, 4, offset, "LEAVE GAME" );
UI.drawText( FONT_DEFAULT, 790, 595, ALIGN_RIGHT, "BXEngine (c) BraXi 2012 [%s]", __DATE__ );
}

  • 0
Spoiler

 

#46
The King

The King

    Heil Spellcheck!

  • Member (5)
  • 6108 posts
  • Gender:Male
  • Location:UK - Oxfordshire
you are such a cock tease >:
  • 0

Posted Image


#47
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
Reflections!
Posted Image
  • 0
Spoiler

 

#48
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
and lighting, at the end effect was kinda poor cuz light moved through terrain :D

http://www.xfire.com/video/58268f/
  • 0
Spoiler

 

#49
Lossy

Lossy

    I have to pay for bandwidth

  • Senior Admin (80)
  • 2247 posts
  • Gender:Male
  • Location:Earth
haha lol, looks weird
  • 0

#50
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
Test level ;)

Posted Image
  • 0
Spoiler

 

#51
Lunatic

Lunatic

    Dude, I'm on fire!

  • Forum User
  • 596 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cake.
Looking good. :)
  • 0
Posted Image
Made by SliZe

Spoiler

#52
Twister

Twister

    I'm addicted

  • Member (5)
  • 467 posts
  • Gender:Male
  • Location:FINLAND
  • Interests::dave:
wow nice!
Keep up the good work!
  • 0
Xfire: clone354
Steam: twisterfin
Playstation@Network ID: Twistzor
Glorious Battlefield 3: CorpiSoldier

 

#53
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
Recorded little vid showing moving brush with classname func_mover (aka. brushmodel).

http://www.xfire.com/video/58a811/

Spoiler

  • 0
Spoiler

 

#54
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
I've synchronized game for multiplayer purposes :>
Screenshot shows frame number, expected next frame time and time when game advanced to the next frame. Entities and game logic are updated at 10 frames per second. The diference in timings is only 1/1000 nanoseconds so it shouldn't cause any problem :)

Posted Image
  • 0
Spoiler

 

#55
BraXi

BraXi

    Regular guy

  • ViP Member (20)
  • 109 posts
  • Gender:Female
  • Location:Poland
The thing i was working on today - console :>

Posted Image
  • 0
Spoiler

 

#56
Lossy

Lossy

    I have to pay for bandwidth

  • Senior Admin (80)
  • 2247 posts
  • Gender:Male
  • Location:Earth
and trolling me with it :(
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users