da_gad_pader Posted June 24, 2011 Author Share Posted June 24, 2011 can someone explain what's the use of this codes?```' stuffsPublic Const HalfX As Integer = ((MAX_MAPX + 1) / 2) * PIC_XPublic Const HalfY As Integer = ((MAX_MAPY + 1) / 2) * PIC_YPublic Const ScreenX As Integer = (MAX_MAPX + 1) * PIC_XPublic Const ScreenY As Integer = (MAX_MAPY + 1) * PIC_YPublic Const StartXValue As Integer = ((MAX_MAPX + 1) / 2)Public Const StartYValue As Integer = ((MAX_MAPY + 1) / 2)Public Const EndXValue As Integer = (MAX_MAPX + 1) + 1Public Const EndYValue As Integer = (MAX_MAPY + 1) + 1Public Const Half_PIC_X As Integer = PIC_X / 2Public Const Half_PIC_Y As Integer = PIC_Y / 2``` Link to comment Share on other sites More sharing options...
Rithy58 Posted June 24, 2011 Share Posted June 24, 2011 It's basically defining the variable.Look at the last two.Half_PIC_X = PIC_X / 2Half_PIC_Y = PIC_Y / 2Sincerely,Rithy Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 24, 2011 Share Posted June 24, 2011 Try deleting it and see how fun your game is with no play screen. Those are all the screen calculations. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now