Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pr00thmatic/74f3505a266472aaef6a5650c3332f05 to your computer and use it in GitHub Desktop.
Save pr00thmatic/74f3505a266472aaef6a5650c3332f05 to your computer and use it in GitHub Desktop.
# name: playcanvas!
# key: lets-jam
# --
(() => {
var ${1:`
(concat (upcase (substring (file-name-base buffer-file-name) 0 1)) (substring (file-name-base buffer-file-name) 1))
`} = pc.createScript('${2:`
(concat (downcase (substring (file-name-base buffer-file-name) 0 1)) (substring (file-name-base buffer-file-name) 1))
`}');
$1.prototype.initialize = function () {$0
};
$1.prototype.update = function (dt) {
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment