Commit graph

84 commits

Author SHA1 Message Date
Pete Baron
48ea3ec8e0 Final notes and 'blank tilemap' example source showing constant scaling of layer 1. (There aren't any examples of map scaling). 2016-07-18 13:35:31 +12:00
Pete Baron
83b73f6a77 Update progress. 2016-07-18 12:44:22 +12:00
Pete Baron
2a2c82ee3d Fixed the alpha blending (copied the approach from the TriangleStrip PIXI shader) for Tilemap layers. The "blank tilemap" example now works properly and blends the background layers when you use the number keys to switch primary layers. 2016-06-28 00:28:28 +12:00
Pete Baron
9e3a7ec537 Modified the batch creation code and the batch drawing code to only insert degenerate triangles at the end of rows or when a row is broken (e.g. by some empty tiles which we won't draw at all). This should speed things up by optimising the draw, and reducing the amount of data required to describe the batch.
PIXI.Tilemap - _renderBatch using a local 'degenerate' flag to signal to next iteration that one should be inserted before the next triangle.
Phaser.TilemapLayerGL - add degenerate markers at end of rows and whenever a row has a break in it (e.g. empty tiles)
Phaser.Tileset - new addDegenerate function which prevents double markers in a row
2016-06-27 18:24:56 +12:00
Pete Baron
626d0cf64f Latest progress notes. 2016-06-27 16:09:22 +12:00
Pete Baron
61635c930e Added offsets to render large tiles at the correct (according to Tiled editor) positions. 2016-06-27 15:21:55 +12:00
Pete Baron
b8c81c21c9 Removed resolveTileset from TilemapLayerGL, added new task to task list. 2016-06-27 15:14:08 +12:00
Pete Baron
4f1728c62d First working demo of multiple tileset sources specified in a single Tiled map layer being rendered as separate Batch drawing lists by the webgl renderer.
Phaser.Tilemap now creates internal map layers for each tileset except the first one (which will be handled by the createLayer call from the game).  It also stores a reference to each tileset where the new map layers can access it.
Phaser.TilemapLayerGL uses the new tileset reference to ensure the correct base image and tile sizes are used for each new layer.
PIXI.Tilemap: added initialisation of glBatch to null in c'tor.
Phaser.TilemapParser was cleaned up to remove the now unnecessary tilemap parameter and the attempt to create layers while parsing.
2016-06-27 14:41:46 +12:00
Pete Baron
8d4733c8a5 Commit current state of development before trying something different (see last note in the progress doc). Will revert to previous commits if this attempt fails. 2016-06-27 11:46:52 +12:00
Pete Baron
835df12274 Notes about failed attempt to hack in the new layers approach quickly (proof of concept). The class relationship is more complex than it first appears and there are some odd connections and label namings which make it hard to manipulate quickly. 2016-06-20 18:25:31 +12:00
Pete Baron
6848c90257 Added remaining task summary. 2016-06-14 01:20:43 +12:00
Pete Baron
a648026fa4 Progress update. 2016-06-13 18:39:16 +12:00
Pete Baron
446eab60af Progress update. 2016-06-13 17:47:25 +12:00
Pete Baron
9450cecbe3 Progress update. 2016-05-26 14:13:18 +12:00
Pete Baron
5b6e157a43 Progress update. 2016-05-23 21:22:00 +12:00
Pete Baron
1b7eaadd06 First (nearly) working batch drawing test. Instead of pushing rectangles as pairs of triangles individually, this version creates a vertex buffer object for all visible tile rectangles, with degenerate triangles separating each one from the next. The drawing is done by a single call to gl.drawArrays.
Bizarrely, this version still chokes in Firefox, implying that the previous demo's horrible performance was not down to the GPU blocking as the rectangles are sent to it.

The test is not fully working because it does not scroll the drawing position. So instead of the map moving when you hit a scroll boundary, it simply stops drawing the top or left edges as the scroll region moves away from the visible window.  It's an easy fix, but I think I'll leave it until I find out exactly why Firefox still chokes on this demo.

Progress text file updated with latest experiments and progress today.
2016-05-23 17:48:54 +12:00
Pete Baron
55870bce8a Results of retesting for all tilemap examples. Most work with many having an 'out by one' tile issue (I've requested help from Rich on this). I'll investigate the other failures now. 2016-05-13 15:08:53 +12:00
Pete Baron
90dcdbfa98 Log file of progress on Tilemap GL work. 2016-05-13 14:41:24 +12:00
photonstorm
a29cc64932 Phaser 2.4.7 Final. 2016-04-22 15:15:28 +01:00
photonstorm
47123c192d 2.4.6 Build files + docs + TS Docs. 2016-02-18 14:41:53 +00:00
photonstorm
34c484367c Phaser 2.4.5 Build files. 2016-02-17 13:27:09 +00:00
photonstorm
6ad22bc098 Phaser 2.4.5-RC2 with fresh docs and build files. 2016-02-12 16:00:36 +00:00
photonstorm
fc3ffe5441 New docs. 2016-02-08 17:01:45 +00:00
photonstorm
c9c85330ab 2.4.4 Release. 2015-10-15 12:06:38 +01:00
Jack Morgan
2f3cf3637e Corrected spelling: 'mainted' to 'maintained' 2015-09-23 12:03:13 +12:00
Jack Morgan
4b6e3b10f2 Corrected spelling: 'mainted' to 'maintained' 2015-09-23 12:02:00 +12:00
photonstorm
486c15f16f New docs. 2015-08-24 15:43:45 +01:00
yahiko
3fd35d0ec1 Add extra information for the imageData property. 2015-08-06 12:40:16 +02:00
photonstorm
4b22f48c75 2.4.2 release. 2015-07-29 15:01:04 +01:00
photonstorm
9401755ab9 Phaser 2.4.1 docs. 2015-07-24 13:30:46 +01:00
photonstorm
858ad51610 Phaser 2.4 release. 2015-07-22 15:31:30 +01:00
photonstorm
e33455e34f 2.3.0 API Docs 2015-03-26 02:55:18 +00:00
photonstorm
cf4e213056 New API Docs. 2015-03-26 02:38:46 +00:00
photonstorm
43d6339f3a New jsdoc files generated. 2015-03-23 23:46:30 +00:00
photonstorm
1b34216f6e Docs update. 2015-01-06 06:57:25 +00:00
photonstorm
ea19aeae5c API Docs update. 2014-12-04 11:33:42 +00:00
photonstorm
95ffa83e34 Phaser 2.2.0 Docs. 2014-12-03 10:39:20 +00:00
photonstorm
abea71fdcb 2.2.0 RC11 Docs Export. 2014-11-25 00:24:31 +00:00
photonstorm
7de47fd80a Template update. 2014-11-25 00:24:29 +00:00
photonstorm
deeb2c4942 2.2 doc files. 2014-11-15 20:01:46 +00:00
Paul
ea861662bb Documentation - YUIdoc to jsdoc, global nav
- Added support to deal with some of the YUIDoc "formats" used to
  represent arrays. It covers the case of the old PIXI documentation.

- Cleaned up log reporting and issue identification

- "Fixed" the global navigation, now that globals are displayed .. now
  just need to fix the documentation the members aren't incorrectly listed
  as globals ..
2014-11-15 04:19:41 -08:00
Paul
4ba8fe15f7 JSDoc/Docstrap generation
- "Source" section doesn't invoke a bullet, "src/" leading path removed
- Minor styles
2014-11-09 22:04:20 -08:00
Paul
69415550c1 JSDoc/Docstrap generation - cleanup
- Reverted unecessary change
2014-11-09 21:46:28 -08:00
Paul
6d274a312f JSDoc/Docstrap generation
- Made deprecated entries more apparent
  - A deprecation notice is moved above the description to make
    it actually obvious
  - The navigation item is marked (currently with line-through)
    to visual discourage even thinking about it.

- "protected" members are displayed as "internal"
  - Enforces the idea that using them from outside the core library
    is possible even though there is no public guarantee
  - There is also and advice note added to the "Deprecated/Internal"
    section reminding the users of such.

- The "Type" heading is removed when such is trivially visible in the
  type-signature of the item.

- The "Returns" section for methods is moved before the details
  (So it is displayed about the "Source" and other details.)

- The type is better integrated into "Returns"
2014-11-09 21:41:21 -08:00
Paul
a7044a6cb6 PIXI-in-Docs fixups
- Removed hard-coded path (oops)
- Added grunt task (oops)
- Added EOLs
2014-11-03 11:30:33 -08:00
Paul
343c0dca3f PIXI-in-Docs - making jshint happy 2014-11-03 11:21:00 -08:00
Paul
ce02d3402f PIXI-in-Docs - Initial
- Initial support for generating PIXI-combined documentation
- Includes yuidoc-to-jsdoc for generating pixi-jsdoc.js
- Creates doc (using pixidoc + builddoc) tasks
- Adds sourceproxy JSDoc plugin to map in corrected file/line meta
- Added yuidocjs as a dev-dependency
2014-11-03 11:05:00 -08:00
Paul
96915e1612 JSDoc Property to member - slight combining update 2014-11-03 08:27:50 -08:00
Paul
e6da96e908 Added "property to member" plugin for JSDoc
This automatically fixes usage of the form

    /** desc
    * @property {T} name - desc

To

    /** desc
    * @member {T} name

Being careful to only make the transformation when it is logical to do and preserving both descriptions as appropriate.
2014-11-03 03:13:01 -08:00
photonstorm
d44424fdbc 2.1.3 documentation updates. 2014-10-22 21:49:44 +01:00