Re: [lazarus] GamePack 1.0 Released

2008-02-11 Thread A.J. Venter
I did so, but still the same behavior.  Just to note, I commented out 
the lines and then rebuilt the IDE a couple of times to be sure.

Thanks Lee,
At least it rules out the obvious.
I will be home this weekend where I have a windows machine, I'll give it 
 a shot when I'm there and see if I can locate and fix the bug.


A.J.
--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard



Re: [lazarus] GamePack 1.0 Released

2008-02-08 Thread Lee Jenkins

A.J. Venter wrote:


I downloaded and installed the components fine.  However, when trying 
to load the demo project, the IDE hangs and eats up 50% CPU.  End 
Task'ing the lazarus process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?

Hi Lee,
It's definitely meant to be a multiplatform suite.
You seem to have discovered a win32 specific bug. Since I only use 
native components that means that it must be something the w32 widget 
set does different.
Logically - only visual components could have issues with widget set 
implementations. That limits it to TDoubleBuffer.
The only part of TDoubleBuffer that is active during design is the paint 
method - so it seems win32 isn't handling that right.


Please try the following for me (I have no access to a windows machine 
for a while)

Fine the lines in doublebuffer.pas that read:

if csDesigning in ComponentState then
Self.Canvas.CopyRect(rect(0,0,width,height),FBackground.BitMap.Canvas,rect(0,0,width,height)); 



And comment them out.
This will have no impact on running programs, it will just prevent the 
background from being visible at designtime - but it may solve your 
problem. Please let me know if it does, so I can update the code on my 
side (I would use an IFDEF I imagine).

Win32 experts: If this works, how SHOULD I do it instead ?

Ciao
A.J.


I did so, but still the same behavior.  Just to note, I commented out the lines 
and then rebuilt the IDE a couple of times to be sure.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread Lee Jenkins

A.J. Venter wrote:

Hi all,
As I promised last week, I finished and released GamePack version 1.0.
The keyboard event handling is not yet as good as I would like, but this
is not a crucial aspect as it's something that belongs on the lazarus
level anyway.



Hi A.J.,

Lazarus 0.9.24 - FPC 2.2.0 OS: WinXP

I downloaded and installed the components fine.  However, when trying to load 
the demo project, the IDE hangs and eats up 50% CPU.  End Task'ing the lazarus 
process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread mramirez

Quoting A.J. Venter [EMAIL PROTECTED]:



I added some screenshots to the wiki page:


Cool. Good work ;-)


Cheers (With a Tequila)
mramirez

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread A.J. Venter


I downloaded and installed the components fine.  However, when trying to 
load the demo project, the IDE hangs and eats up 50% CPU.  End Task'ing 
the lazarus process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?

Hi Lee,
It's definitely meant to be a multiplatform suite.
You seem to have discovered a win32 specific bug. Since I only use 
native components that means that it must be something the w32 widget 
set does different.
Logically - only visual components could have issues with widget set 
implementations. That limits it to TDoubleBuffer.
The only part of TDoubleBuffer that is active during design is the paint 
method - so it seems win32 isn't handling that right.


Please try the following for me (I have no access to a windows machine 
for a while)

Fine the lines in doublebuffer.pas that read:

if csDesigning in ComponentState then
Self.Canvas.CopyRect(rect(0,0,width,height),FBackground.BitMap.Canvas,rect(0,0,width,height));

And comment them out.
This will have no impact on running programs, it will just prevent the 
background from being visible at designtime - but it may solve your 
problem. Please let me know if it does, so I can update the code on my 
side (I would use an IFDEF I imagine).

Win32 experts: If this works, how SHOULD I do it instead ?

Ciao
A.J.


--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard



Re: [lazarus] GamePack 1.0 Released

2008-02-05 Thread Dominique Louis

Hi A.J.
  You may want to post about your project over on 
www.pascalgamedevelopment.com. There was talk on there about trying and 
release a game development pack that would allow FreePascal to target 
Nintendo GameBoy Advance and Dual Screen.


Dominique.

A.J. Venter wrote:

Hi all,
As I promised last week, I finished and released GamePack version 1.0.
The keyboard event handling is not yet as good as I would like, but this
is not a crucial aspect as it's something that belongs on the lazarus
level anyway.

Having said that, the other functionalities are all there as promised
including the event-based collision detection and sprite-motion control.

I am still busy writing new up-to-date documentation, but the included
demoprogram shows how to use all the abilities in all the components.

I already have an idea for my next major addition, but this will be for
a later release. In the meantime, those who wanted to play with it can
now get it to take a look.
The URL is:
http://outkastsolutions.co.za/outkast/index.php?option=com_openwikiItemid=id=gamepack 



I would like it if it could be added to the CCR as well please to help
people find it.

I would love to receive feedback on this release. It's far from perfect,
in particular the code-structure could use some clean-up and improved
error detection, but provided the programmer uses it right, everything
seems to work very well. That's not to say it cannot be improved but I
would really like to get some outside input with this, yet another
reason I am releasing it. I think it is a justified .0 release and I
hope people will find it useful.

Ciao
A.J.




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-05 Thread A.J. Venter

mramirez wrote:

Quoting A.J. Venter [EMAIL PROTECTED]:


Hi all,
As I promised last week, I finished and released GamePack version 1.0.


Could be see some screenshots ?


As you wish.
I added some screenshots to the wiki page:
http://outkastsolutions.co.za/outkast/index.php?option=com_openwikiItemid=id=gamepack

Ciao
A.J.

--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard



Re: [lazarus] GamePack 1.0 Released

2008-02-05 Thread A.J. Venter

Dominique Louis wrote:

Hi A.J.
  You may want to post about your project over on 
www.pascalgamedevelopment.com. There was talk on there about trying and 
release a game development pack that would allow FreePascal to target 
Nintendo GameBoy Advance and Dual Screen.


Well gamepack per se won't do that, BUT if FreePascal AND lazarus 
supports building for those platforms, then it should work on those 
ports (because it's built out of native components). It should already 
work for WinCE.



Ciao
A.J.
--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard