Real Software Forums
http://forums.realsoftware.com/

Advice for simple games programming for learners
http://forums.realsoftware.com/viewtopic.php?f=4&t=31164
Page 1 of 1

Author:  cunniman [ Thu Nov 19, 2009 4:44 pm ]
Post subject:  Advice for simple games programming for learners

Hi,

I have just started using RealBasic to teach programming at my school. I am keen to develop some (very) simple game examples for my pupils to work with. To start with I'd like them to get a sprite moving back and forth across the screen, that kind of thing.

Can anyone point me in the direction of some simple game examples. I looked at the SpriteSurface control in the Language Reference, but that's way too complicated for the level of my pupils.

Is there an easier way to shift a sprite across a screen just by updating it's coordinates?

Thanks in advance.

Mark

Author:  Steve Garman [ Thu Nov 19, 2009 5:02 pm ]
Post subject:  Re: Advice for simple games programming for learners

Use any control (canvas seems most appropriate) and change its Left and Top properties

Author:  classone [ Thu Nov 19, 2009 5:03 pm ]
Post subject:  Re: Advice for simple games programming for learners

Quote:
Use any control (canvas seems most appropriate) and change its Left and Top properties


...in a timer so you can control the speed of its movement.

Author:  Steve Garman [ Thu Nov 19, 2009 5:05 pm ]
Post subject:  Re: Advice for simple games programming for learners

classone wrote:
in a timer so you can control the speed of its movement.
Or just once each time a specific button or key is pressed.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/