Skip to content

Beta update 20

Pre-release
Pre-release
Compare
Choose a tag to compare
@morgan3d morgan3d released this 12 Jan 15:32

2020 Jan 3: Beta update 20

Renamed addEntityChild() to entityAddChild()
Renamed removeEntityChild() to entityRemoveChild()
Renamed updateEntityChildren() to entityUpdateChildren()
Renamed physicsStepEntity() to entitySimulate()
Renamed drawRect() to drawCornerRect()
Renamed drawSpriteRect() to drawSpriteCornerRect()
Made entitySimulate() use entity.drag and invoke entityUpdateChildren()
Added hardware physics support. See the Physics section for the API
Added physics debugging to the IDE
Added physics example
Added oscillate(x, lo, hi) and deprecated oscillate(x, m)
Added entityRemoveAll()
Allowed more flexible JSON syntax for data files
Added BetterJSON.js to credits
Added optional pos, scale, and angle arguments to drawTri()
Added drawRect() that is centered and takes an optional angle argument
Added drawPoly() for drawing convex polygons
Documented that drawTri() ignores winding order
Updated tools/pyxlscript-mode.el emacs syntax highlighting for new APIs
Fixed tools/pyxlscript-mode.el emacs syntax highlighting of color literals, negative numbers, and size properties
Optimized overlaps(region, point) test
Changed default entity name from "Anonymous" to "entity" + unique ID
fontpack✜ now allows dropping the source PNG anywhere on screen
2019 Dec 30: Beta update 19

Added the Inspiration section
Added support for per-name (i.e., per-animation) pivots on spritesheets
Added "setDebugFlag" and "getDebugFlag" commands for controlling the IDE via deviceControl()
Added preview images in the Built-In Games section of the manual
Added poly-decomp.js to dependencies
Made require, requires, default, otherwise, and swap into reserved words
Restored the instruction manual tab title to “manual✜" to make it easier to see in the same browser hosting the IDE
Fixed audio on Safari desktop browser
Removed entity.acc and entity.twist properties
New properties for physics: entity.friction, entity.stictionFactor, entity.restitution, entity.drag, entity.collisionCategoryMask, entity.collisionGroup, and entity.collisionHitMask
Added entityApplyForce() and entityApplyImpulse()
Added magnitudeSquared() function
2019 Dec 25: Beta update 18

Added Deploying Games section
Added Serpitron sample game
Removed extendPostEffects() and reverted definition of setPostEffects() to match beta 16
Added composeTransform()
Renamed addFrameSequence() to sequence()
Added entity.pivot and spritesheet pivots
Fixed Chrome and Safari blank region on the bottom of the IDE
Made deja-9 font glyph widths more consistent
Raised mid-glyph bar for capitals 1px on deja-8 font
2019 Dec 14: Beta update 17

Fixed getClip() off-by-one error
Changed intersectClip() to follow the argument conventions of setClip()
Fixed drawText() using the incorrect vertical clipping region
Added lastValue() and lastKey() for arrays and strings
Made floor() and ceil() variants that take a rounding precision
Added fastRemoveValue()
Fixed misalignment of - character and enlarged the + character in the broderick-7 font
Added delay() and addFrameSequence()
Added options for open-ended line segments in drawLine() to support drawing polylines and curves with transparency
Fixed setPostEffects() background color crashing the emulator
Made Modes slightly wider in the visualization graph to accomodate longer mode names
Fixed a bug in the parsing of because statements that contained parentheses
Added support for type "object" in game JSON constants
Added broderick-14 font
Made loop() work on vectors
Made noise() work on vectors
Added extendPostEffects() and getPostEffects()
Fixed setPostEffects() not resetting to defaults first
Added optional reverse argument to sort()
Increased analog stick dead zone to 40% to avoid accidental cross-axis input
2019 Dec 1: Beta update 16

Added support for "array" constant types in .game.json files
Added --secure option to the quadplay script to prevent other machines from connecting to the local webserver
drawText() markup is now implemented
textWidth() now supports markup
Added duration and period to spritesheet animation arrays
Upgraded the quadplay script to use a multithreaded server when Python 3.7 or later is available
Fixed a 1-pixel overdraw in drawSpriteRect()
Made pushFront() and push() return a pushed value
Overloaded atan(xy)
Added insert()
Fixed a parser error on for loops that have extra parentheses surrounding the test
Made documents appear at 80% scale when viewed in the IDE
Upgraded to Markdeep 1.07 for markdown processing
Changed the default markdown style sheet to have less vertical spacing and use a sans serif font
Fixed a bug in pushMode() when arguments are provided
Fixed handling newlines in JSON multiline strings across various OS conventions
2019 Nov 24: Beta update 15

JSON files may now contain multiline strings using backquote: ...
sprite.json files now support per-sprite animation frame timing
Updated the ninja sprites with animation durations and the examples/animation code demonstrating how to use it at runtime
Made the quadplay command line script shut down more gracefully on key press
Added per-sprite info viewer in the IDE
Added slow play button for debugging animations and interaction
Added the specification for markup on drawText() (but not the implementation)
Improved the shape and line spacing for the roman-8 font
Added replace() for strings
Added optional last, pair, and empty separators for join()
Added Text example
2019 Nov 17: Beta update 14

Added fool-9.font.json
Added makeRnd()
Added rndInt(lo, hi) and deprecated rndInt(n)
Added rnd(lo, hi) overload
Added optional rnd() function argument to rndBall(), rndSquare(), etc.
Renamed rndBall() ⟶ rndWithinSphere(), rndSquare() ⟶ rndWithinSquare(), rndDisk() ⟶ rndWithinCircle(), rndSphere() ⟶ rndOnSphere()
Added rndGaussian(), rndGaussian2D(), rndGaussian3D(), rndTruncatedGaussian(), rndTruncatedGaussian2D(), rndTruncatedGaussian3D(), rndOnCube(), rndWithinCube(), rndInt(lo, hi, rnd), rndSign(), rndOnSquare()`
2019 Oct 4: Beta update 13

Fixed RPG demo broken sprite paths
Fixed Boids demo broken sprite paths