forums

TNT Basic Forums > Programming Q&A
Speed
< Last Thread     Next Thread >
Author
Thread        Post A Reply

04-20-2004 18:19

Posted by:
Stephen Lund

Location:
Michigan USA

Click Here to Email Stephen Lund   Find more posts by Stephen Lund

Hi all

I'm working on a game called Blast out!!!
and i'm using graphics mode and it works
but I need to use graphics mode hardware
but when I use it its WAY TOO SLOW

could you help me

Stephen

04-20-2004 22:17

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

I don't think there's much you can do. Either cope with the speed or go without hardware mode.

04-20-2004 22:50

Posted by:
puffin

Click Here to Email puffin   Find more posts by puffin

what kind of game is blast out? you probably don't need to be in hardware mode.

04-21-2004 21:59

Posted by:
Stephen Lund

Location:
Michigan USA

Click Here to Email Stephen Lund   Find more posts by Stephen Lund

It's a game where you are in a f-18 hornet, and you have to blow up the f-16 hornets and destroy there town before they destroy you, and I wanted to make an sprite looking down at your ship and it will rotate in the direction that you are pointing, and you need graphics mode hardware to make it rotate,

Stephen

04-21-2004 22:28

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

You could just pre-render all of the angles you want the ship to be able to turn. It's a bit tedious, but it works. All of the 2d computer games I've seen use pre-rotated and rendered images.

04-22-2004 03:11

Posted by:
CubeFusion

Location:
California, USA

Find more posts by CubeFusion

eekaydee, check out WingNuts for an example of how awesome a game that uses rotation and scaling extensively can look. They did some truly insane stuff with that game.

They didn't use TNT Basic of course, but many of the same techniques can be... ahem... borrowed for our own projects.

04-22-2004 17:42

Posted by:
charlie

Location:
norfolk, england

Click Here to Email charlie   Find more posts by charlie

ive been making a vertical shooter in hardware mode and found that by shrinking dovn the size of the area that the game is drawn too is the best way of speeding stuff up.

my game uses just over half the screen in a vertical window in the center of the screen, and my framerate was around 20fps. now it is 40fps.

instead of writing GRAPHICS MODE 640,480 i wrote GRAPHICS MODE 360,480.

the program automatically centers the drawn area on the screen, and i doubled my framerate.

this may be of no use to you, but it sure helped me!

cheers
charlie

04-22-2004 22:18

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Actually, I had wingnuts in mind when I said that about prerendered images.

I didn't know TNT automatically adjusts the drawing for you.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.