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: 3892
Location: vpcmipstrm
bitRAKE 10 Oct 2021, 15:04
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)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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: 203
Location: Madrid - Spain
avcaballero 10 Oct 2021, 15:44
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: 3892
Location: vpcmipstrm
bitRAKE 10 Oct 2021, 19:45
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)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
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: 203
Location: Madrid - Spain
avcaballero 11 Oct 2021, 07:56
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: 435 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: 203
Location: Madrid - Spain
avcaballero 12 Oct 2021, 21:36
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: 432 Time(s)


_________________
Siempre aprendiendo
Post 12 Oct 2021, 21:36
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 203
Location: Madrid - Spain
avcaballero 14 Oct 2023, 19:34
Hello, here an experimentation with planes and camera.

Edited: Added a tiny background sound that gives it a some kind of occlusive ambient.


Description:
Download
Filename: PlanesCameraMWC01.zip
Filesize: 28.19 KB
Downloaded: 56 Time(s)


_________________
Siempre aprendiendo
Post 14 Oct 2023, 19:34
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.