Search found 598 matches

by bluatigro
May 03, 2012 13:45
Forum: Beginners
Topic: *.bi ?
Replies: 7
Views: 347

Re: *.bi ?

it shoot be done like this i think but i got a strange error .bi type complex dim i as double dim r as double declare constructor() declare constructor( a as double , bj as double ) declare sub fill( a as double , bj as double ) declare function lenght() as double end type .bas #include "t_comp...
by bluatigro
May 03, 2012 13:22
Forum: Beginners
Topic: split( a as string ) as string() ?
Replies: 11
Views: 814

split( a as string ) as string() ?

i want to split a string into parts :
o = split( "a test of split" )
o( 1 ) => "a"
o( 2 ) => "test"
etc...

how do i do that in fb ?
by bluatigro
May 03, 2012 11:06
Forum: Beginners
Topic: *.bi ?
Replies: 7
Views: 347

*.bi ?

i want to split my code into *.bi's and *.bas's

instructions please
by bluatigro
May 03, 2012 10:45
Forum: Projects
Topic: raytracer
Replies: 13
Views: 1055

raytracer

this is my first try at a raytracer in fb bug : the spheres dont have random positions ''RAYTRACER ''bluatigro ''start : 19 apr 2012 type t3d x as single y as single z as single declare constructor() declare constructor ( x as single , y as single , z as single ) declare sub fill( x as single , y as...
by bluatigro
May 03, 2012 10:31
Forum: Beginners
Topic: maze creation
Replies: 2
Views: 288

Re: maze creation

thans for help

see this forum | programming | game dev | a simple maze

what i did whit it
by bluatigro
May 03, 2012 10:29
Forum: Game Dev
Topic: a simple maze
Replies: 4
Views: 996

a simple maze

this is my first game in fb future : -windows fulscreen & no border -joystick control how big can de maze be max ? i took a save bet at 30 but i think it can be more #include once "GL/gl.bi" #include once "GL/glu.bi" #include "fbgfx.bi" #if __FB_LANG__ = "fb&qu...
by bluatigro
May 03, 2012 8:58
Forum: Windows
Topic: win32 + opengl ?
Replies: 3
Views: 497

win32 + opengl ?

this is a try at win32 + opengl i shoot get a blue blank screen [ the blue is only there to see if opengl is started right ] #include once "windows.bi" #include once "GL/gl.bi" #include once "GL/glu.bi" declare function WinMain ( byval hInstance as HINSTANCE, _ byval hP...
by bluatigro
May 03, 2012 8:49
Forum: Windows
Topic: gdi problem
Replies: 4
Views: 556

gdi problem

i have 2 questions : -1: why dont i get a blank screen ? -2: how do i lose the blue bar at the top #include once "windows.bi" dim shared as integer key( 255 ) dim shared as integer mouse_x dim shared as integer mouse_y dim shared as integer mouse_left dim shared as integer mouse_right dim ...
by bluatigro
Apr 29, 2012 17:34
Forum: Beginners
Topic: maze creation
Replies: 2
Views: 288

maze creation

i want to create a maze at random i have this : const as integer maxx = 10 const as integer maxy = 10 dim shared as integer maze( maxx , maxy ) dim as integer x , y for x = 0 to maxx for y = 0 to maxy maze( x , y ) = not 0 if x mod 2 and y mod 2 then maze( x , y ) = 0 next y next x ''createmaze for ...
by bluatigro
Apr 29, 2012 17:21
Forum: Beginners
Topic: how to do a child class ?
Replies: 6
Views: 586

Re: how to do a child class ?

thans for help

due to my eye problems i have difficultys whit searching
by bluatigro
Apr 29, 2012 17:11
Forum: Beginners
Topic: sub savescreenasbmp( file as string ) ?
Replies: 12
Views: 519

Re: sub savescreenasbmp( file as string ) ?

i want to store the screen as *.bmp on disc

i m planning animations of more than 1000 bmp's

so i cant use bsave

whit a array of bmp's on disc i can create avi's

on the moment i m creating simple games / animations whit opengl + fb
by bluatigro
Apr 28, 2012 10:15
Forum: Beginners
Topic: sub savescreenasbmp( file as string ) ?
Replies: 12
Views: 519

sub savescreenasbmp( file as string ) ?

i want to create animations whit FB

i aready know how to do graphics

what i need to store the pictures is a

savescreenasbmp( file as string ) sub

how ?
by bluatigro
Apr 28, 2012 10:08
Forum: Beginners
Topic: how to do a child class ?
Replies: 6
Views: 586

how to do a child class ?

i do know how to do this in c++ but now in free basic : type ta dim i as intrger declare constructor() declare constructor( n as integer ) end type constructor ta() this.i = 0 end constructor constructor ta( n as integer ) this.i = n end constructor type tb ''child of ta ? declare constructor() decl...

Go to advanced search