mirror of
https://github.com/overte-org/overte.git
synced 2025-04-27 10:36:29 +02:00
35 lines
No EOL
1,020 B
JavaScript
35 lines
No EOL
1,020 B
JavaScript
//
|
|
// breakdanceOmniToolModule.js
|
|
// examples/libraries/omniTool/modules
|
|
//
|
|
// This is an omniTool module version of the breakdance game
|
|
//
|
|
// Created by Brad Hefta-Gaub on Sept 3, 2015
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
Script.include("../toys/breakdanceCore.js");
|
|
|
|
OmniToolModules.Breakdance = function() {
|
|
print("OmniToolModules.Breakdance...");
|
|
}
|
|
|
|
OmniToolModules.Breakdance.prototype.onLoad = function(deltaTime) {
|
|
print("OmniToolModules.Breakdance.prototype.onLoad()...");
|
|
breakdanceStart();
|
|
}
|
|
|
|
OmniToolModules.Breakdance.prototype.onUpdate = function(deltaTime) {
|
|
print("OmniToolModules.Breakdance.prototype.onUpdate()...");
|
|
breakdanceUpdate();
|
|
}
|
|
|
|
OmniToolModules.Breakdance.prototype.onUnload = function() {
|
|
print("OmniToolModules.Breakdance.prototype.onUnload()...");
|
|
breakdanceEnd();
|
|
}
|
|
|
|
OmniToolModuleType = "Breakdance"; |