BCX Basic Forum

You must log on, to access files that were uploaded by BCX forum members. => Questions & Answers => Topic started by: Ljubisa Knezevic on March 15, 2025, 02:47:38 PM

Title: Directx 2D sample in BCX
Post by: Ljubisa Knezevic on March 15, 2025, 02:47:38 PM
Hi, I'm thiniking about trying to make some simple 2D game in BCX. 
Maybe someone already tried something similar. If so can you please point me to sample code - even some simple demo would be helpfull.

Thanks.
Title: Re: Directx 2D sample in BCX
Post by: MrBcx on March 15, 2025, 03:43:29 PM
Hi Ljubisa,

My Asteroids game (link below) uses GDI not DirectX but it does use the built-in BCX double buffering
that I added to BCX a few years ago which improves responsiveness and eliminates flicker.

BCX_BUFFER_START
BCX_BLIT_SPRITE
BCX_BUFFER_STOP

https://bcxbasiccoders.com/smf/index.php?topic=1209.msg6395#msg6395

I also uploaded a bunch of OpenGL demos that although not games, might interest you.

I'll be happy to answer questions that I can.
Title: Re: Directx 2D sample in BCX
Post by: Ljubisa Knezevic on March 15, 2025, 03:55:59 PM
Thank you Kevin, I'm still trying to get grasp how double buffering is implemented and maybe go after that to some simple menus and drawing some primitives.
Title: Re: Directx 2D sample in BCX
Post by: MrBcx on March 15, 2025, 04:35:13 PM
Something else that could be useful in games is my Quick Pixels library.

Here are just a few non-game examples that demonstrates the speed of the QP library:

https://bcxbasiccoders.com/smf/index.php?topic=1176.msg6155#msg6155

https://bcxbasiccoders.com/smf/index.php?topic=949.msg4736#msg4736

https://bcxbasiccoders.com/smf/index.php?topic=1200.msg6346#msg6346

https://bcxbasiccoders.com/smf/index.php?topic=1234.msg6549#msg6549
Title: Re: Directx 2D sample in BCX
Post by: MrBcx on March 15, 2025, 04:44:03 PM
Almost forgot about my tiny OpenGL lib and demo;

https://bcxbasiccoders.com/smf/index.php?topic=1246.msg6603#msg6603

I think it's a really cool graphics demo!