From 10e9252fba4c09fec2bbaa38a9cd8aa886af80a6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 9 Apr 2019 16:16:21 +0800 Subject: [PATCH] add android --- server/gameserver/room.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 23151b7..e1d86ab 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -15,7 +15,7 @@ #include "collision.h" const int ROOM_MAX_PLAYER_NUM = 50; -const int ANDROID_NUM = 0; +const int ANDROID_NUM = 10; void Room::Update(int delta_time) { @@ -143,8 +143,8 @@ void Room::ShuaAndroid() hum->meta = hum_meta; hum->entity_uniid = AllocUniid(); { - hum->pos.x = 100 + rand() % 400; - hum->pos.y = 200 + rand() % 500; + hum->pos.x = 3000 + rand() % 400; + hum->pos.y = 3000 + rand() % 500; hum->attack_dir = hum->pos; hum->attack_dir.Normalize(); hum->attack_dir.Rotate(a8::RandAngle());