Author Topic: Vector Library and WideScreen Asteroids  (Read 8406 times)

0 Members and 1 Guest are viewing this topic.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #30 on: February 07, 2020, 04:00:04 pm »
Another update to the .ZIP file in the original post. A few efficiency changes and the drop-down menu rewrite.

Yes Steve, excellent! I've tried implementing joystick control in my games in the past without success. I'll give your approach a go. Thank you :-)

Let me know Pete when you're ready for my PayPal account information for the bitcoins <cheesy grin>

Thanks everyone for the kind words. It was fun creating this program and library. I'm happy that others can learn from the code. I should have the documentation for the library finished in a few weeks.
In order to understand recursion, one must first understand recursion.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #31 on: February 07, 2020, 04:06:59 pm »
:D
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #32 on: February 07, 2020, 04:27:11 pm »
Programming isn't difficult, only it's  consuming time and coffee

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #33 on: February 07, 2020, 04:51:05 pm »
I grew up in the local coin-op arcades when I was a kid. I've never seen Blaster or even heard of it. It appears to be first person Defender. Even the sounds seem to be taken from Defender. Williams also made Defender so I suppose that makes sense. I'll bet that game was programmed on the 6809 processor, just like Defender and Robotron.
In order to understand recursion, one must first understand recursion.

Offline Qwerkey

  • Forum Resident
  • Posts: 755
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #34 on: February 08, 2020, 06:11:57 am »
Quote
Sorry I have been away for so long but...

Great to have you back, Terry.  Now the QB64 community is again complete.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #35 on: February 08, 2020, 03:22:31 pm »
Great to have you back, Terry.  Now the QB64 community is again complete.

:-))
In order to understand recursion, one must first understand recursion.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #36 on: February 08, 2020, 06:55:59 pm »
Hi Terry

in my country I met both Blaster both Defender when I was a boy, but the first game  was Space Invaders!
And after they came DigDug, Burger, Pacman... :-) time goes over!

Do you remember this one game? https://www.youtube.com/watch?v=dkt-p1-pENA
Nebulus! A pseudo 3D game.

PS I think that I take a look into your library waiting your official Help with examples.
Thanks to share
Programming isn't difficult, only it's  consuming time and coffee

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #37 on: February 11, 2020, 09:27:14 pm »
I updated the .ZIP file again with yet another bug that I found and fixed. If you made it to level 12 (which I just now did, holy cow) it would promptly crash. I didn't have the asteroid array set high enough. Silly bug, easily fixed.

Oh, and TempodiBasic, I am working on the docs. It takes time to create all the various example code snippets to go along with each command but I'm getting there :-)

I've attached an example of what the docs will look like (PDF).
* ObjFriction Subroutine.pdf (Filesize: 18.13 KB, Downloads: 226)
« Last Edit: February 11, 2020, 09:32:49 pm by TerryRitchie »
In order to understand recursion, one must first understand recursion.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #38 on: February 12, 2020, 05:06:41 pm »
Quote
I've attached an example of what the docs will look like (PDF).
I can say very good!
Programming isn't difficult, only it's  consuming time and coffee

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #39 on: March 03, 2020, 09:32:19 pm »
Always loved Asteroids even though I was never that good at it. I spend more time waiting for the game to reset than I cared to, so forgive me if I added the following hack to SUB ProcessKeys...

Code: QB64: [Select]
  1.             ELSEIF _KEYDOWN(20992) THEN
  2.                 Game.ships = Game.ships + 1
  3.  

No more waitin'... ;)

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #40 on: March 04, 2020, 03:06:34 am »
Hack away :-)  Love to see people make my code better for their purposes.
In order to understand recursion, one must first understand recursion.

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
Re: Vector Library and WideScreen Asteroids
« Reply #41 on: November 23, 2021, 03:23:29 pm »
Hack away :-)  Love to see people make my code better for their purposes.

@TerryRitchie
Your game is truly awesome! The visuals are gorgeous, the sounds are rich and immersive, and the movement & controls are fluid and responsive. It _feels_ like classic Asteroids, just better.

Do you document the vector format or otherwise have a utility program to draw or edit the game objects?

Also, there are a couple of mods that I always wanted to see in an Asteroids game. I'm not sure if any of these are within my skill (& free time!) range or would interest anyone else to take it up, but here goes.

I. ASTEROIDS COLLIDE WITH EACH OTHER
Maybe they smash each other apart or maybe they just bounce off each other.
But I always thought it kind of unrealistic that they just fly through each other.

II. GREATER VARIETY OF ASTEROID SIZES
Including really really big ones and really small ones.
How hard would it be to add asteroids of sizes
  • almost as small as the player's shots
  • 1/4 of the screen
  • 1/3 of the screen
  • 1/2 of the screen
  • 1x size of the screen (would completely fill the screen)
  • upto 2x or 3x the size of the screen
?
And the bigger ones wouldn't break up when the player shoots them.
Instead shooting at them digs a "tunnel" into them.
The player can fire into the asteroid and eventually fly through it.
In this way, the player can "cut" the asteroid in two.
These bigger asteroids wouldn't rotate very fast (maybe at harder levels) so the player doesn't have to worry about it moving rotationally as they fly through it.

III. 4-player Spacewar! variant where players battle (or cooperate) in the asteroids field. Atari sort of tried this with Space Duel but they left out some elements that made Asteroids so great (actual asteroids, the intense sounds like the deep rumbling of the ship's engines). Also a local multiplayer game for 4+ players makes it fun at a party!

I have a ton of other ideas stored up over the years for a game like this, but those are a couple of the less complicated ones.

« Last Edit: November 24, 2021, 10:51:34 pm by madscijr »