mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
- minify flag for webpack - add second animation - fix existing animation (transition between stop and idle) - abstraction of animation code into new class
8 lines
244 B
TypeScript
8 lines
244 B
TypeScript
// Copyright (c) 2016 Brandon Thomas <bt@brand.io, echelon@gmail.com>
|
|
|
|
export function getRandomInt(min: number, max: number) : number {
|
|
min = Math.ceil(min);
|
|
max = Math.floor(max);
|
|
return Math.floor(Math.random() * (max - min)) + min;
|
|
}
|