Commit graph

42 commits

Author SHA1 Message Date
Felipe Alfonso
25977cfc4d Dynamic tilemap webgl rendering 2017-06-21 22:19:03 -04:00
photonstorm
f5d97f488b Call toString to avoid crashes if numbers are passed in. 2017-05-24 05:59:14 +01:00
photonstorm
8264351f75 Renamed GetObjectValue to GetValue and replaced through-out entire codebase. More consistent now with GetAdvancedValue, etc. 2017-04-26 16:03:22 +01:00
photonstorm
427018d291 You can now provide the TextMetrics as part of the config object, to avoid the expensive canvas scanning needed.
Text.getTextMetrics and TextStyle.getTextMetrics added to faciliate this. Plus added to toJSON.
2017-04-26 15:54:23 +01:00
photonstorm
e2576fe512 Text.padding supported and working. 2017-04-26 15:34:15 +01:00
Richard Davey
3f6c74c1f7 More work on Text Metrics. 2017-04-26 03:55:42 +01:00
Richard Davey
0df585f7d5 Testing various text measuring options. 2017-04-25 19:46:13 +01:00
Richard Davey
a4dc2d28aa Added TextStyle.toJSON and merged the output with Text.toJSON. 2017-04-25 18:24:37 +01:00
Richard Davey
ad0ff4d64b Added BuildFromConfig for Text object.
Updated TextStyle to use advanced object getter.
2017-04-25 18:07:23 +01:00
Richard Davey
81c6124a4d Added more toJSON GameObject functions. 2017-04-13 00:35:27 +01:00
Richard Davey
929d6fc8ef Enforced GameObjects to specify their type (a string based const) 2017-04-13 00:05:12 +01:00
Felipe Alfonso
581fdb50ee RenderTarget added to renderable game objects 2017-04-11 10:15:38 -03:00
Felipe Alfonso
b755fe06b9 Removed RenderPass 2017-04-05 11:23:34 -03:00
Richard Davey
336ea77587 Fixed GO extends. 2017-04-05 02:10:48 +01:00
Richard Davey
8ec9061b43 Removed 'group' / 'parent' argument and forced to the State children component. You should use 'make' if you wish to add elsewhere. 2017-04-04 23:58:33 +01:00
Felipe Alfonso
98349a08b8 Fixed text rendering issue 2017-03-30 09:48:24 -03:00
Felipe Alfonso
3e8e6141c8 Added render pass component to renderable game objects 2017-03-28 15:16:02 -03:00
Richard Davey
006d0b853f Small bit of tidying up. 2017-03-21 23:14:25 +00:00
Richard Davey
6fcd09c3bc RTL boolean. 2017-03-21 21:08:30 +00:00
Felipe Alfonso
84bc90f7ba Moved canvas to texture on Text to TExtWebGLRenderer 2017-03-21 18:06:36 -03:00
Felipe Alfonso
58e4912633 Moved uploadCanvasToGPU to WebGLRenderer 2017-03-21 17:45:57 -03:00
Felipe Alfonso
0cdb150357 Text rendering via canvas/texture upload 2017-03-21 17:08:43 -03:00
Felipe Alfonso
29ec16fd33 Flip component added to Bob, Image, Sprite and Text 2017-03-20 20:37:17 -03:00
Richard Davey
e28d4f7a47 Added origin + removed redundant module. 2017-03-20 19:10:44 +00:00
photonstorm
808e53f645 Fixed order of shadow fills. 2017-03-20 16:48:04 +00:00
photonstorm
741b93dbfe Fixed parent issues with TextStyle, and moved methods into Text for ease of access. 2017-03-20 16:28:09 +00:00
photonstorm
a87f1ca88b TextStyle is now responsible for MeasureText and caches the results.
Lots of new TextStyle methods.
TextStyle methods return the Text object itself, so you can chain easily.
Fixed Width and Height options added.
2017-03-20 16:09:01 +00:00
Richard Davey
2cc498e15e Updating sync methods. 2017-03-17 00:16:20 +00:00
Richard Davey
08d9e55066 Added Style set methods and moved shadow sync. 2017-03-16 21:59:50 +00:00
photonstorm
b5258b55b1 Quick todo 2017-03-16 17:16:32 +00:00
photonstorm
aa080cfe7b Updating TextStyle component to allow for setters and more style options. 2017-03-16 17:15:58 +00:00
Richard Davey
be05610d3b Removed redundant render vars and Origin method. 2017-03-15 23:44:39 +00:00
Richard Davey
22154d905d Updated originX/Y to use a normalized value between 0 and 1. Added the properties displayOriginX and displayOriginY (read only) to hold the calculated pixel values. Updated renderers to use these values. 2017-03-15 23:08:59 +00:00
Richard Davey
607e62448b Added in the Text Game Object, splitting all of its common functions up. Working and rendering in Canvas mode. 2017-03-15 01:08:04 +00:00
photonstorm
4832c65666 Added createCanvas method to the Texture Manager. 2017-03-14 16:37:32 +00:00
Richard Davey
bf19d3dee4 Starting on Text 2017-03-13 23:38:48 +00:00
Richard Davey
0fc9c3f4ad Moved BitmapText into new folder and added in scale and font size support. 2017-03-01 00:16:35 +00:00
Felipe Alfonso
c30a95cb01 Graphics Game Object base 2017-02-28 11:49:39 -03:00
Felipe Alfonso
2d24935147 Support for atlas on bitmap text 2017-02-27 15:18:29 -03:00
Felipe Alfonso
8b2b9697ca BitmapText Canvas Rendering 2017-02-24 12:13:04 -03:00
Felipe Alfonso
2d10cff333 Bitmap text rendering on WebGL 2017-02-23 17:52:52 -03:00
Felipe Alfonso
618e47c103 BitmapText work in progress 2017-02-23 15:18:01 -03:00