Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ascii code in different between keyboards?
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Sun, 03 Jun 2007 11:25:21 -0500
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;

On 1 Jun 2007 at 14:03, zehava wizman wrote:

> > Hi!
> >   yes, using Letter instead of numbers solved the problem

Hi Zehava, 

here is how "nan zhong" does it in the pacman game:


to keypressed :key
pacman,
if or equal? ascii :key 37 equal? ascii :key 28
 [seth 270 fd 15 setsh 5 wait 3 setsh 6 wait 3]

if or equal? ascii :key 38 equal? ascii :key 30
 [seth 0 setsh 4 wait 3 setsh 3 wait 3 fd 15]

if or equal? ascii :key 39 equal? ascii :key 29
 [seth 90 setsh 1 wait 3 setsh 2 wait 3 fd 15]

if or equal? ascii :key 40 equal? ascii :key 31
 [seth 180 setsh 7 wait 3 setsh 8 wait 3 fd 15]

end


Daniel
OpenWorld Learning



  • Previous by thread: Re: ascii code for games?
  • Next by thread: problems viewing web version on mac

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008