-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|50|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




mike_g

#152 - The Invader Challenge

21st May 2008

Heres one I made a while back, never got around to completing it tho.
[code]Graphics 320, 240, 32, 2
SetBuffer BackBuffer()
Const NUM_STARS = 120
Const DARKEN = 10
Const TRAIL_SIZE = 5
Const PIC_PLAYER = 1
Const PIC_GREENIE =2
Const PLAYER_SPEED *snip*


mike_g

OpenGl Linking Woes...

18th May 2008

No worries. So, did you get it working in the end?


mike_g

OpenGl Linking Woes...

17th May 2008

The when you reach the 'break' keyword it causes it to exit from the switch statement. What you are doing at the moment is something like:
[code]switch(msg)
{
case something:
// Do something
break;

setupOpenGL(); // <- This *snip*


mike_g

OpenGl Linking Woes...

17th May 2008

First off, its really hard for other people to read your code if you dont indent properly. In this section of code:
[code] switch (msg)
{
//setup of openGL
/*create WGL render context here and then the code should work*/
/* PIXELFORMATDESCRIP*snip*


mike_g

OpenGl Linking Woes...

17th May 2008

What errors do you get? I havent used OpenGL myself yet, but are you sure you are linking it to your project in the ide?
Its in something like:
Project->Project Options->Parameters
Then you have to add one or more lines to the linker. Its has to start*snip*


mike_g

USM-like 3D rectangles/buttons

17th May 2008

I wrote this off the top of my head (I dont have blitz installed), hopefully it should work. You might want to pre-draw you buttons to a surface to save redrawing each loop too as that should be faster.
[code]Function DrawButton(x, y, w, h)
Color(15*snip*


mike_g

Constructor and arrays in types?

14th May 2008

Techincally speaking, constuctors don't exist in Blitz; its an OOP feature. That dosent mean to say you cant imitate them, in fact you should as usually when you create objects you want them initailised somehow. I reckon the best way to do this would be to*snip*


mike_g

Sams C++ in 24 Hours and Borland C++ BuilderX Problems

10th May 2008

The netbeans C plugin was one of the things I planned on having a play around with but never got round to. I heard you have to specify a compiler and debugger path, but that shouldent be too hard.
By the GCC/G++ speed thing I was refering to compile time,*snip*


mike_g

Sams C++ in 24 Hours and Borland C++ BuilderX Problems

10th May 2008

[quote]Just to put it out there, as some more alternatives Emacs with GCC and G++ was a pretty good combination back when I used Ubuntu. Emacs in a terminal is probably my favourite text editor. On Windows you can get them through CygWin but I often go all*snip*


mike_g

Sams C++ in 24 Hours and Borland C++ BuilderX Problems

9th May 2008

I wouldent use a borland IDE. My college has them installed and they suck. Also not many people use borland anymore. DevC++ hasent been worked on for some time now, but its a very nice simple IDE.


mike_g

Sams C++ in 24 Hours and Borland C++ BuilderX Problems

9th May 2008

It could be Vista; Vista broke/mangled backwards compatibility in many ways.
I have the same book that came with the same compiler. I got fed up with the silly registration process so I switched to using Dev-C++ instead.
Dev-C++ is lightweight, it does*snip*


mike_g

#149 - The Logic Puzzle Challenge

30th April 2008

Lol, I was hoping no-one would notice that. Lets keep this a secret ok!? ;)


mike_g

#149 - The Logic Puzzle Challenge

30th April 2008

Nice game :)


mike_g

Dual Pentium IIIs

30th April 2008

[quote]Those EeePC's are a hot item nowadays! you happy with yours?[/quote]
Yeah its very handy even fits in my pocket (my jacket has a big pocket in it). The screens only 7 inches and the low 800 * 480 res is probably its worst aspect. Still, the dot pit*snip*


mike_g

Dual Pentium IIIs

29th April 2008

Yes, windows has better driver support without a doubt. That said i have recently found an exception.
I got an eeePC about a month back; the first thing I did was install eeeXubuntu. Its basically Ubuntu packaged w/o some of the more bloated components a*snip*


mike_g

Dual Pentium IIIs

28th April 2008

[quote]I agree, and one of the main reasons things 'Just work' Is that Apple can design exactly how their hardware works, as windows needs to support loads of different hardware, but OSX doesn't.[/quote]
I don't like that slogan; it so pat*snip*


mike_g

Newbie in need of help

28th April 2008

Ok, heres a bit of your code:
[code]If Bomberx = FighterJety
DrawImage (EProjectile,Bomberx,Bombery)
Flip
EProjectiley = EProjectiley + PROJECTILESPEED
End If[/code]
It looks as if you are drawing your projectile at the bombers location.
You th*snip*


mike_g

News and shit..

26th April 2008

[quote]CodingMonkey(aka PowerMousey's last remaining chance) and Yo!Wazzup, have both been banned, for.. well Lots of things.. But mostly for using this site to formulate an attack on Syntax Bomb.[/quote]
IMO you were already way too lenient with powermou*snip*


mike_g

Encryption

22nd April 2008

yes, it sets the c2 pointer because the assignment is at the same time as the declaration. In other circumstances it would assign the memory address of c1+1 to what c2 points to.
So far I don't really see a point in using 'register' variables. In my exper*snip*


mike_g

Dual Pentium IIIs

21st April 2008

Wasent It was motorolla that used to do the Mac chips? And yeah, apparently they couldent be bothered with macs as there was more money in phones and shit, and of course, macs suck.
So, apple had no-one left to go to but Intel. I'm sure they wouldent ha*snip*


mike_g

Dual Pentium IIIs

20th April 2008

If you havent got a stream processor then running folding@home is going to be a waste of electricity. A cell processor, or modern GPU is ideal for this sort of stuff.


mike_g

Copy Protection

11th April 2008

[quote]Copy Protection doesn't work but it does deter (a few). I think the best copy protection schemes I have ever seen are ones which are aimed to make it more difficult or annoying to copy the game rather then aiming to make it impossible. Like the old *snip*


mike_g

Copy Protection

11th April 2008

Lol, the Adobe copy protection is useless. You chose to register by phone and crack it to stop it communicating with adobe and use any activation code. Not that I'm a pirate - I don't need to be. The gimp does everything I want as far as photo editing goes*snip*


mike_g

sine wave animation?

2nd April 2008

This is about as crude as you can get, but with a little work you could probably turn it into something that looks nice:
[code]#include "SDL/SDL.h"
#include <math.h>
#define GRAPHICS_WIDTH 256
#define GRAPHICS_HEIGHT 256
#define BITDEPTH 32
#define D*snip*


mike_g

large numbers in blitz...

28th March 2008

Well the sectors thing is pretty much what a bignumber library does anyway. W/o a bignum library you would need to implement your own carry system if you want say get distances and do other cross sector calculations. Personally I'd use an existing bignumbe*snip*

Newer Posts More - Older Posts