AutoHotkey Community

It is currently May 27th, 2012, 7:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Possible to make pacman?
PostPosted: October 2nd, 2006, 1:04 pm 
Offline

Joined: July 18th, 2006, 12:18 pm
Posts: 403
is it Possible to make pacman? with ahk


Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 2nd, 2006, 1:19 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
i3egohan wrote:
is it Possible to make pacman? with ahk


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

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 8:07 pm 
Offline

Joined: July 18th, 2006, 12:18 pm
Posts: 403
kk thanks

i do that in my spare time so its all cool ;]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 2nd, 2006, 9:22 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Don't forget to send me a copy. I soo can't wait ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2006, 12:58 am 
Offline

Joined: February 5th, 2006, 6:55 am
Posts: 35
I miss pacman. Go for it !!!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2006, 1:07 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
In case it's of interest, I enjoyed playing niwi's Tetris, which was written in AutoHotkey.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2006, 12:01 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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... ;-)

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2006, 11:14 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2006, 12:19 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 4th, 2006, 1:19 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2006, 2:26 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 6th, 2006, 11:11 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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...).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: HotkeyStick, just me and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group