TGC Codebase Backup



FPS Cross hair (No sprites!) by Hazviz

15th Jun 2006 18:13
Summary

Add this code into your games' main loop to give a great cross-hair, without the use of sprites!



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                       Rem Draw cross-hair (Change the RGB values to whatever you want)
   ink rgb(255,255,255),0
   line screen width()/2-6, screen height()/2, screen width()/2+7 , screen height()/2
   line screen width()/2, screen height()/2-6, screen width()/2, screen height()/2+7
   ink 0,0 Rem This sets the ink to black
   circle screen width()/2,screen height()/2,3
   circle screen width()/2,screen height()/2,1
   ink rgb(255,255,255),0