Death Star vs Asteroids

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Hi davido,

You are most welcome, thank you for your comments and support.

------------------------------------------------

Updated:
- added Program Parameter option: nointro
- added a Help window: [ H ] KEY
- optimized parts of the code

NB*: While testing the game on an older system, disabling the introduction was a needed option; set the [ nointro ] parameter within a shortcut.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Updated:
- some minor improvements
- squashed a couple bugs
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Updated:
- added a rudimentary volume control
- some minor improvements to the intro
- some minor improvements to the Help window
- squashed a small bug

Image
Last edited by JHPJHP on Tue Apr 05, 2022 5:18 pm, edited 3 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Updated:
- minor improvements

Minor Improvements
Varied asteroid sizes, asteroid smoke, Death Star explosions, scoring and health numbers.

NB*: Invading Space Aliens has also been updated.
Last edited by JHPJHP on Tue Mar 22, 2022 4:12 pm, edited 2 times in total.
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: Death Star Vs Asteroids

Post by BarryG »

JHPJHP wrote: Sat Oct 21, 2017 8:30 pmNB*: A couple hours after your post, I squashed a couple more bugs.
Very next post:
JHPJHP wrote: Fri Oct 27, 2017 10:49 amUpdate rolled back.
LOL, ain't that the truth! Not mocking you; I've been there, too.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Hi BarryG,

Wow, the posts you're referring to are from 2017, but like all thing programming past is prologue.

Lets all hope for a future with more steps forward and less steps [rolled] back :)
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: Death Star vs Asteroids

Post by BarryG »

This topic showed up as "New" when I visited (due to your post yesterday), and I didn't notice the dates when I scrolled through the full topic.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Updated:
- minor improvements
- patch a small bug

Not a rollback, but a bug caused by my recent round of updates :mrgreen:
Last edited by JHPJHP on Fri Mar 25, 2022 4:56 pm, edited 1 time in total.
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Death Star vs Asteroids

Post by Caronte3D »

Nice! :D

Tip:
If you use an unshaded sphere for the death star and put a static spherical gradient (with alpha) over it, you will get a pseudo 3d effect, because the specular will keep the direction of the light when the death star rotate 8)
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Hi Caronte3D,

Thank you for your post, what a great suggestion...

First, a couple examples from PureBasic Interface to OpenCV were needed to "ready the Death Star".
- cv_gamma.pb was used to remove shade from the original Death Star image
- cv_enhance_detail.pb was used to bring back the detail flushed out when the image was unshaded

Next, I tried creating a spherical gradient using PureBasic internal commands, but all my attempts fell short.
I ended up finding a suitable image on the net.

Finally, to make it a bit more interesting, light direction is determined by the location of the "light source" from the random background images. In addition, the intensity of the light is randomized.

-------------------------------------------

Updated:
- subtle but effective change to the Death Star as suggested by Caronte3D
Last edited by JHPJHP on Wed Mar 23, 2022 5:17 pm, edited 2 times in total.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Death Star vs Asteroids

Post by IceSoft »

@JHPJHP,
There are NO free executables on your "My PureBasic Stuff" page!
I dont want pay for a blind date with your "xyz" stuff.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Hi IceSoft,
IceSoft wrote:I dont want pay for a blind date with your "xyz" stuff.
Nor should you.

Everything under the FREE STUFF menu option is available to download without an access key. When you click anyone of the menu item links an information window opens... be patient, an option to download the selected file will pop up within a short period of time.

NOTE: Some files may take longer depending on the size of the download.

Please let me know if you have any trouble with anyone of the downloads.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Death Star vs Asteroids

Post by IceSoft »

Image
Counting down...but no download link there after counting is done.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Death Star vs Asteroids

Post by JHPJHP »

Hi IceSoft,

The download must be initiated from the FREE STUFF drop down menu...

Image
Last edited by JHPJHP on Wed Mar 23, 2022 5:57 pm, edited 1 time in total.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Death Star vs Asteroids

Post by IceSoft »

Sorry. Download works.
The browser (Cliqz) which im using show not the download stuff
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Locked