Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuel-mauky/Grid
A grid component for javafx
https://github.com/manuel-mauky/Grid
javafx javafx-library
Last synced: 3 months ago
JSON representation
A grid component for javafx
- Host: GitHub
- URL: https://github.com/manuel-mauky/Grid
- Owner: manuel-mauky
- Created: 2014-05-19T22:34:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T17:11:49.000Z (about 8 years ago)
- Last Synced: 2024-05-18T21:37:07.593Z (6 months ago)
- Topics: javafx, javafx-library
- Language: Java
- Size: 153 KB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeJavaFX - Grid - A Component for grid based games like sudoku or chess. (Libraries, Tools and Projects)
README
# Grid
[![Build Status](https://travis-ci.org/lestard/Grid.svg?branch=master)](https://travis-ci.org/lestard/Grid)
**Grid** is a JavaFX (8) component that is intended for different kinds of small games that are based on a grid of squares like chess or sudoku.
Examples are:
- [ColorPuzzleFX](https://github.com/lestard/ColorPuzzleFX)
- [SnakeFX](https://github.com/lestard/SnakeFX)
- [Nonogram](https://github.com/lestard/nonogram)### Goals
- The grid will resize itself automatically so that all available space is used. The aspect ratio of the squares will not be influenced by the resizing.
- When the window is resized the grid will also automatically scale down/up.- The number of columns and rows of the grid can be controlled by javafx properties. This means that the grid will automatically add/remove new cells when the number of columns/rows is increased or decreased.
- Every cell has a state that defines how it is rendered. The available states are defined by the developer with an enum.
- There is a separation of the `GridView` and `GridModel`.
- The GridView defines how the grid will look like. You define how a cell is rendered when it has a specific state.
- The GridModel only controls what status the cells have. In your game logic you will only modify the gridModel.