Page 1 of 2

Arcade Classic

Posted: Mon Sep 08, 2003 6:06 am
by Paul
I had a bit of relaxation time this afternoon so I decided to whip up another little game in PureBasic.

This is my tribute to Atari's old arcade classic Asteroids.

http://www.reelmediaproductions.com/tributoids

Enjoy! :)

Posted: Mon Sep 08, 2003 6:27 am
by Dreglor
nice...
can i sak why do the astroids have brighter spots on there vertex's? is that the look of atari?
or somthing

Posted: Mon Sep 08, 2003 6:32 am
by Paul
That's what the old 80's vector graphics looked like.

Guess you didn't grow up in the arcades? :)

Posted: Mon Sep 08, 2003 6:37 am
by Karbon
That in an afternoon? Atari style or not that's impressive..

Love the game!

Posted: Mon Sep 08, 2003 12:22 pm
by Skipsy
Impressive !!!

It really looks like vectrex... A lot of memories. I just realize I am so
old :cry:

Posted: Mon Sep 08, 2003 8:41 pm
by benny
Uhh ...

again ... very nice and damn old-schoolish ... that's a perfect 1:1 copy of the original. Wish you (or better us :wink: ) more relaxation time in the afternoons !

Good work, Paul.

Greetings,

benny!

Posted: Mon Sep 08, 2003 9:07 pm
by GPI
This time All work perfect...

btw: I reload Dewline again. Can it be, that you installer doesn't have a CRC-Check? Because this time, i had a backgroundimage. ANd Music AND FX don't work, but when i only select FX, all work.

GPI

Posted: Mon Sep 08, 2003 9:21 pm
by Paul
@ GPI

I uploaded a small change with DEW.Line which checks the OS and displays a normal Window if the OS is 98 or lower, that is why the windows is no longer garbled. (2K and XP get a fancier window)

As for the audio, all I do is InitAudio()
If it fails, then is disables the FX it in the game.

Maybe your sound card is unable to play multi music at the same time? (Both MOD's and WAV )

Posted: Mon Sep 08, 2003 9:25 pm
by Paul
@ Benny

Thanks, but it's really not a 1:1 copy.
(I didn't have that much time, or patience :) )


It is quite fun to play though. Anyone beat my high score yet?

Posted: Wed Sep 10, 2003 2:24 am
by waffle
it seems to crash on the second level when i play.
using XP here.

also, been tinkering with HS to. It seems that PB has a problem with you transparent color for your sprites. By using clip sprite and removing the last 2 pixcels around the sprites, they come out pretty good. I also raised the chopper speed from 1 to 4. I know, thats too easy, but i like it better that way. Also, HS sometimes doesn't let me coninue after I die. The level boss doesn't re-appear, so i can't kill him to proceed.

No Prob tho. I'll fix it next time i need another diversion. Your code is easy to follow. Thanks for the games. Wish I had a few PB ones to share. The only good ones i have are in DB. You can check them out from my website. My favorite is BallShoot

Designed just to compare CPU speeds from dif PC. Just happens to be fun too. Its old though. The Shoot2D is freds game, modified slightly. It seems the best games are the ones everyone copies from to learn new things.

Posted: Wed Sep 10, 2003 2:42 am
by Dreglor
That's what the old 80's vector graphics looked like.

Guess you didn't grow up in the arcades? :)
well i was born just as the 80's were leaving (87)

Posted: Wed Sep 10, 2003 5:36 am
by Paul
Hi waffle,

I had actually just posted a revised version that uses no Sprite3D commands (seemed silly to need a fancy 3D accellerated card to run such a simple game) and also fixes a crash that could occur when a pixel is drawn outside the 640x480 screen.

The docs say that 2D commands are clipped but it fails to mention that the only command this does not apply to is Plot(). You cannot plot a point off the screen or PB will crash.


As fo Hostile Skies, that problem was fixed a long long time ago. The updated source was never posted though. I had missed resetting a counter so the "boss" was never put back in his proper place when a new game was started. ;)
As for sprite problems, I've never encountered any. Maybe you experience video card or video driver problems? Who knows? :)

Posted: Wed Sep 10, 2003 11:13 am
by waffle
Graphics card Prob? yah, who knows, could be anything.

i'll check out the new version of asteroids later. I sorta miss vecter graphics, sometimes called turttle graphics. I liked it as it was fun to practice using equations to describe objects. I even devised my own 3D graphics based upon vector graphics.... Seems such a waist now that we have real 3D objects, but it gives me apreciation for 3D engines.

heres a simple problem they must solve...
take a line X,Y,Z, to X2,Y2,Z2
assume a point of view from X3,Y3,Z3
convert the line to 2D and draw it to the screen

I solved that back in 1993, but concider this:
Attach a bitmap to that line
Not too much harder, as a bitmap is just a series of lines too,
Now trace these lines to the screen below the line.

That starts to get hard because:
1 - how is a bitmap formatted (all are slightly different)
2 - which bitmap goes in front?

I stopped at just simple lines. I also remmber thats what was used for
BattleZone in the arcade, and Space War, and a few others.

glad i don't need to worry about that stuff anymore.
Oh, I of course used that for my first 3D game in Win3.1
A space sim. Coded in VB.

Posted: Sat Sep 13, 2003 9:38 pm
by GPI
hmm, Do i only have the problem, that the player-ship explodes before the astorids can hit it?

And how big are the chance that you release the sourcecode. I miss some things:
* 2 Player-Modus (Koop: It is not possible to shot the other player and Battle) Maybe the second player should be i a diffrent color (yellow?)
* Joystick-Support.

GPI

Posted: Sat Sep 20, 2003 7:52 am
by Marcus
Excellent
:D