HI-RES GLBasic media (icons & logo & splash screen)

Previous topic - Next topic

WPShadow

Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Hatonastick

Quote from: WPShadow on 2010-Jul-19
Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?
It's starting to annoy me that everyone seems to know what changes have been made to type other than me.  :S
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

Hark0

Quote from: WPShadow on 2010-Jul-19
Quote
About animated logo..... sorry but no time to play.... GLB loads Default.png and about 1 sec (or minus) on iPad load OUR program....

No...  :D

I want to make an own animated Logo! With the new Type - Functions it's easier than I thought! Have you got or somebody else the
right angles for the cubes in 3D?

"Cappicci" :D

hmmm I no have angles of cubes... For my designs I just downloaded and vectorize new cubes with Coreldraw...

Goog luck with your ides, sounds great!
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Kitty Hello

That code is really old, but it still compiles.


Code (glbasic) Select

// --------------------------------- //
// Project: Intro: 2D
// Start: Friday, August 13, 2004
// IDE Version: 2.40811

// GLOBAL gPreGFX$
// gPreGFX$ = "GFX/"
// GOSUB ShowDemo

GOSUB ShowDemo


SUB ShowDemo:
LOCAL sleeper, chr, x, yp, num, angle, str$, text$, offset
LOCAL PosX[], PosY[], Zoom[], i, sx, sy, xscale, scale
LOCAL fx, fy

LIMITFPS -1
LOADFONT "metalfont.png", 0
GETFONTSIZE fx, fy
GETSCREENSIZE sx, sy
MakeCubeSprite(0, 255, 255,   0, 10, 10, 5, 10)
MakeCubeSprite(1,   0,   0, 255, 10, 10, 5, 10)
MakeCubeSprite(2,   0, 255,   0, 10, 10, 5, 10)
MakeCubeSprite(3,   0, 255, 200, 10, 10, 5, 10)
MakeCubeSprite(4, 255, 255, 255,-15, -2, 7,  8)
BLACKSCREEN;SHOWSCREEN;SHOWSCREEN
DIM PosX[5][2]
DIM PosY[5][2]
DIM Zoom[5][2]
i=0
PosX[i][0] =  1; PosX[i][1] = .6;   PosY[i][0] = .264; PosY[i][1] = .264; i=i+1
PosX[i][0] = .5; PosX[i][1] = .45 ; PosY[i][0] =  1;   PosY[i][1] = .3;   i=i+1
PosX[i][0] = .3; PosX[i][1] = .25 ; PosY[i][0] = 1.5;   PosY[i][1] = .3;   i=i+1
PosX[i][0] = .5; PosX[i][1] = .35 ; PosY[i][0] = -1.2; PosY[i][1] = .14;  i=i+1
PosX[i][0] = -1; PosX[i][1] = .15 ; PosY[i][0] = .5;   PosY[i][1] = .43;  i=i+1
i=0
Zoom[i][0]=.8; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 1; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 5; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 1; Zoom[i][1]= 1; i=i+1
Zoom[i][0]= 2; Zoom[i][1]= 1; i=i+1

xscale=.1
WHILE TRUE
xscale=xscale + GETTIMER()/2500
IF xscale>1 THEN xscale = 1
scale = 1-COS(90*xscale)
FOR i=0 TO 4
ZOOMSPRITE i, sx*(PosX[i][0]*(1-scale) + PosX[i][1]*scale), _
sy*(PosY[i][0]*(1-scale) + PosY[i][1]*scale), _
Zoom[i][0]*(1-scale)+Zoom[i][1]*scale, _
Zoom[i][0]*(1-scale)+Zoom[i][1]*scale
NEXT
ALPHAMODE 0
Center("GLBasic")
IF xscale=1
USEASBMP
GOTO skip
ENDIF
SHOWSCREEN
WEND
skip:
xscale=-1.5
WHILE xscale<1
IF xscale>0
ALPHAMODE xscale
DRAWRECT 0,0, sx,sy, RGB(255,255,255)
ENDIF
xscale=xscale+GETTIMER()/2000
SHOWSCREEN
WEND
BLACKSCREEN
ENDSUB

FUNCTION Center: text$
LOCAL sx, sy, fx, fy
GETSCREENSIZE sx, sy
GETFONTSIZE fx, fy
PRINT text$, (sx-fx*LEN(text$))/2, sy*.7
ENDFUNCTION

FUNCTION MakeCubeSprite: num, R, G, B, w1, w2, h1, h2
LOCAL col1, col2, col3, z, sx, sy
GETSCREENSIZE sx, sy
DRAWRECT 0,0, sx, sy, RGB(255,0,128)
sx=sx/100
col1=RGB(R, G, B)
col2=RGB(R*.85, G*.85, B*.85)
col3=RGB(R*.75, G*.75, B*.75)
IF w1<0
w1=-w1
w2=-w2
sy=col1; col1=col3; col3=sy
ENDIF
FOR z=h1*sx TO (h1+12)*sx // top down
DRAWLINE 1,1+z,                1+w1*sx,  1+z+(h2-h1)*sx, col3
DRAWLINE 1+w1*sx,(h2-h1)*sx+z, 1+(w1+w2)*sx, 1+z+(-h1*2+h2)*sx, col1
NEXT
FOR z=0 TO w1*sx STEP .5// left right
DRAWLINE 1+z, 1+h1*sx+z/w1*(h2-h1), 1+z + w2*sx, 1+z/w1*(h2-h1), col2
DRAWLINE 2+z, 1+h1*sx+z/w1*(h2-h1), 1+z + w2*sx, 1+z/w1*(h2-h1), col2
DRAWLINE 1+z, 1+h1*sx+z/w1*(h2-h1),   z + w2*sx, 1+z/w1*(h2-h1), col2
NEXT
GRABSPRITE num, 0,0, 20*sx+1, 22*sx+1
ENDFUNCTION

Hatonastick

Hmmm I must have seen that once upon a time because that is almost exactly what I was going to do, just in 2D rather than 3D.  :blink:
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

WPShadow

Your old code works, but I try to make a better version in 3D with sound and light...  :booze:

What font did you use for "GLBasic Basic for Gamers"?

I tried to find it, but no chance...  :'(
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Kitty Hello


WPShadow

Here's my first try, the next should be better, this is only the first Test for it!

[attachment deleted by admin]
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Hatonastick

Brilliant!  Keep at it, can't wait to see the final version.  Well at least that's another thing off my list to stop distracting me from my game.

Anyway I'm planning to be adding your final code to whatever I make with GLB as the intro screen I think.
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

Kitty Hello

#24
[edit] wrong language

not bad. I always wanted to slide the blocks in from the sides. The left block should rotate during this. At the end the top block that does a quick rebounce.
:D


WPShadow

Wird gemacht!

Spätestens Ende der Woche hab ich das Ganze soweit fertig!
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Hark0

OOOOPPSSS!!!

GUYS!!! UK FORUM PLEASE!

Can translate?

:P

P.S. CAT (languaje): (No fotem que ens possem tots a escriure en el nostre idioma matern  =D)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

WPShadow

Ups...

I only said, that I will try to finish the 3D Logo until the end of this week...
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Hark0

Quote from: WPShadow on 2010-Jul-20
Ups...

I only said, that I will try to finish the 3D Logo until the end of this week...

Thanks!  :)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

erico

I always wanted to slide the blocks in from the sides. The left block should rotate during this. At the end the top block that does a quick rebounce.

can you explain this further?