Author Topic: GDI Image for mini games possible ?  (Read 13052 times)

Guillaume HEDIEU

  • Newbie
  • *
  • Posts: 5
GDI Image for mini games possible ?
« on: May 22, 2023, 12:04:19 pm »
Hi there,

I wonder, after looking at some examples with the demo, it seems that this lib work very great with images (aka sprite ?). I wonder if this lib could be use to make some mini games with sprite manipulation for example ?
Documentation is huge but interresting. I continue to get into it to understand how it works.

Thank you for your future answers !

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: GDI Image for mini games possible ?
« Reply #1 on: May 22, 2023, 01:29:59 pm »
@Guillaume

Have a look at this GDImage/WinLIFT example
http://www.objreader.com/index.php?topic=26.0

Click on the colored balls (red, green, blue) to rotate the main gauge object.
And press on the chrome buttons to fire the weapons...

GDImage, is one of the very few graphic library able to work in full composited mode.

« Last Edit: May 22, 2023, 01:33:30 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Guillaume HEDIEU

  • Newbie
  • *
  • Posts: 5
Re: GDI Image for mini games possible ?
« Reply #2 on: May 22, 2023, 02:31:12 pm »
Great example !

I wonder is there is some examples like this in PB ;)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: GDI Image for mini games possible ?
« Reply #3 on: May 22, 2023, 02:48:56 pm »
Je dois avoir l'exemple en PowerBASIC 32-bit et également en WinDev 17.

La comparaison des codes sources est un bon moyen d'apprendre la FLAT API qui est le seul point commun de tous les langages.
Patrice
(Always working with the latest Windows version available...)

Guillaume HEDIEU

  • Newbie
  • *
  • Posts: 5
Re: GDI Image for mini games possible ?
« Reply #4 on: May 22, 2023, 03:04:17 pm »
La démo est excellente, il faut que je regarde comment tu l'utilises avec PB pour que j'essaye. WinDEV je connais de nom mais jamais eu l'occasion d'essayer étant donné que c'est surtout pour les entreprises, la licence n'est pas pour tout le monde. C'est intéressant de voir effectivement l'implémentation.

Guillaume HEDIEU

  • Newbie
  • *
  • Posts: 5
Re: GDI Image for mini games possible ?
« Reply #5 on: May 22, 2023, 07:48:24 pm »
Please apologize for the double post. I look at this lib and examples. I miss some basic skeleton to understand how it works. The documentation is good but a mini skeleton  shows how to implement it could be great.

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: GDI Image for mini games possible ?
« Reply #6 on: May 22, 2023, 08:32:32 pm »
Have you seen these videos?
http://www.objreader.com/index.php?topic=400.0

You can also download the old demos provided with the PowerBASIC GDImage 5.00 trial version
http://www.zapsolution.com/preview/gdimage.zip
Patrice
(Always working with the latest Windows version available...)

Guillaume HEDIEU

  • Newbie
  • *
  • Posts: 5
Re: GDI Image for mini games possible ?
« Reply #7 on: May 22, 2023, 08:47:37 pm »
Ho I didn't see these videos ! my bad ! I'm going to watch them !

EDIT : Yes I've already seen the first one :) but didn't see the second.

I already download the trial version on the site that's the demos I look at :)

EDIT 2 : In fact most of the examples I looked at use the SDK approach. For now I search for more examples with the DDT approach. PowerBasic is new for me, that's why I try for now to use the stock approach with some libs. I should experiment myself may be.
« Last Edit: May 22, 2023, 09:06:29 pm by Guillaume HEDIEU »