Attraverso una news sul blog ufficiale di FlashPunk, Chevy Ray Johnston ha annunciato l’uscita della versione 1.4 della sua libreria gratuita per ActionScript 3. Con l’ultimo aggiornamento, lo sviluppatore ventunenne ha incluso le classi TiledImage e TiledSpritemap, che si potranno rivelare utili per diversi espedienti grafici, come acqua o lava. Tra le altre novità figura l’introduzione della funzione FP.getXML(), che permette di creare oggetti XML da un file, o Input.clear(), per eliminare tutti gli stati di input.
Realizzata per aiutare chi vuole sviluppare giochi 2D in Flash, FlashPunk è un’ottima libreria che offre “un framework rapido e pulito per prototipare e sviluppare i propri titoli”, dando la possibilità di concentrarsi più sul design e meno sull’elaborazione di codice, che viene messo a disposizione risparmiando agli sviluppatori “il lavoro sporco”. Tra i giochi realizzati utilizzando FlashPunk figurano gli apprezzatissimi Quietus e Give up, Robot, oppure piccoli esperimenti come Gnop. Di seguito trovate la lista completa dei cambiamenti apportati con la versione 1.4.
- Added FP.stepTowards() to step an object towards a target point.
- Added blend, color, and alpha properties to Canvas (and subsequently Backdrop and Tilemap).
- Gave Grid usePositions property to use x/y positions instead of columns/rows.
- Gave Tilemap usePositions property to use x/y positions instead of columns/rows.
- Added centerOrigin() to center Image’s origin and centerOO() to center its origin and offset.
- Added Input.clear() to clear all input states.
- Added TiledImage and TiledSpritemap for drawing Images or Spritemaps repeatedly as textures in a block.
- Added FP.getXML() for creating an XML object from a file.
- Changed Draw.circle() to Draw.circlePlus() and added a new Draw.circle() using a pixelated circle-drawing algorithm.
- Moved Entity Graphic update() to World update to avoid version update problems and override issues.
- Renamed mouseAbsX/Y() to mouseScreenX/Y() because the prior name was stupid and confusing.
- Made it so Entities don’t have to be active for their graphics to update().
- Fixed color issue with Canvas.rect().
- Fixed screen offset to adhere to current scale.
- Fixed various issues with null currentAnim’s causing problems after callbacks, etc.
- Made some of Image’s properties protected for use in extended graphic classes.
- Made FP.angleXY() use any x/y object, not just a Point.
- Fixed FP.choose() so it actually works when using Vectors.
- Changed some of Screen’s functions from internal to public, so they can be used for certain special effects.
Updated Entity’s “into” functions to use Vectors as well as arrays.


Forum
Chat
Podcast
Vai agli insiders


Scrivi il primo commento a questo articolo




