Search found 416 matches

by Ophelius
Apr 19, 2010 18:27
Forum: Tips and Tricks
Topic: Plasma Effect
Replies: 12
Views: 1981

Could be because he's allocating memory for his Luts and Palette with the NEW function. I don't understand why he did that when a simple DIM would work fine. Is it speed increase Rel? So maybe that doesn't work in Linux.
by Ophelius
Apr 18, 2010 22:24
Forum: Libraries
Topic: [Allergo] Passing different pointer types?
Replies: 5
Views: 1157

It's hard to tell without source code. Are you passing a Bitmap Pointer(your buffer)? Or are you trying to pass something else at any point? If you're only going to be using 1 buffer throughout the game, then don't even bother passing it to your routines. Just make it global: DECLARE SUB Explosion &...
by Ophelius
Apr 18, 2010 22:14
Forum: Projects
Topic: Games: Artillery Wars - with net play... and Lemmings clone.
Replies: 11
Views: 4689

Cool, I love games like Scorched Earth. Suggestions: -Add a delay when you hit something so we can see the explosion. It jumps back to my tank as soon as it hits something. If it would jump back 1-2 seconds later it would be better. -Make the ESC keypress a full press to activate the escape sequence...
by Ophelius
Apr 18, 2010 21:27
Forum: Libraries
Topic: [Allergo] Passing different pointer types?
Replies: 5
Views: 1157

You have to declare what type of variable you're passing to the sub: DECLARE Sub explosion (Scr_Buf AS BITMAP PTR, x, y, finalcolor) Sub explosion (Scr_Buf AS BITMAP PTR, x, y, finalcolor) 'code END SUB You're trying to pass a pointer, but by not explicitly declaring it that way, fre...
by Ophelius
Apr 18, 2010 21:09
Forum: Libraries
Topic: [Allergo] Examples?
Replies: 13
Views: 2420

It doesn't have to be pacman or tetris. These are just ideas. Come up with something that will challenge you a bit, but not too hard that would make it too frustrating. I think the Defense game would be a good first step. If you run into trouble, just ask for help.
by Ophelius
Apr 18, 2010 20:45
Forum: Libraries
Topic: [Allergo] Examples?
Replies: 13
Views: 2420

Sure, a tank game is fine, though might be a bit more challenging. Maybe a pacman or Tetris clone? Those are always great challenges for beginners.

Edit: Thanks for compiling everything. The Defense game you have looks promising. Why don't you continue with that?
by Ophelius
Apr 18, 2010 20:18
Forum: Libraries
Topic: [Allergo] Examples?
Replies: 13
Views: 2420

It's AlleGRO, not AllERgo hehe ;) I checked out your examples. Nice attempt, you're on your way. There's a lot of improvements I can suggest and many flaws in your code, but don't give up. Here's a challenge: You should make 1 larger Demo that displays many of your skills instead of many smaller one...
by Ophelius
Apr 18, 2010 17:41
Forum: General
Topic: Passing multidimensional arrays / helpers / (Solved)
Replies: 4
Views: 1146

Passing a muti-dimensional array to a subroutine is the same as passing any other array. Just pass it with the brackets: declare sub MySub(a() AS INTEGER) DIM c(2,2,2,2,2) AS INTEGER c(1,1,1,1,1) = 5 MySub c() sleep SUB MySub(a() AS INTEGER) pr...
by Ophelius
Apr 18, 2010 17:04
Forum: Game Dev
Topic: simple racing demo
Replies: 4
Views: 1897

I tried again and this time got some sort of track, but the mouse was really sensitive and made it unplayable. I can see where you're going with this. It has potential to be lots of fun if you can make it into a functioning user-friendly system.
by Ophelius
Apr 18, 2010 16:41
Forum: Tips and Tricks
Topic: Plasma Effect
Replies: 12
Views: 1981

Thanks for that. I converted it to FB for you. Looks real cool. Though I don't know the DS's screen res and what the U8 and U16 meant, I had to improvise, so I think there might be issues with that. The palette was pretty dark, so you'll notice I multiplied it by 8 to get it brighter. I'm sure it's ...
by Ophelius
Apr 17, 2010 20:33
Forum: Game Dev
Topic: simple racing demo
Replies: 4
Views: 1897

The menu selection is very user unfriendly. I couldn't figure out how to actually get the game going, let alone figure out what all the options where for. Also, some mouse's don't even have a middle mouse button, so you might consider not using that as an input function. Maybe make a keyboard input ...
by Ophelius
Apr 17, 2010 18:59
Forum: Libraries
Topic: [Allergo] Examples?
Replies: 13
Views: 2420

Check out http://www.mediafire.com/

You don't need an account to upload files. Just package all your files into a Zip file and upload it there. Then post the link here that they give you.
by Ophelius
Apr 17, 2010 5:16
Forum: Tips and Tricks
Topic: Plasma Effect
Replies: 12
Views: 1981

I've studied the metaballs code and it's easier than it looks. You had a more complicated Plasma+metaball example too. I was stunned by the plasma in the background. How do you go about finding good equations for a plasma. Yours looks really complex. Do you just stumble on one by trying different nu...
by Ophelius
Apr 16, 2010 22:05
Forum: Libraries
Topic: [Allergo] Examples?
Replies: 13
Views: 2420

I would like to see them. I know you've been working hard at learning Allegro. Why don't you upload them to some file sharing site and post the link here. That way people can download them if they want. ;)
by Ophelius
Apr 15, 2010 3:54
Forum: Tips and Tricks
Topic: Plasma Effect
Replies: 12
Views: 1981

Thanks Rel, that helped a lot. I updated my code to use both palette shifting and plasma movement. The effect is really cool: #include "Allegro.bi" DECLARE SUB Shift_Pal () DIM SHARED AS INTEGER SCR_W = 500, SCR_H = 200 DIM SHARED AS RGB Pal(0 to 255), Temp_Col DIM SHARED B...

Go to advanced search