Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] picScreen; "As Byte = #"?


Tameric
 Share

Recommended Posts

_Greetings,_

I am in the midst of resizing my _picScreen_, and I know these sorts of questions are getting very old, and I know there's guides and the likes, but though I've read and searched around a lot, I am concerned as to what this value really is? I have yet to come across any guides that really explain what it is.

I plan on having multiple settings for players, with the Width and Height resolutions, and this "**As Byte = #**" criteria seems to always be different in every tutorial that I see.

So without further adieu, my real question is: How is this value calculated according to the picScreen.width and picScreen.height values? And is there other values I should be aware of that may alter the byte's set value?

Thanks in advance.

**:Edit:**

To furtherly dock an example as to what I am referring to by "As Byte = #":

```
Public Const MAX_MAPX As Byte = #
Public Const MAX_MAPY As Byte = #
```Is what I speak of.

Some people also say something as such:
```
Public Const MAX_MAPX As Byte = (X / 32 - 1)
Public Const MAX_MAPY As Byte = (Y / 32 - 1)
```
I sort of understand this, but as I stated, the Byte value keeps changing in that first code "#" reference, through the differ of several tutorials; so if I wanted some specific resolution, I'm not sure how it would work out the correct way with this Byte number. Other than that, I think I've got it all figured out well enough.

Your answers are very much appreciated.

**Regards,
_- Tameric._**
Link to comment
Share on other sites

Lets say you want your size at 800x608\. You would set that in the properties.

Then do the math for that part:

```
Public Const MAX_MAPX As Byte = (800 / 32 - 1)
Public Const MAX_MAPY As Byte = (608 / 32 - 1)
```
```
Public Const MAX_MAPX As Byte = (25 - 1)
Public Const MAX_MAPY As Byte = (19 - 1)
```
This is what you put in:
```
Public Const MAX_MAPX As Byte = 24
Public Const MAX_MAPY As Byte = 18
```It goes in both server and client
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...