flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > AOXXX

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 3302
Location: vpcmipstrm
bitRAKE
The ideas that come to mind are:
  • slower enemy that avoids player bullets
  • enemy that hides behind enemy bullets
  • enemy that stuns (slows) player, area effect
  • accuracy bonus
Enemy on the bottom row cannot be shot.

_________________
¯\(°_o)/¯ unlicense.org
Post 10 Oct 2021, 15:04
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 202
Location: Madrid - Spain
avcaballero
Thank you for answer. This ship now can down a bit more, but due to its missile at its bottom cannot place to shoot the enemy at the bottom. I think it is part of the game, bearing in mind that the enemy chase the ship after a moment, so it has to leave the bottom line at any moment. I have changed the color of the ship health to blue, more accurate, I think.

I am specially interested if the program works ok at any moment or gives any error message. In my VirtualBox-XP from time to time returns an error message when closing. But don't know if worths investigate it. In my W10 works ok at any moment.
Post 10 Oct 2021, 15:44
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3302
Location: vpcmipstrm
bitRAKE
W10 silently consumes an access violation error I get through x32dbg. Program termination does not happen through main message loop while in debugger. The application event log also confirms this happens when not in debugger.
Code:
Faulting application name: StarShipWC01.exe, version: 1.0.0.0, time stamp: 0x00000000
Faulting module name: ntdll.dll, version: 10.0.19041.1202, time stamp: 0xef8beaeb
Exception code: 0xc0000005
Fault offset: 0x00087271
Faulting process id: 0x2608
Faulting application start time: 0x01d7bde6a1f3e66f
Faulting application path: C:\Users\bitRAKE\Downloads\StarShipWC01.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll    
Looks like you are using MSVCRT for program termination. I wonder if it's trying to clean-up buffers which were not initialized? I would try to use _exit or ExitProcess directly, and see if the error is happening earlier.

_________________
¯\(°_o)/¯ unlicense.org
Post 10 Oct 2021, 19:45
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 202
Location: Madrid - Spain
avcaballero
Thank you BitRake

I was trying to clean a DC buffer before exit. It seems that it may confrontate with some Windows operations, so I let Windows to clean and close it by itself (I have commented such lines of the code) and it seems that in my VB-WXP I have not had the error message again.

I haven't debugged yet, but it looks good.


Description:
Download
Filename: StarShipWC01.zip
Filesize: 43.58 KB
Downloaded: 9 Time(s)


_________________
Siempre aprendiendo
Post 11 Oct 2021, 07:56
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 202
Location: Madrid - Spain
avcaballero
Added a scoring system and energy bar. Each enemy gives a certain amount of points, which appear for a moment on the screen. The idea is that, when you reach a certain amount, you get some kind of benefit, such as a double shot or extra life. On the right side would be the energy bar of a special enemy, with a greater amount of energy, that would need several shots, and that would give more points.

Added also an introductory text for the game, that you can skip with hitting the left button of the mouse.


Description:
Download
Filename: StarShipWC02.zip
Filesize: 47.39 KB
Downloaded: 10 Time(s)


_________________
Siempre aprendiendo
Post 12 Oct 2021, 21:36
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.