MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / sectionForPos

Method sectionForPos

Source/PlayLayer.cpp:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152int PlayLayer::sectionForPos(float x)
153{
154 int section = x / 100;
155 if (section < 0)
156 section = 0;
157 return section;
158}
159
160PlayLayer* PlayLayer::create(GJGameLevel* level)
161{

Callers 1

checkCollisionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected