AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible to make pacman?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Mon Oct 02, 2006 12:04 pm    Post subject: Possible to make pacman? Reply with quote

is it Possible to make pacman? with ahk
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Mon Oct 02, 2006 12:19 pm    Post subject: Re: Possible to make pacman? Reply with quote

i3egohan wrote:
is it Possible to make pacman? with ahk


Maybe Rolling Eyes - but for the efforts!
It will be like painting a whole building with a toothbrush.

Regards, Smile
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Mon Oct 02, 2006 7:07 pm    Post subject: Reply with quote

kk thanks

i do that in my spare time so its all cool ;]
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Mon Oct 02, 2006 8:22 pm    Post subject: Reply with quote

Don't forget to send me a copy. I soo can't wait Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jtbalogh



Joined: 05 Feb 2006
Posts: 35

PostPosted: Mon Oct 02, 2006 11:58 pm    Post subject: Reply with quote

I miss pacman. Go for it !!!
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Tue Oct 03, 2006 12:07 am    Post subject: Reply with quote

In case it's of interest, I enjoyed playing niwi's Tetris, which was written in AutoHotkey.
Back to top
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Tue Oct 03, 2006 11:01 am    Post subject: Reply with quote

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... Wink
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
slomz



Joined: 03 Sep 2006
Posts: 601
Location: Iowa, U.S.

PostPosted: Tue Oct 03, 2006 10:14 pm    Post subject: Reply with quote

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... Wink


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
View user's profile Send private message AIM Address
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Wed Oct 04, 2006 11:19 am    Post subject: Reply with quote

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... Wink
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
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Wed Oct 04, 2006 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Fri Oct 06, 2006 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Fri Oct 06, 2006 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group