IndieRunner::Game(3p)

NAME
IndieRunner::Game - class for game object, to configure game execution

DESCRIPTION
In IndieRunner, the game object is the ultimate arbiter for how a game is run. It queries the engine object (by reference) for the engine's determination of environment variables, binary, commandline arguments/flags, and execution directory. Then it applies any game-specific adjustments, if necessary, and returns the configuration divided into env, bin, and args as a hash. User-provided arguments to the engine are added to the resuling arguments.

METHODS

  new( { engine = $engine, user_args = $user_args } )
Return a new game object. $engine is a reference to an IndieRunner::Engine object. $user_args is a reference to an array of user-provided arguments to the game's execution, like "-windowed", "-fullscreen", "-nosteam" etc..

  engine_config( $engine )
Retrieve binary, environment, and argument configuration from the engine and return it as hash of bin, env, args, and exec_dir.

  configure()
Query the engine's configuration, add user arguments, and apply game-specific adjustments to env and args. Return game configuration (hash with keys bin, env, and args).

SEE ALSO
IndieRunner IndieRunner::Engine

AUTHOR
Thomas Frohwein <thfr@cpan.org>

COPYRIGHT
Copyright 2022-2024 by Thomas Frohwein <thfr@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the ISC license.