Code Snippets PureBasic

Short texts PureBasic 🧑‍💻 Code snippets PureBasic ✍️ Reading lists PureBasic 👀

PureBasicGraphicsTest.pb

#ScreenWidth = 1024 ; Feel free to change this to see the pixel filling speed ! #ScreenHeight = 768 If InitSprite() = 0 Or InitKeyboard() = 0 MessageRequester(“Error”, “DirectX is needed.”,0) EndIf Structure Pixel Pixel.l EndStructure Procedure.f GSin(angle.f) ProcedureReturn Sin(angle*(2*3.14/360)) EndProcedure ; Pre-calculated values are faster than realtime calculated ones… ; … so we save […]