flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > AOXXX

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



Joined: 21 Jul 2003
Posts: 4082
Location: vpcmpistri
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: 212
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: 4082
Location: vpcmpistri
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: 212
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: 615 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: 212
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: 626 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: 212
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: 243 Time(s)


_________________
Siempre aprendiendo
Post 14 Oct 2023, 19:34
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 27 Dec 2024, 22:29
Hello. Merry Christmas out there. A small raycasting project. Greetings to Lode Vandevenne, all the info and resources needed in his web page.

Fogot it: cursor keys to move.


Description:
Download
Filename: RayCastingWC02.7z
Filesize: 41.18 KB
Downloaded: 55 Time(s)


_________________
Siempre aprendiendo
Post 27 Dec 2024, 22:29
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 06 Jan 2025, 19:48
Hello. Here a small Xmas card. There are several layers of snow flakes to give a sense of depth. The trees are in fact a derivation of the Koch snowflake fractal. The text is a bit annoying though, it should be transparent, instead it leaves a black rectangle underneath.

PD: Hmm, I have seen that some av detects it as suspicious and, although, of course, it is virus-free, I better remove it.

_________________
Siempre aprendiendo
Post 06 Jan 2025, 19:48
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 11 Jan 2025, 01:29
¡Hola, Alfonso! ¡Feliz año nuevo!
I wanted to ask about GDI+. The links AOW32 don't work for some reason. Is this done on purpose?
Post 11 Jan 2025, 01:29
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 11 Jan 2025, 18:07
Hello, Mikl. In theory, all examples should be accesible, although not for all compilers. I have done the estructure with all the links waiting for me to do the job and uploading the example in every compiler, but I didn't have the time. In short, regularly the tinyc link should be operative, but in some cases maybe is Pellesc or another, those that I have had the time to make it. That's why some links "don't work".
Post 11 Jan 2025, 18:07
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 12 Jan 2025, 02:29
¡Hola, Alfonso! I found your message from 2019
Quote:
AOW32 (Open your Eyes to Win32) has no support, so you should know that the most probably is that I will not answer questions. For me, AOW32 is only a hobby and I would like it will remain being as is, and I do not want that it will get more time than necessary. In this main thread only fits messages on Win32 programming, any other could be deleted. Any user that does not limit himself to the standards, could be blocked. Once I have said that, I welcome you to the forum and invite you to do comments and constructive criticisms. You can post comments in Spanish or English.
If you want, but you don't have the time and desire, then I can finish writing programs for GDI+ on masm x64 and specifically write which links in the GDI+ section on TinyC and PelleC don't work or don't relate to the GDI+ section
6.3.5. Líneas, Rectángulos, Transparencia, Antialias
GDIPlusM6401


Description:
Download
Filename: GDIPlusM6401.zip
Filesize: 4.71 KB
Downloaded: 33 Time(s)


_________________
wasm.in


Last edited by Mikl___ on 14 Jan 2025, 03:36; edited 2 times in total
Post 12 Jan 2025, 02:29
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 12 Jan 2025, 09:52
That would be fine, go ahead.
Post 12 Jan 2025, 09:52
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 12 Jan 2025, 11:30
Bueno, yo continuaré.
6.3.6. Brochas
I need bin-file or src-file masm, fasm, nasm, TinyC or PelleC
PintarWC02.c is not GDI+
Post 12 Jan 2025, 11:30
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 12 Jan 2025, 14:59
If I'm not wrong, when I was doing that, I was some trouble with "PROPID id" of PropertyItem estructure, so, since I was a bit boring, I left it, now, searching, it seems to be an integer, hence I have put "int id" instead "PROPID id" and it seems work fine. So, here it is.


Description:
Download
Filename: GDIPlusWC02.7z
Filesize: 5.1 KB
Downloaded: 32 Time(s)


_________________
Siempre aprendiendo
Post 12 Jan 2025, 14:59
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 212
Location: Madrid - Spain
avcaballero 12 Jan 2025, 15:12
By the way, where I put:
Code:
    case WM_CHAR:
         if (wParam == VK_ESCAPE) goto wmDestroy;
    

Better put:
Code:
     case WM_CHAR :
          if (wParam == VK_ESCAPE) {
            SendMessage  (hWnd, WM_CLOSE, 0, 0);
            //goto     wmDestruimos;
          }  
    

_________________
Siempre aprendiendo
Post 12 Jan 2025, 15:12
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 12 Jan 2025, 16:21
6.3.7. Elipses y Polígonos
GDIPlusM6403


Description:
Download
Filename: GDIPlusM6403.zip
Filesize: 37.83 KB
Downloaded: 32 Time(s)


_________________
wasm.in


Last edited by Mikl___ on 14 Jan 2025, 03:37; edited 2 times in total
Post 12 Jan 2025, 16:21
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 13 Jan 2025, 00:21
6.3.6. Brochas
GDIPlusM6402


Description:
Download
Filename: GDIPlusM6402.zip
Filesize: 4.07 KB
Downloaded: 30 Time(s)


_________________
wasm.in


Last edited by Mikl___ on 14 Jan 2025, 03:37; edited 2 times in total
Post 13 Jan 2025, 00:21
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 13 Jan 2025, 01:29
6.3.8. Redimensionamos imágenes
GDIPlusM6403b


Description:
Download
Filename: GDIPlusM6403b.zip
Filesize: 36.22 KB
Downloaded: 33 Time(s)


_________________
wasm.in


Last edited by Mikl___ on 14 Jan 2025, 03:38; edited 2 times in total
Post 13 Jan 2025, 01:29
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 13 Jan 2025, 01:41
6.3.9. Visor de GIFs animados
GDIPlusM6404
6.3.13.4. Figuras
GDIPlusM6410


Description:
Download
Filename: GDIPlusM6410.zip
Filesize: 4.39 KB
Downloaded: 28 Time(s)

Description:
Download
Filename: GDIPlusM6404.zip
Filesize: 1.65 MB
Downloaded: 33 Time(s)


_________________
wasm.in


Last edited by Mikl___ on 14 Jan 2025, 03:40; edited 2 times in total
Post 13 Jan 2025, 01:41
View user's profile Send private message Visit poster's website Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 143
Location: Russian Federation, Irkutsk
Mikl___ 13 Jan 2025, 01:53
6.3.10. Cargar imágenes del resource
6.3.11. Escribir texto

I need bin-files or src-files in masm, fasm, nasm, TinyC or PelleC
PintarWC05.c and PintarWC06.c are not GDI+
Post 13 Jan 2025, 01:53
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, 3  Next

< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.