8000 GitHub - catos/platformer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

catos/platformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refs

Platformer examples

ECS

Collision

PHYSICS & COLLISION

EXAMPLES

https://www.youtube.com/watch?v=kpiO5-BtX4I&t=2258s&ab_channel=ArmadaJS-JavaScriptconference

How To Make A JavaScript Platformer

Structure

Components

  • Position [position]
  • Velocity [speed, velocity]
  • Input [left, right, up, down]
  • BoxCollider [size, collision]
  • Shape [size, color]

Entities

  • Player [Position, Shape, Velocity, Input, BoxCollider]
  • Tiles [Position, Shape, BoxCollider]
  • Decoration [Position, Shape, BoxCollider]
  • NPC [Position, Shape, Velocity, BoxCollider]

Systems

  • Movement []
  • ShapeRenderer [BoxShape, Position]
  • InputSystem [Input]
  • MovementSystem [Position, Velocity]
  • CollisionSystem [BoxCollider, Position]
  • DebugInfo []

TODO

  • Fix: velocity, speed, drag, gravity, no-fly, double-jump
  • NPC & collision
  • Debugsystem
    • toggle
    • where to put code ? scene ? game ? ...systems ?
  • Respawn when falling out of the world
  • Coin & collision with different response
  • Design a level
  • Projectile weapon
  • Crouch
  • Dash
  • Camera
  • UI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0