Actions

Difference between revisions of "Gameboard"

From Future Skill

(Created page with "= [DRAFT] The GameBoard library = A reusable and configurable system for game-like challenges. == GameBoard quick setup == <nowiki> from gameboard import GameBoard from game...")
 
Line 1: Line 1:
 
= [DRAFT] The GameBoard library =
 
= [DRAFT] The GameBoard library =
 
A reusable and configurable system for game-like challenges.
 
A reusable and configurable system for game-like challenges.
 +
 +
[TODO]
 +
* Board quick setup
 +
* Creating and placing a gamepiece
 +
* Pathfinding
 +
* Custom board setup
  
 
== GameBoard quick setup ==
 
== GameBoard quick setup ==
 +
<div style="background: #F0F0F0>
 
  <nowiki>
 
  <nowiki>
 
from gameboard import GameBoard
 
from gameboard import GameBoard
Line 13: Line 20:
 
   board.fill(10, 10)
 
   board.fill(10, 10)
 
</nowiki>
 
</nowiki>
 +
</div>

Revision as of 10:21, 8 April 2021

[DRAFT] The GameBoard library

A reusable and configurable system for game-like challenges.

[TODO]

  • Board quick setup
  • Creating and placing a gamepiece
  • Pathfinding
  • Custom board setup

GameBoard quick setup

from gameboard import GameBoard
from gameboard_helpers import CommonSetups, Style

fn init():
  board = GameBoard()
  CommonSetups.square(board)
  Style.topdown(board)
  board.fill(10, 10)