Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
152
int PlayLayer::sectionForPos(float x)
153
{
154
int section = x / 100;
155
if (section < 0)
156
section = 0;
157
return section;
158
}
159
160
PlayLayer* PlayLayer::create(GJGameLevel* level)
161
{
Callers
1
checkCollisions
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected