[oden] Move scaling entirely into JavaScript
Now the game controls its own resolution. We might want to further copy Love2D and generate resize events, I don't know.
This commit is contained in:
parent
994be3e493
commit
1cb30034f8
9 changed files with 176 additions and 58 deletions
4
types/graphics-core.d.ts
vendored
4
types/graphics-core.d.ts
vendored
|
|
@ -8,6 +8,8 @@ export function color(r: number, g: number, b: number, a: number);
|
|||
|
||||
export function stroke(r: number, g: number, b: number, a: number);
|
||||
|
||||
export function scale(x: number, y: number);
|
||||
|
||||
export function spr(
|
||||
x: number,
|
||||
y: number,
|
||||
|
|
@ -37,3 +39,5 @@ export function create_writable_texture(
|
|||
export function write_to_screen();
|
||||
|
||||
export function write_to_texture(id: number);
|
||||
|
||||
export function get_dimensions(): [number, number];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue