Giter Club home page Giter Club logo

pjs-2d-game-engine's People

Contributors

pomax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pjs-2d-game-engine's Issues

Making platforms dynamic

I'm trying to code some platforms that appear and disappear. If the player is above the platform, when it disappears, the player should fall down. Now the player stays at the position where the platform was an needs jumping to update its position. Should I call some function from the class Player to make it to update its position and fall down after removing the platform?

Thanks for your help!

fix bound-passing detection

Relevant code entries:
https://github.com/Pomax/Pjs-2D-Game-Engine/blob/master/Computer.pde#L30
https://github.com/Pomax/Pjs-2D-Game-Engine/blob/master/Positionable.pde#L415
https://github.com/Pomax/Pjs-2D-Game-Engine/blob/master/Boundary.pde#L301

Taken together, these tell the story of code that does what it's supposed to, but not what we want - Boundary.redirectForce/4 should be able to indicate whether we're still on the boundary or not, rather than simply whether or not the forces were manipulated.

actors can violate collision if moving through a boundary "sideways"

this is most obvious when jumping through a corner where two boundaries meet. There are multiple trajectories possible where the actor ends up going through each boundary in a permitted way, even though the combination of the two boundaries should result in a block:

↘
  ┌--

add coordinate mapping for mouse-to-level

aiming with the mouse on a level layer with default transforms +0/0 *1/1 works fine, but with non-default transforms the coordinate transformation from "mouse coordinates" to "level coordinates" seems very off.

viewbox draw-restrictions seem incorrect

Fiddling with the viewbox settings does not appear to restrict the draw context correctly. This might be the cause for massive slowdowns seemingly caused by the amount of repeated ground tiles being drawn.

Null Pointer Exception with ViewBox Class

Whilst using some methods from the ViewBox class in my code, I encounter a Null Pointer Exception with the following line(s) of code:

setLevelLayer(who.getLevelLayer());
float ax = round(who.getX()), ay = round(who.getY());

I'm using Processing 3.3.6, could this be the issue?

Standalone Player class

First of all, thanks for the awesome library!

I'm working on a simple Processing (no JS) project for my bachelor. In my PDE file I need the setup() and draw() methods because I'm using another libs that require it so. Would it be possible to create an instance of the Player class to create a player object, like it is possible with the CollisionDetection class?

Thanks for your help!

make viewbox track one or more actors

rather than doing viewbox positioning manually, this should be done automatically, where we pass the viewbox one or more actors, and the viewbox will then try to keep those in screen. This may effect zooming if there's multiplayer going on. This is good =)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.