Tweaked the bounds values
This commit is contained in:
@@ -312,7 +312,12 @@ void InWorld::HandleCharacterNew(CharacterPacket* const argPacket) {
|
|||||||
|
|
||||||
newCharacter.SetOrigin(argPacket->origin);
|
newCharacter.SetOrigin(argPacket->origin);
|
||||||
newCharacter.SetMotion(argPacket->motion);
|
newCharacter.SetMotion(argPacket->motion);
|
||||||
newCharacter.SetBounds({0, 16, 32, 32}); //TODO: magic numbers, fix this
|
newCharacter.SetBounds({
|
||||||
|
CHARACTER_BOUNDS_X,
|
||||||
|
CHARACTER_BOUNDS_Y,
|
||||||
|
CHARACTER_BOUNDS_WIDTH,
|
||||||
|
CHARACTER_BOUNDS_HEIGHT
|
||||||
|
});
|
||||||
|
|
||||||
(*newCharacter.GetStats()) = argPacket->stats;
|
(*newCharacter.GetStats()) = argPacket->stats;
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,10 @@
|
|||||||
constexpr double CHARACTER_WALKING_SPEED = 140.0;
|
constexpr double CHARACTER_WALKING_SPEED = 140.0;
|
||||||
constexpr double CHARACTER_WALKING_MOD = 1.0/sqrt(2.0);
|
constexpr double CHARACTER_WALKING_MOD = 1.0/sqrt(2.0);
|
||||||
|
|
||||||
//the bounding boxes for the characters
|
//the bounds for the character objects, mapped to the default sprites
|
||||||
constexpr double CHARACTER_BOUNDS_WIDTH = 32.0;
|
constexpr int CHARACTER_BOUNDS_X = 0;
|
||||||
constexpr double CHARACTER_BOUNDS_HEIGHT = 32.0;
|
constexpr int CHARACTER_BOUNDS_Y = 16;
|
||||||
|
constexpr int CHARACTER_BOUNDS_WIDTH = 32;
|
||||||
|
constexpr int CHARACTER_BOUNDS_HEIGHT = 32;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
TODO: encapsulate the data structures
|
TODO: encapsulate the data structures
|
||||||
|
TODO: The server's managers should be singletons too
|
||||||
TODO: Get the rooms working
|
TODO: Get the rooms working
|
||||||
TODO: A proper logging system
|
TODO: A proper logging system
|
||||||
|
TODO: Move the statistics into their own SQL table, instead of duplicating the structure a dozen times
|
||||||
|
|
||||||
TODO: make the whole thing more fault tolerant
|
TODO: make the whole thing more fault tolerant
|
||||||
TODO: Authentication
|
TODO: Authentication
|
||||||
|
|||||||
Reference in New Issue
Block a user