Page 207 - Learn to Program - Basic-256
P. 207

Chapter 13: Images, WAVs, and Sprites                                           Page 191


                8       spritepoly 0, {15,0, 30,10, 20,10, 20,30, 10,30,
                        10,10, 0,10}
                9
                10      color green
                11      rect 0,0,graphwidth, graphheight
                12
                13      spriteshow 0
                14      while true
                15         spriteplace 0, mousex, mousey
                16         pause .01
                17      end while

            Program 84: Creating a Sprite From a Polygon

































            Sample Output 84: Creating a Sprite From a Polygon












                                                           © 2019 James M. Reneau (CC BY-NC-SA 3.0 US)
   202   203   204   205   206   207   208   209   210   211   212