From 362f91160b243453578633e3f9af67ce40179d8c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 7 May 2024 22:37:27 +0200 Subject: Make 3D --- lib/components/up.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/components/up.js (limited to 'lib/components/up.js') diff --git a/lib/components/up.js b/lib/components/up.js new file mode 100644 index 0000000..f28cc20 --- /dev/null +++ b/lib/components/up.js @@ -0,0 +1,12 @@ +import { Component } from '@serpentity/serpentity'; + +export default class Up extends Component { + constructor(config) { + + super(config); + + this.x = this.x || 0; + this.y = this.y || 1; + this.z = this.z || 0; + } +}; -- cgit