tette-core
v0.1.6
Published
Core functionality for the TETTE game framework.
Downloads
74
Maintainers
Readme
TETTE Core
TETTE Core is a core library for creating games and interactive applications, providing powerful tools and flexibility for development. The project supports working with WebGL and WebGPU, making it suitable for implementing various gaming and interactive projects. TETTE Core can be used both independently and in conjunction with a graphical user interface (GUI), which is planned to be added in the future.
Note: The project is at an early stage of development and may currently contain significant shortcomings. We recommend waiting for a more stable release to avoid possible disappointment.
Contents
Installation
To install the package via npm, run the command:
npm install tette-core
Usage
To use TETTE Core in your project, import it as follows:
import TetteCore from 'tette-core';
// Usage example
const game = new TetteCore.Game();
game.start();
Scripts
Building the Project
To build the project, use Webpack. Run the following command to create a build:
npm run build
Additional Scripts
- Build:
npm run build
— compiles the project and creates a minified bundle in thedist
folder. - Testing: Testing can be added as needed.
Project Structure
/dist # Compiled files
/examples # Usage examples
/src # Source code
/core # Core modules
/gameObjects # Game objects and components
/gameTypePresets # Game type presets
index.js # Entry point
/.babelrc # Babel configuration
/webpack.config.js # Webpack configuration
Development and Build
- Clone the repository:
git clone https://github.com/yourusername/tette-core.git
cd tette-core
- Install dependencies:
npm install
- Run the build:
npm run build
- If necessary, start the development server (e.g., using
webpack-dev-server
orlive-server
for examples).
License
This project is distributed under the MIT License. You can find the full text of the license in the LICENSE file.