Reorganize src folder and add Api and Scene classes
This commit is contained in:
parent
8b50adcd60
commit
a4bb1655d0
6 changed files with 5 additions and 3 deletions
4
main.ts
4
main.ts
|
|
@ -1,6 +1,6 @@
|
|||
import p5 from 'p5';
|
||||
import { colors } from './src/colors';
|
||||
import { SCREEN_WIDTH, SCREEN_HEIGHT } from './src/constants';
|
||||
import { colors } from './src/constants/colors';
|
||||
import { SCREEN_WIDTH, SCREEN_HEIGHT } from './src/constants/screen';
|
||||
import { Player } from './src/Player';
|
||||
|
||||
const sketch = (s) => {
|
||||
|
|
|
|||
1
src/Api.ts
Normal file
1
src/Api.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export class Api {}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { mp5 } from '../main';
|
||||
import { colors } from './colors';
|
||||
import { colors } from './constants/colors';
|
||||
|
||||
export class Player {
|
||||
x: number;
|
||||
|
|
|
|||
1
src/Scene.ts
Normal file
1
src/Scene.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export class Screen {}
|
||||
Reference in a new issue