How sully-vian/newtonoid works
Newtonoid is an OCaml game, described as a program whose implementation is split between a main executable in bin/ and a reusable game library in lib/. The tree identifies gameplay, level, parameter, and state modules, plus level and configuration files. The README documents that executable modules can use the library; source excerpts were unavailable, so specific runtime calls, data loading, and gameplay sequencing cannot be confirmed.
Main entry points: newtonoid.ml Game executable · lib Game library
Components 19
Runtime
- Game executable
bin/newtonoid.ml - Game library
lib
Gameplay
- Game logic
lib/game.ml - Game state
lib/state.ml - Input
lib/input.ml - Paddle
lib/paddle.ml - Ball
lib/ball.ml - Brick
lib/brick.ml - Box
lib/box.ml
Levels and settings
- Level
lib/level.ml - Level loader
lib/loadLevel.ml - Parameters
lib/params.ml - Parameter validation
lib/paramValidator.ml - Level files
levels - Configuration files
configs
Simulation
- Collision
lib/collision.ml - Spatial tree
lib/quadtree.ml - Iterator
lib/iterator.ml
Other components
- Player
Connections 1
- Game executable → Game library: uses