Page 1 of 4
Death Star vs Asteroids
Posted: Tue Oct 10, 2017 4:26 am
by JHPJHP
Re: Death Star Vs Asteroids
Posted: Tue Oct 10, 2017 4:29 am
by JHPJHP
Hi fellow forum members,
This is another retro-style game developed in boredom, still unfinished, but playable.
The first level is slow, designed to get the player used to the controls, but the subsequent levels quickly get crazy.
Minimum work required to complete the game include an opening and ending screen, the ability to pause, ...
Hope you enjoy
NB*: Applied minor updates to Invading Space Aliens.
Re: Death Star Vs Asteroids
Posted: Tue Oct 10, 2017 1:31 pm
by IdeasVacuum
oh oh "but the subsequent levels quickly get crazy" - I struggled with the 'fast' speed of Invading Space Aliens.

Re: Death Star Vs Asteroids
Posted: Wed Oct 11, 2017 7:41 am
by JHPJHP
Hi IdeasVacuum,
IdeasVacuum wrote:I struggled with the 'fast' speed of Invading Space Aliens.
I heard the same critique from a few family members this weekend...
While I was creating the game, I played it so much that I am now able to reach level 10; I was finally better then my younger brother at a video game
-------------------------------------------------------------
Updated:
- added the ability to pause the game
- switched out a couple images
- optimized and improved parts of the code
- squashed some bugs
Re: Death Star Vs Asteroids
Posted: Thu Oct 12, 2017 2:43 am
by JHPJHP
Updated:
- revised game play, reducing chaos
- added a new transition effect between levels
- applied some minor improvements
CONTROLS
- Left | Right Arrow Keys: Rotate Death Star
- Spacebar: Shoot Asteroids / Unpause Game
- Enter Key: Pause Game / Unpause Game
NB*: The game will auto-pause if the window loses focus.
Re: Death Star Vs Asteroids
Posted: Thu Oct 12, 2017 10:08 am
by Kwai chang caine
Hello JHPJHP
I don't understand, i run your code and nothing is happened

Perhaps my configuration ? W7 X86 v5.61 X86

Re: Death Star Vs Asteroids
Posted: Thu Oct 12, 2017 5:55 pm
by JHPJHP
Hi Kwai chang caine,
Thank you for trying the code and reporting the problem.
I have narrowed it down to the Function
RegisterFontFile...
... For the tests I have performed, if
Microsoft Word was running before the font file was registered, the program would "freeze" at command-line 41.
- closing
Word released the process and allowed the program to continue
Test Environment:
- Windows 10 64 bit
- PureBasic x32 / x64
- Microsoft Office 2016
NOTE: This is also a problem for
Invading Space Aliens.
NB*: There may be other Microsoft products that cause this problem (i.e. Outlook using Word as an email editor).
Re: Death Star Vs Asteroids
Posted: Thu Oct 12, 2017 8:33 pm
by davido
@
JHPJHP,
Another great game. Thank you for sharing.
Looks great on my PC (Windows 10 x64), even though Office 365 is installed, it works perfectly.
Also looks great on the Mac. There is one problem though:
The DeathStar moves once the arrow button is up.
It moves up the screen vertically when the Left-Arrow button is lifted, down the screen vertically on lifting the Right-Arrow button.
Shots still emanate from the place where the DeathStar should be.
Oh, I should add that the DeathStar returns to its correct position when an arrow key is depressed.
While the arrow key is down the DeathStar rotates....
It is even possible to shoot under these conditions.

Re: Death Star Vs Asteroids
Posted: Fri Oct 13, 2017 4:49 am
by JHPJHP
Hi davido,
Thank you for the positive comments, and for the OSX information.
-------------------------------------------
Updated:
- fixed the OSX problem reported by
davido
- worked-around the Windows problem reported by
Kwai chang caine
- applied some minor enhancements
NB*: Also updated Invading Space Aliens; better compatibility in OSX, squashed some bugs.
Re: Death Star Vs Asteroids
Posted: Sat Oct 14, 2017 7:29 pm
by davido
Hi
JHPJHP,
Works perfectly now, thank you.
As a matter of interest, did you actually check this on a Mac or did you just know it would work?
Re: Death Star Vs Asteroids
Posted: Mon Oct 16, 2017 11:29 pm
by JHPJHP
Hi davido,
Thank you for letting me know that the fix worked for you.
davido wrote:As a matter of interest, did you actually check this on a Mac or did you just know it would work?
I only did a few tests in OSX, but none in Linux, so it was good to hear that it worked outside of my environment.
-------------------------------------------------------------
Updated:
- added an introduction based on
code written by
DK_PETER
- included the
IsIDE() Macro writen by
skywalk
-
optimized and improved parts of the code
The introduction requires the
Engine3D binary. If the file is not included with the compiled source code, the introduction will be skipped, but the game will still play.
NOTES:
- the introduction can be skipped using the
Spacebar
- press the
Enter Key to start a new game (only after Health = 000)
NB*: 5 asteroid hits after Health = 000 the Death Star explodes, followed by a new sound effect.
Re: Death Star Vs Asteroids
Posted: Tue Oct 17, 2017 3:05 pm
by Kwai chang caine
Re: Death Star Vs Asteroids
Posted: Tue Oct 17, 2017 8:31 pm
by JHPJHP
Hi Kwai chang caine,
I am glad it worked for you.
Thank you for the great post; I really enjoyed the dancing
Darth Vader.
The opening "movie" effect is mostly thanks to the
code written by
DK_PETER.
----------------------------------------------
Applied a small update; modified the sprite layers so that the Energy Pulse, Score Board, etc. are better displayed.
Re: Death Star Vs Asteroids
Posted: Wed Oct 18, 2017 1:04 pm
by Kwai chang caine
Enormous this effect, DK_Peter and ApplePI is the champion of 3D effect
You and all this magicians of the pixels, are really the best ambassadors of our PB of love

Re: Death Star Vs Asteroids
Posted: Wed Oct 18, 2017 11:20 pm
by JHPJHP
Hi Kwai chang caine,
Thank you again for your kind words.
I agree, this forum has some talented programmers; every day is an education.
-----------------------------------------------
Updated:
- squashed a bug
- modified game play difficulty
- updated the scoreboard Max Bullet
- changed the text in the opening intro