TriPegs - Classic triangle peg jumping game
#6
Thanks, @SierraKen, @PhilOfPerth, @johnno56!  Glad you're enjoying it.  I'm still usually an EG-NO-RA-MOOSE playing this.

johnno56, about the _COPYIMAGE call, what it's doing there is taking a snapshot of the screen to use (minus the peg being moved) while dragging that selected peg around the screen.  In the peg dragging DO/LOOP, I first _PUTIMAGE that snapshot (Line #90), then _PUTIMAGE the selected peg after it (line #91).  It keeps the board clean, just see the board with a single moving peg image.   Without using that _COPYIMAGE snapshot, the board will fill up with many moving peg images as you drag it around.

It's safe to comment out line #82 and run it to see what will happen without it, the screen will fill up with pegs.

- Dav

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
RE: TriPegs - Classic triangle peg jumping game - by Dav - 08-10-2022, 01:34 PM



Users browsing this thread: 1 Guest(s)