Search found 416 matches

by Ophelius
Apr 15, 2010 1:22
Forum: Tips and Tricks
Topic: Plasma Effect
Replies: 12
Views: 1983

Plasma Effect

Here's an attempt at some plasma. I just started learning about how to do this today, so it's unoriginal and unoptimized. You'll need the Allegro 4.0 dll if you haven't got it: http://www.dlldll.com/downdll/7417.html #include "Allegro.bi" DECLARE SUB Shift_Pal () DIM SHARED AS INTE...
by Ophelius
Apr 14, 2010 21:08
Forum: General
Topic: How did you start learning?
Replies: 21
Views: 3848

Good luck on your project David. I hope you succeed at creating your rpg/d&d game. My first attempts were far less daunting. My first attempt was to create a choose your own adventure game. It had no structure, was a terrible mess of spaghetti code, and I failed(I'm not saying you will). I would...
by Ophelius
Apr 14, 2010 0:29
Forum: General
Topic: Palette Interference
Replies: 2
Views: 593

I think it was my Auto wallpaper changer running in the background. Every 10 minutes it would change the desktop wallpaper, so I think it would access the palette. I turned it off and it seems to have stopped. Once it changed the Entire palette, so moving my colors away from 0-15 and 240-255 won't p...
by Ophelius
Apr 13, 2010 19:05
Forum: General
Topic: How did you start learning?
Replies: 21
Views: 3848

When I was 16, my friend handed me a piece of paper with a few lines of Qbasic code on it and told me to type it in, and hit F5. I never knew what programming was or ever heard of it, but I did what he told me. It blew my mind when I ran it (I think it was a simple input that printed out some funny ...
by Ophelius
Apr 13, 2010 18:51
Forum: General
Topic: Palette Interference
Replies: 2
Views: 593

Palette Interference

My game runs in 8-bit and I never make any calls to edit or alter the palette at any time, but sometimes I hear some brief disk reads and then my palette has some colors that are changed, mostly slots 0 to 7 and 250-255. I think Windows is doing this, so how can I prevent this? I'm not using all 256...
by Ophelius
Apr 08, 2010 3:41
Forum: General
Topic: Code optimization
Replies: 4
Views: 780

LUTs in a machine with an FPU is useless. Use only LUTS when you need to calculate multiple trig values in one call. ie. Plasmas. Trig Luts are only used for machines with no FPU. When you say one call, do you mean one Frame, one line, what? I'm guessing all computers these days have floating point...
by Ophelius
Apr 08, 2010 2:19
Forum: General
Topic: Code optimization
Replies: 4
Views: 780

Code optimization

I'm trying to optimize my code and thought that creating a lookup table for trig functions would greatly optimize calculations(especially when I'm making several of those calculations per frame). I wrote up some test code to see how much better it would be: DIM SHARED AS SINGLE SINE(-10000 TO 10...
by Ophelius
Apr 06, 2010 5:56
Forum: General
Topic: ScreenInfo function
Replies: 2
Views: 563

Ahh, good point. Even a 1/10th second test is plenty of time to check that.
by Ophelius
Apr 06, 2010 3:46
Forum: General
Topic: ScreenInfo function
Replies: 2
Views: 563

ScreenInfo function

Is it guaranteed that this function will always return the desktop Refresh rate on any system? If not, is it only certain video cards that will work? Thanks Edit: Also, is there a way to detect if someone has their Vsync turned on/off? Some video cards have that option and some people prefer to have...
by Ophelius
Apr 05, 2010 0:13
Forum: Libraries
Topic: [Allergo] Collisions?
Replies: 2
Views: 937

To get a bounding box to work correctly, you have to check if any of Sprite1's opposite corners are inside Sprite2's bounding box, OR if Sprite2's opposite corners are inside Sprite1's bounding box. That's because if you are only checking Sprite1's corners, and if Sprite1 is larger than Sprite2, and...
by Ophelius
Apr 02, 2010 20:16
Forum: Beginners
Topic: Program Structure (or layout)
Replies: 7
Views: 947

That's a good guide and my programs usually always end up looking that way, but don't follow it religiously. There's cases where I had small variations of that for specific reasons. Let your reason tell you how to structure it in the most optimal way.
by Ophelius
Apr 01, 2010 22:04
Forum: Libraries
Topic: [Allergo] Timer?
Replies: 9
Views: 1325

I noticed you're trying to use the Allegro timer routines. I find them confusing, so I made my own. Save the following code into a new file and call it something like 'Timer.bi': TYPE Timer_Type S AS DOUBLE 'Start time Delay AS DOUBLE 'Pause length between ticks END TYPE DECLARE FUNCTION TimeDif ...
by Ophelius
Apr 01, 2010 21:52
Forum: Libraries
Topic: [Allergo] Timer?
Replies: 9
Views: 1325

I'm not sure why, but you should change that to this: ' main loop DO If Key(KEY_ESC) Then SHUTDOWN Move_Player ' Move the Daft Dog..heh heh Render_Sprites ' Draw everythings LOOP Function Shut_down ' delete the bitmap destroy_bitmap(buffer) destroy_bitmap(Background) destroy_...
by Ophelius
Mar 30, 2010 3:40
Forum: Game Dev
Topic: Now Blitz Basic??? I am so Confused so much Info!!!
Replies: 28
Views: 8887

I just checked out BlitzMax(2D) and must admit it looks great for making 2D games. Here's what it supports:

http://www.blitzbasic.com/Products/blitzmax.php

If you just want to make games, I don't see why this wouldn't be a great option. I might try it myself.
by Ophelius
Mar 29, 2010 22:02
Forum: Game Dev
Topic: Now Blitz Basic??? I am so Confused so much Info!!!
Replies: 28
Views: 8887

You might want to check out Microsoft's XNA Game studio too. I don't know too much about it, but it looks promising. You can program XBox 360 games with it on top of PC games.

Go to advanced search