[plt-scheme] get-key-event in draw.ss

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sat Feb 28 16:25:01 EST 2004

On Feb 28, 2004, at 2:58 PM, Connor Ferguson wrote:

> I am using the draw.ss teachpack to draw the shapes. I am wondering
> partially how to use the get-key-event and also if that is the 
> direction I
> should be going in order to make the list of shapes move with the arrow
> keys. If I should be using get-key-event, how should I approach it?

You can use either approach.

I used the arrows initially to have separate controls. That's too 
so I added the arrow event things to the draw.ss teachpack.

-- Matthias

> Just to tell you, I am working on the lunar lander exercise from 
> Section 21
> of HTDP. I will then be using the arrow keys to move an object on the 
> screen
> for a VERY simple Space Invaders type game for my science project.
> Thank you very much for helping
> Connor

Posted on the users mailing list.