lyndir / omicron Goto Github PK
View Code? Open in Web Editor NEWA turn-based strategy game.
Home Page: https://github.com/Lyndir/Omicron/wiki
A turn-based strategy game.
Home Page: https://github.com/Lyndir/Omicron/wiki
The method listObservableTiles in basemodule, checks each tile if it is within the viewrange. The performance can be significantly increased simply listing the tiles within a fixed range as follows:
visible = [ ]
for each -N ≤ Δu ≤ N:
for each max(-N, -Δu-N) ≤ Δy ≤ min(N, -Δu+N)
Δv = -Δu-Δy
visible.append(origin + (Δu, Δv) )
Where N is the view range.
Adapted from http://www.redblobgames.com/grids/hexagons/#range
Calling the function GameObject.onModuleElse which is also called from GameObjectController.canObserve is very slow. This function checks 3x if the GameObject tile is observable (so the same check).
Since this an expensive assert could you rework the locations where this assert check is done, as to avoid duplicate work?
Movement returned by MobilityModule#movement always fails because the returned path starts at a tile containing the unit that will move. This causes the path validation to always fail because this tile is not accessible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.