Replies: 3 comments
-
Amazing! I was about to ask since I saw your last screen capture in the orientation issue. I have not had much feedback on people using their smart screens for other purposes than system monitoring, so thanks for taking the time to explain it here and giving some context. I look forward to browsing your code when you upload it, especially the bitmap generation. Please keep us posted! |
Beta Was this translation helpful? Give feedback.
-
Absolutely, the developers of Foxhole just dropped the trailer for the latest version of their game. Lots of changes to the map. If were lucky well get access to these new features this Tuesday and ill open the repository to public and ill message you. The only thing I am struggling with is finding a retailer who offers the 5 inch model, since I wrote my code specifically around the 3.5 model. |
Beta Was this translation helpful? Give feedback.
-
For the 5 inch models you can find them on Aliexpress e.g. https://www.aliexpress.us/item/3256804659136011.html or https://www.aliexpress.us/item/3256804199469843.html for the Turing 5 inch or https://www.aliexpress.us/item/3256805454873209.html for the UsbMonitor 5 inch |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A project I have been working on. Foxhole is an MMO game that does its best to simulate a 24x7 war that can last anywhere from 30-45 days. During that 45 days territory is fought over and technology is unlocked. The early days of the war are fought with bolt action rifles and grenades. By the end you're fighting with heavy machine guns, artillery and large battle tanks.
Foxhole Trailer
The developers released an API that allows us to generate a world map using a vonoroi diagram. The world map represents the territory controlled by each faction. The API also provides some additional details like casualties, building ownership and some other goodies.
My plan is to put the project on github in the next few weeks. The developers are scheduled to showcase their next release of the game next week and were anticipating that the map will be expanded.
derp.mp4
I used the turing-smart-screen-python API to interface with the turing LCD (which was honestly the easiest part of this project) and then built a custom library to connect to the Foxhole API FoxAPIWrapper and a process to use the data from the API to generate the world map and some other display information. The original plan was to do this with C# but I was not impressed with the LCD libraries out there and decided to go with Python (which I had never used before).
Each hexagon of the map is generated separately and through a series of steps starting with the original game map, drawing the voronoi diagram on top and finally shading the color of the faction ownership. All 38 regions are then combined into one single map. The API is called every 30 seconds and rebuilds the map accordingly.
Beta Was this translation helpful? Give feedback.
All reactions