Skip to content

[2.0]: code should probably not be reserved by p5 #7799

Open
@quinton-ashley

Description

@quinton-ashley

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

2.0.1

Web browser and version

No response

Operating system

No response

Steps to reproduce this

After trying to implement support for p5 v2 in p5play, I found that "Red Remover" still won't launch.

https://game.thegamebox.ca/red_remover/

It declares a function called code

But in p5 v2 there's a prop on p5.prototype called code, though I'm hoping this is a typo and should be keyCode, as it's only declared but never used.

Will workaround by running delete p5.prototype.code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions