Search found 43 matches

by sys49152
Dec 22, 2009 12:52
Forum: General
Topic: Maintaining a constant framerate (experiment)
Replies: 29
Views: 7069

Re: Maintaining a constant framerate (experiment)

set the GFX_HIGH_PRIORITY and try again.

Screenres 640,480,32,1,0 or fb.GFX_HIGH_PRIORITY
by sys49152
Oct 09, 2009 3:57
Forum: Sources, Examples, Tips and Tricks
Topic: scale graphics
Replies: 1
Views: 1646

scale graphics

I was looking for a fast routine to scale 320x240 to 640x480 and put some old monitor raster line effect to it for every frame when i got an idea. Why not precalculate scale and raster in the beginning of the program. and skip the (320x240 --> scale and raster --> 640x480) routine for every frame. H...
by sys49152
Sep 23, 2009 22:47
Forum: Beginners
Topic: Questions about Constants
Replies: 9
Views: 3782

MichaelW wrote:
Its not different.
Variables declared with VAR are not automatically shared.
Whoops! That's right.
by sys49152
Sep 23, 2009 21:05
Forum: Beginners
Topic: Questions about Constants
Replies: 9
Views: 3782

Ok, so VAR Declares a variable whose type is implied from the initializer expression. but how is it different to do VAR UP_KEY = 75 rather than do DIM SHARED UP_KEY AS INTEGER UP_KEY = 75 ? Its not different. Its just shorter to write. I think its there to make freebasic more compatible with other ...
by sys49152
Sep 23, 2009 20:33
Forum: Beginners
Topic: Questions about Constants
Replies: 9
Views: 3782

Re: Questions about Constants

I am building a program framework to put all the peices of my masterpeice in, and I have a question. I want to load a txt file that holds my users preferences, then define the keys for the game based on those preferences. I currently have the keys defined as CONSTants, but if the player changes the...
by sys49152
Nov 24, 2008 14:01
Forum: Windows
Topic: DirectSound
Replies: 4
Views: 2286

seems to work pretty good.. I am having some trouble understanding it though. I am a newbe though. For instance when I try to comment out some of the graphics stuff WindowTitle("MyWindow") I start getting errors. hopefully I will figure this stuff so that I can use it.. the window name mu...
by sys49152
Nov 23, 2008 16:43
Forum: Windows
Topic: DirectSound
Replies: 4
Views: 2286

DirectSound

hi I decided to learn directsound. This is a working prototype that runs fine for me(windows xp). Could you try it and tell me if it works for you? It should play a soft sinus wave sound in 4 seconds printing a timer and then printing "Ready." and nothing else. Else it prints an error. #In...
by sys49152
May 15, 2008 23:39
Forum: Beginners
Topic: 3D Starfield Problem
Replies: 4
Views: 1893

minimal fix.. to make it work in 18.5 'Option Explicit 'Option Static Const MAX_STAR=5000 Const STAR_SPEED=1 Const WIDTHS=640 Const HEIGHT=480 Dim Shared star_x(MAX_STAR) As Integer Dim Shared star_y(MAX_STAR) As Integer Dim Shared star_z(MAX_STAR) As Integer Dim Shared c As Integer Dim Shared col A...
by sys49152
Apr 08, 2008 9:10
Forum: Beginners
Topic: running without dll
Replies: 1
Views: 1649

running without dll

How do i run a program if the dll it uses does not exist?
by sys49152
May 08, 2007 0:26
Forum: Windows
Topic: directx...
Replies: 2
Views: 2201

directx...

I installed FB-v0.17b-may-01-2007-testing-win32 My programs does not run directx-fullscreen any more. Insted it uses gdi-fullscreen. This works... #include"fbgfx.bi" dim driv as string driv="directx" screencontrol fb.set_driver_name,driv screen 18,,,FB.GFX_WINDOWED sleep end This...
by sys49152
Apr 12, 2007 13:03
Forum: Libraries Questions
Topic: SoundLib?
Replies: 3
Views: 3105

SoundLib?

What soundlibrarys do you have in youre system?

I have Directsound and OpenAL.
by sys49152
Feb 09, 2007 22:42
Forum: General
Topic: Pen
Replies: 3
Views: 1951

..

Hmm.. looks complicated to use.
I was hoping it would be something more simple.
Well, thankyou anyway.

---
Yes.. 49152 is a start-address of 4kb free memory.
and also was the start-address to my first MLprogram.
by sys49152
Feb 09, 2007 2:19
Forum: General
Topic: Pen
Replies: 3
Views: 1951

Pen

Hi

You know digital pen that you use when painting
on the computer. They are pressure sensitive.
How do i read the level of pressure in a
FreeBasic program? Is it a complicated thing to do?
by sys49152
Jan 23, 2007 18:18
Forum: Windows
Topic: unicode problem
Replies: 2
Views: 1623

Ok.. Thankyou.
by sys49152
Jan 23, 2007 17:26
Forum: Windows
Topic: unicode problem
Replies: 2
Views: 1623

unicode problem

hi

Wstring/Wstr only works in console mode?

This works..

Code: Select all

Print Wstr("åäö")
This works not..

Code: Select all

Screenres 320,240,32,1,0
Print Wstr("åäö")
Using WinXP,FreeBasic 0.16