Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Need 2D Code

Author
Message
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 25th Sep 2013 10:39
Hi folks,

I need some assistance from you. I'm working on an engine that is code-compatible to DarkGDK. But only the 2d functionality. Now I need some 2d code to test out the functions and to see that I have integrate the most commonly used functions.

I have already tested it with Dark Invaders and runs well so far. I've tested also with Looper. And there I had to change few lines, (e.g. the backdrop commands that are actually 3d functions. ) but also works well.

So if you have old or new 2d code, I would be happy if you can give me the code for testing.

In advance thanks for your assistance.

Share your knowledge. It's a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 25th Sep 2013 22:40
Ciao MadBit,

Here are a couple projects for you. The first uses parallax scrolling backgrounds. The other is converted from my first attempt playing with DBPro. Hope this helps.

Attachments

Login to view attachments
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 26th Sep 2013 11:17 Edited at: 26th Sep 2013 12:04
Thank you for the code. And yes it Helps.

with your second Project I've found some issues.
- dbRGB -> i support only dbRgb but now solved via #define ...
- dbPasteImage -> I've neglected the Flag support. But now solved
- dbPrint & dbPrintC -> I had accidentally swapped the functions. solved.
- dbSetImageColorKey -> Color Key for now not supported. (dummy function).

Now i will test the parallax scrolling.

[EDIT] I miss the main.cpp for dodger.

Share your knowledge. It's a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 26th Sep 2013 17:44 Edited at: 26th Sep 2013 17:45
Happy the code is helpful. I never even opened the projects included with the Dark GDK download, so I wasn’t sure it would help. Here is the Main.cpp to dodger, don’t know how that got missed.

MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 27th Sep 2013 12:10
Thanks again .

I don't know. But i think this is not the last version of the main.cpp . There are some logical errors. But i have solved it myself.

I comment out the lines with globstruct. My engine has another structure.

some issues that I have received in my engine, thanks to this example.

dbScreenInvalid -> I insert a dummy function. In the Source of DarkGDK, I can only see that this function is used to check the activation change to this window.
g_pGlob->hWnd -> Insert a new Function to receive the Window-Handle ( dbGetWindowHandle() )
check active Window -> There is a Function dbIsActiveWindow() in my Engine.

These example help me much. Has any one more of this?

Share your knowledge. It's a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
Gunslinger
17
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 18th Oct 2013 20:06
Awesome, is your engine based on OpenGL or Direct X?
Would be great to use it for Crossplattform (/OpenGL)

Sorry, got no 2D code atm.
MadBit
VIP Member
Gold Codemaster
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 21st Oct 2013 06:27
For now, only DirectX (9) is supported. If all functions are integrated and work. I will also support OpenGL (and maybe DX11). If this is all done, I'll maybe make a Linux port.

The first release is planned after the completion of all functions of the DGDK.

I do not know if I can post it here in the forum, because it is not a TGC product.

Share your knowledge. It's a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine

Login to post a reply

Server time is: 2024-11-18 21:49:19
Your offset time is: 2024-11-18 21:49:19