| View previous topic :: View next topic |
| Author |
Message |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Mon Oct 02, 2006 12:04 pm Post subject: Possible to make pacman? |
|
|
| is it Possible to make pacman? with ahk |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Mon Oct 02, 2006 12:19 pm Post subject: Re: Possible to make pacman? |
|
|
| i3egohan wrote: | | is it Possible to make pacman? with ahk |
Maybe - but for the efforts!
It will be like painting a whole building with a toothbrush.
Regards,  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
i3egohan
Joined: 18 Jul 2006 Posts: 403
|
Posted: Mon Oct 02, 2006 7:07 pm Post subject: |
|
|
kk thanks
i do that in my spare time so its all cool ;] |
|
| Back to top |
|
 |
polyethene
Joined: 11 Aug 2004 Posts: 5248 Location: UK
|
Posted: Mon Oct 02, 2006 8:22 pm Post subject: |
|
|
Don't forget to send me a copy. I soo can't wait  |
|
| Back to top |
|
 |
jtbalogh
Joined: 05 Feb 2006 Posts: 35
|
Posted: Mon Oct 02, 2006 11:58 pm Post subject: |
|
|
| I miss pacman. Go for it !!! |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Tue Oct 03, 2006 12:07 am Post subject: |
|
|
| In case it's of interest, I enjoyed playing niwi's Tetris, which was written in AutoHotkey. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Tue Oct 03, 2006 11:01 am Post subject: |
|
|
Someday in the far future, I might do what Chris seems to want: a canvas component, were you can draw inside with some easy commands.
If it can be animated, that would be cool, too...  _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 601 Location: Iowa, U.S.
|
Posted: Tue Oct 03, 2006 10:14 pm Post subject: |
|
|
| PhiLho wrote: | Someday in the far future, I might do what Chris seems to want: a canvas component, were you can draw inside with some easy commands.
If it can be animated, that would be cool, too...  |
That is exactly what I have wanted for a maze game I am creating but I got the idea from someone to just use arrow keys to move a picture. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Wed Oct 04, 2006 11:19 am Post subject: |
|
|
| PhiLho wrote: | I might do what Chris seems to want: a canvas component, were you can draw inside with some easy commands.
If it can be animated, that would be cool, too...  | Sounds great.
I wouldn't use it myself (in fact, I don't even use GUI); I was only echoing the desires others have expressed in the past few years (though not so much lately).
Thanks. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Wed Oct 04, 2006 12:19 pm Post subject: |
|
|
Yes, at least, you are not against such thing, if kept reasonably small of course... That's enough to make me think about it, even if right now it is pure vaporware...
Would be pure GDI, ie. a bit slow (slower than DirectX or OpenGL) but probably fast enough for most need with a modern computer. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Fri Oct 06, 2006 1:26 am Post subject: |
|
|
With my limited knowledge of such things, I would think it could be done either as:
1) A static/pic control containing an bitmap whose contents are alterered by the script (i.e. pixels inside are permanently changed each time the script draws a new line or shape).
2) The script stores lines and shapes as abstract objects (just their properties and dimensions). Every time the control does an erase-background and/or repaint, the program draws all of its shapes sequentially directly into the control. This would probably perform more slowly and be more difficult to implement, but would allow the script to alter/delete individual shapes without having to erase everything and start over.
Maybe someone knows a better approach. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Fri Oct 06, 2006 10:11 am Post subject: |
|
|
You are right.
I would choose the first solution, with double-buffering for animation, leveraging GDI (poor) capability to draw shapes. Not high quality, but simple and small.
The second option is great (we go closer to SVG!), but will eat memory, will be slow, will be quite hard to get right (more or less what you wrote!), and it would be easier to get an external (big!) library like Cairo (pure C) or the high quality Anti-Grain Geometry - (high level C++ with heavy use of templates...). _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|