Skip to content

Commit

Permalink
Upd readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinten Clause committed Aug 11, 2024
1 parent b185893 commit 5595e98
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 50 deletions.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,57 @@
# supernapie.github.io

https://supernapie.github.io

## Documentation

### Events

`js/events.js`

Event methods

- `on = (type, e => {}) => {}`
- `off = (type, e => {}) => {}`
- `once = (type, e => {}) => {}`
- `emit = (type, e) => {}`
- `last = (type) => e`

### Canvas

`js/canvas/2d.js`

Event types and e objects

- `step` `{ t, dt }`
- `clear` `{ ctx }`
- `draw` `{ ctx }`
- `tap` `{ x, y }`
- `color` `{ bg, fill, stroke }`
- `resize` `{ vw, vh, vc }`

## TODO

- [x] Canvas resize
- [x] Pointer input
- [x] Animation loop
- [x] Text
- [x] SVG paths
- [ ] Tap areas
- [ ] Hover areas
- [ ] SVG sprites
- [ ] Cameras
- [ ] States
- [ ] Screens
- [ ] Menus
- [ ] Physics
- [ ] Isometrics
- [ ] Pathfinding
- [ ] Vector math
- [ ] 3d math
- [ ] Tweens
- [ ] Timers
- [ ] Tilemaps
- [ ] Particles
- [ ] Sound
- [ ] Music
- [ ] Webgl canvas
26 changes: 0 additions & 26 deletions TODO.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs.md

This file was deleted.

0 comments on commit 5595e98

Please sign in to comment.