🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10754

Simple sprite help please

#10754
From: Gregory Jerome Mumm
Date: Fri, 30 Dec 1988 19:13
32 lines
1793 bytes
I program in Modula-2 (benchmark) and need some help with a program
that I'm working on. What I need to know is how to use Sprites. The
program will have two sprites that are always on the screen. A space
ship on the top and one on the bottom of the screen. I need to know
how to define the sprites and then move them with a simple procedure
like so:

         MoveTopSprite(left)

which would cause the sprite at the top of the screen to move left one
pixel. 

The next thing I need is a sprite 'missle' that moves from the top
of the screen to the bottom of the screen (and visa versa) without
my controlling it. In other words the 'missle' keeps going without
me having to keep move it one pixel at a time. I envision a procedure
some like this:

         FireMissle();

Last but not least I need to know when a missle hits one of the space ships.
I am a complete beginner to programming on the Amiga so be easy on me when
you explain. If you don't know Modula-2 (or don't like it) please feel
free to give examples in C. THANKS!!!

Internet: gregm@csd4.milw.wisc.edu  Uucp: uwvax!uwmcsd1!uwmcsd4!gregm 
Csnet:	  gregm%uwmcsd4@uwm	             Greg Mumm 
--

Internet: gregm@csd4.milw.wisc.edu  Uucp: uwvax!uwmcsd1!uwmcsd4!gregm 
Csnet:	  gregm%uwmcsd4@uwm	             Greg Mumm 
Technical Details
Message-ID: <160@csd4.milw.wisc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!csd4.milw.wisc.edu!gregm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!csd4.milw.wisc.edu!gregm
From: gregm@csd4.milw.wisc.edu (Gregory Jerome Mumm)
Newsgroups: comp.sys.amiga.tech
Subject: Simple sprite help please
Message-ID: <160@csd4.milw.wisc.edu>
Date: 30 Dec 88 19:13:23 GMT
Sender: news@csd4.milw.wisc.edu
Reply-To: gregm@csd4.milw.wisc.edu (Gregory Jerome Mumm)
Distribution: na
Organization: University of Wisconsin-Milwaukee
Lines: 32