Search found 18 matches

by irrit8or
Sep 15, 2005 12:53
Forum: General
Topic: porting from c++
Replies: 5
Views: 2670

porting from c++

*scared* yip, im trying to port some c++ stuff to fb my code compiles fine, and runs fine(but not the result i wanted) so here is how i did some of it, are these good? c++] (~num & 0x10) fb] (not num and &h10) ---------------- c++] while (cnt--) fb] while cnt cnt=cnt-1 ... wend -------------...
by irrit8or
Sep 06, 2005 5:32
Forum: Linux
Topic: Compiling error.
Replies: 8
Views: 5229

this is a test, sorry. please delete
by irrit8or
Aug 11, 2005 6:00
Forum: General
Topic: fb/c/c++ projects
Replies: 10
Views: 4030

fb/c/c++ projects

Im trying to organize my projects little better, mimic c/c++ prjects. I dont like having one huge bas file with declares and such... This is GAME.BAS, (full path: c:\testproj\game.bas) '$include:'module1.bi' print "doing z thing..." zzzz sleep end This is MODULE1.BAS, (full path: c:\testpr...
by irrit8or
Jul 28, 2005 11:47
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

*sigh* i tried what dumbledore sed, it worked. the install script worked no errors. but when i run "fbc examples/hello.bas" from xterm it just gives a new line prompt. then xterm gets screwed, it doesn show any letters you type even throug you type them & when you right-click->shutdown...
by irrit8or
Jul 27, 2005 13:05
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

the final problem it seems is that install.sh needs to create directories in /usr/ etc... Even if i manuly type -mkdir freebasic in /usr/share it says its readonly filesystem. - if i chmod 777 share, once again it says read-only filesystem. - im logged in a root. - the /usr actualy points to /KNOPPI...
by irrit8or
Jul 27, 2005 9:26
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

yes. i did logon as root ( # ). i went to FreeBASIC dir and executed install.sh . But i didint notice what it said, after i ran it again, it says it cant create the dirs in /usr/... and whatever coz it read only. lol DSL runs from a ramdisk. But ( i think the rest stil lies on cd, which is R only) W...
by irrit8or
Jul 27, 2005 7:44
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

linux!

lol, it seems i have been coverted...to linux. I downloaded damnsmalllinux(dsl) . for a newb like me , it all went pretty easy. just so you kno ,its running in a ramdisk, i download fb014 for linux , and unpacked it. so i try to compile hello.bas. 1. i type "fbc examples/hello.bas" 2. it t...
by irrit8or
Jul 26, 2005 13:15
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

got it. err..but what about the directory stuctures, linux & win has different slashies // \\... edit: the include part, loadbmp art below.. anyway, so how would this code be conv to linuxable code? option dynamic '$include: "SDL\SDL.bi" dim video as SDL_Surface ptr dim pic as SDL_Surf...
by irrit8or
Jul 26, 2005 12:23
Forum: Linux
Topic: cross platform development
Replies: 18
Views: 11814

cross platform development

hi, i dont hav linux running, but want to use FB to create games for win & linux. So i will be developing the win release and then give it to some1 with linux runnin, then they just compile it... i dont know exactly how to prepare my code(while coding..or not) to be able to compile under fb linu...
by irrit8or
Jun 23, 2005 9:54
Forum: General
Topic: Cross-platform sound implementation
Replies: 3
Views: 3176

Cross-platform sound implementation

In win32 it easy to implement sound (by using the win32 api, aka PlaySound:-), since i realy want to make a release for linux aswell, whats
the easiest solution to sound in FB on linux?

thanx
by irrit8or
Jun 22, 2005 14:03
Forum: General
Topic: ARGHH...pointers
Replies: 3
Views: 2986

ARGHH...pointers

help!

i guess this one over my head. FB cant return UDT. So i can fix that by using pointers?

just a SMALL piece of code will help

thanx..
by irrit8or
Jun 20, 2005 10:36
Forum: General
Topic: udt + sdl surface
Replies: 4
Views: 3838

sorry

i messin up, here's the complete listing for 'surfs.bas'. option dynamic option explicit '$include: "SDL\SDL.bi" type ship_typ x as integer y as integer gfx(1) as SDL_Surface ptr end type dim video as SDL_Surface ptr dim event as SDL_Event dim testship as ship_typ dim i as integer video = ...
by irrit8or
Jun 20, 2005 7:31
Forum: General
Topic: udt + sdl surface
Replies: 4
Views: 3838

udt + sdl surface

hi, i want to use multiple sdl surfs in a udt, eg. type ship_typ x as integer y as integer gfx as SDL_Surface nam as SDL_Surface end type dim test as ship_typ the prob comes when you pass around the "test.gfx", which causes, "not a scaler" thingy. Is there a betr way? thanx.
by irrit8or
Jun 10, 2005 8:33
Forum: Archive
Topic: rts..again
Replies: 2
Views: 5555

rts..again

well here is my rts game project. theres ALOT of bugs, you can tell me if you want to. EDIT: the game doesnt look so good, the reason i made it to learn how to program a rts game. EVERY feature possible was striped, so only a bare model of a rts was left. SIMPLICITY was more important, and the reaso...
by irrit8or
Jun 07, 2005 6:31
Forum: General
Topic: Sdl_Image.DLL
Replies: 1
Views: 3978

sdl_image

on libsdl.org, just click on on libraries on the left and search for it, or

just click here..http://www.libsdl.org/projects/SDL_image/

edit: you can get the documentation there too