TeeAssembler 4.0 Angular 18 is a script used for coloring a TeeWorlds/DDNet skins image the same way TeeWorlds/DDNet does and rendering the image in your browser using only CSS and TypeScript (and animate the eyes), you can implement it in your Angular 18
npm install @kiocode/ngx-teeassemblernpm i @k-i-o/ngx-teeassembler.
npm i @k-i-o/ngx-teeassembler
JS
import { Component } from '@angular/core';
...
import { TeeAssemblerComponent } from "@kiocode/ngx-teeassembler";
@Component({
selector: 'app-example',
standalone: true,
imports: [TeeAssemblerComponent],
templateUrl: './example.component.html',
styleUrl: './example.component.less'
})
export class ExampleComponent { }
`
$3
#### NOTE: YOU WILL HAVE TO CHOOSE A SIZE FOR THE TEE OR THE EYES CAN BE BUGGY
$3
`html
`
$3
`html
`
$3
`html
`
Note: The value of data-lookmouse must be "true" to set it to false you can simply remove the data attribute
$3
`html
`
Note: The value of data-look is the angle and must be an int
$3
`html
`
Note: The variable must be declared in the ts component
---
Known issues
- Eyes are not perfectly aligned like in the game but it's close enough.
---
Preview
!image
!image
!demo
---
Developers
Building / Exporting
Build: ng build ngx-teeassembler
Pack: cd dist/ngx-teeassembler && npm pack`