Arcade Classic

Advanced game related topics
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Arcade Classic

Post 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! :)
Image Image
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post 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
~Dreglor
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

That's what the old 80's vector graphics looked like.

Guess you didn't grow up in the arcades? :)
Image Image
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

That in an afternoon? Atari style or not that's impressive..

Love the game!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Skipsy
User
User
Posts: 98
Joined: Wed Apr 30, 2003 12:26 pm
Location: France

Post by Skipsy »

Impressive !!!

It really looks like vectrex... A lot of memories. I just realize I am so
old :cry:
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post 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!
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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 )
Image Image
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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?
Image Image
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post 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.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post 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)
~Dreglor
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post 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? :)
Image Image
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post 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.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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
Marcus
User
User
Posts: 20
Joined: Thu May 08, 2003 9:35 pm

Post by Marcus »

Excellent
:D
@+
Marcus
Post Reply