• Welcome to Dark Bit Factory & Gravity.
 

Short Intro Challenge - Horizontal Scroller + Check Board Background

Started by Rbz, June 11, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rbz

Here's my entry, BlitzPlus code with "Horizontal Scroller + Check Board Background"Ã,  in 19 linesÃ,  Ã,  :||


Download executable ~ 322kb


Graphics 640,480,32,2

tile1 = CreateImage(720,720)

SetBuffer ImageBuffer(tile1)
ClsColor 30,30,80
Cls
Color 50,50,100
For y = 0 To 11
For x = 0 To 5
Ã,  Rect x*120+z,y*60,60,60,1
Next
If z = 60 Then z = 0 Else z = z + 60
Next

SetBuffer BackBuffer()


While Not KeyHit(1)

If angle# > 359 Then angle# = 0 Else angle# = angle# + 0.4

TileImage tile1,320*Sin(angle#)*Cos(angle#), 240*Cos(angle#)

Text (-angle+140)*5, (Cos(angle#*10)*30)+240,"First >> Short Intro <<Ã,  with Horizontal Text Scroller !!!Ã,  Ã,  Ã, ....................................Ã,  Ã,  Not much to say here, sorry :("

Flip
Wend

Challenge Trophies Won:

Rbz

Btw, for Bliz3D, you will need to use this code, 20 lines now.


Graphics 640,480,32,2

tile1 = CreateImage(720,720)

SetBuffer ImageBuffer(tile1)
ClsColor 30,30,80
Cls
Color 50,50,100
For y = 0 To 11
For x = 0 To 5
  Rect x*120+z,y*60,60,60,1
Next
If z = 60 Then z = 0 Else z = z + 60
Next

SetBuffer BackBuffer()

Color 255,255,255
While Not KeyHit(1)

If angle# > 359 Then angle# = 0 Else angle# = angle# + 0.4

TileImage tile1,320*Sin(angle#)*Cos(angle#), 240*Cos(angle#)

Text (-angle+140)*5, (Cos(angle#*10)*30)+240,"First >> Short Intro <<  with Horizontal Text Scroller !!!     ....................................    Not much to say here, sorry :("

Flip
Wend
Challenge Trophies Won:

Optimus

Hey, the scroller has incredibly small sized fonts. I can't read it :)
Challenge Trophies Won:

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won:

Tetra

Challenge Trophies Won:

Rbz

A little update, just to let you know what BB can do without colonsÃ,  ;)

Only 4 lines of code, weird, but worksÃ,  ;D

Download (B3D or BlitzPlus)


Graphics 640,480,32,2 fnt = LoadFont("Arial",48) SetFont fnt tile1 = CreateImage(720,720) SetBuffer ImageBuffer(tile1) ClsColor 30,30,80 Cls
Color 50,50,100 For y = 0 To 11 For x = 0 To 5 Rect x*120+z,y*60,60,60,1 Next If z = 60 Then z = 0 Else z = z + 60
Next SetBuffer BackBuffer() Color 255,255,255 While Not KeyHit(1) If angle# > 719 Then angle# = 0 Else angle# = angle# + 0.5 TileImage tile1,320*Sin(angle#)*Cos(angle#), 240*Cos(angle#) Text (-angle+140)*5, (Cos(angle#*10)*30)+200,"First >> Short Intro <<Ã,  with Horizontal Text Scroller !!! Now in 4 lines :)Ã,  Ã,  Ã, ....................................Ã,  Ã,  Not much to say here, sorry :(" Flip
Wend



Challenge Trophies Won:

Ghost^BHT

Pretty tricky :) I didn't know you could do that without colons   :cheers:

Tetra

thats insane, you could probably make a few one liners like thatÃ,  :oÃ,  :D
Challenge Trophies Won:

TinDragon

OMG that is mad, also kind of shows that the 20line limit doesnt really restrict blitz like other languages but who would have guessed you didnt need : with all those commands  :o

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won: