The actual position of the player is closer to the top left corner of the bounding box of the plus sign, not the center.The size of the map is 250x250 squares but the minimap is only 96x96 pixels so each pixel on the minimap corresponds to approximately 2.5 squares on the map.Grey plus signs (128, 128, 128) are enemy drones.The pure white (255, 255, 255) plus sign is me. → anything else is enemy territory or walls (these pixels aren't orange but they are colorful enough to not be background) → 6 < hue < 20 is friendly territory or walls (orange) Detect Friendly/Enemy/NeutralĬonvert to HSV and detect ownership of each pixel: This is important for the bot to be able to avoid enemy bullets. Notice that the purple bullet still shows up as a few pixels. This reduces the image size from 1920x937 to 240x118 Scale down the image by a factor of 8, keeping 1 of every 64 pixels. This includes the scoreboard, minimap, upgrade menu, the player's drone, and the area where some status messages show up in red. Replace UI areas with the background color. I want to make a better bot that uses simple decision making. These bots are quite bad and struggle to accomplish much more than not flying into enemy walls. Motivationĩ9% of the "players" one encounters in defly.io are bots included to make the game seem active to people that try it out. When you encounter enemy drones you can break their territory by shooting at their nodes or by using special abilities that are unlocked at level 18. As you gain points your drone will level up and allow you to choose from 7 different upgrades. Once you complete a loop, the interior is filled in with your color and you gain some points proportional to the size of the area captured. Pressing space will drop a node that automatically connects a wall to the previous node. In defly.io, the you take control of a drone to fly around and capture territory by surrounding it with nodes and walls. Automating defly.io shortdemo.mp4 About the game
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |