add android

This commit is contained in:
aozhiwei 2019-04-09 16:16:21 +08:00
parent 26786fbf2f
commit 10e9252fba

View File

@ -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());