> On Apr 9, 2017, at 7:27 PM, 'John Clements' via Racket Users > <racket-users@googlegroups.com> wrote: > > >> On Apr 9, 2017, at 15:14, bsdm <cheapetlo...@gmail.com> wrote: >> >> Hey everyone, I"m new to the racket language and was wondering if anyone can >> help me explain keyboard movement for an image I'm using for a game I'm >> trying to make. And yes I know there's a documentation page for it, but I'm >> having trouble figuring out the correct syntax to go about it. >> >> https://docs.racket-lang.org/teachpack/2htdpuniverse.html >> >> Currently my code looks like this: >> >> (define (create-player-scene height) >> (underlay/xy (rectangle 600 600 "solid" "black") 250 400 player)) >> >> (define player (bitmap "player.png")) >> >> (animate create-player-scene) > > Can you explain in more detail what it is you’re trying to do? > > John Clements
The ‘animate’ function won’t let you produce a program that interprets keystrokes. You will need to use big-bang, if you wish to use 2htdp/universe. If you are a beginner, I urge you to visit http://www.ccs.neu.edu/home/matthias/HtDP2e <http://www.ccs.neu.edu/home/matthias/HtDP2e> and study Part I. If you just want Racket code, visit the documentation on windowing at https://docs.racket-lang.org/gui/index.html?q=key%20event <https://docs.racket-lang.org/gui/index.html?q=key%20event> -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.