File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ HTML3D is a lightweight JavaScript library for creating interactive 3D scenes us
33
44See the demo at: https://html3d.com
55
6- ![ HTML3D demo] ( ./html3d_demo_screenshot1 .png?raw=true " HTML3D demo ")
6+ ![ HTML3D demo] ( ./html3d_demo .png?raw=true " HTML3D demo ")
77
88** src/index.html** <br >
99index.html is a demo of HTML3D. The demo showcases a recursive game-within-a-game.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ class HTML3D {
1414 this . panels = [ ] ;
1515 if ( Array . isArray ( scene ?. panels ) ) {
1616 for ( const scenePanel of scene . panels ) {
17- const panel = new HTML3D . Panel ( this , scenePanel ) ;
18- this . panels . push ( panel ) ;
17+ this . panels . push ( new HTML3D . Panel ( this , scenePanel ) ) ;
1918 }
2019 }
2120 this . requestRender = true ;
@@ -82,7 +81,6 @@ class HTML3D {
8281{
8382 HTML3D . Camera = class Camera {
8483 constructor ( html3d , camera ) {
85- this . html3d = html3d ;
8684 Object . assign ( this , {
8785 html3d : html3d ,
8886 x : ( ( typeof camera ?. x === 'number' ) ? camera . x : 0 ) ,
Original file line number Diff line number Diff line change 5757 this . panels = [ ] ;
5858 if ( Array . isArray ( scene ?. panels ) ) {
5959 for ( const scenePanel of scene . panels ) {
60- const panel = new HTML3D . Panel ( this , scenePanel ) ;
61- this . panels . push ( panel ) ;
60+ this . panels . push ( new HTML3D . Panel ( this , scenePanel ) ) ;
6261 }
6362 }
6463 this . requestRender = true ;
125124{
126125 HTML3D . Camera = class Camera {
127126 constructor ( html3d , camera ) {
128- this . html3d = html3d ;
129127 Object . assign ( this , {
130128 html3d : html3d ,
131129 x : ( ( typeof camera ?. x === 'number' ) ? camera . x : 0 ) ,
28562854 backgroundColor : '#000000' ,
28572855 opacity : 0.6 ,
28582856 userData : {
2859- fontSize : 16 ,
2857+ fontSize : 20 ,
28602858 characters : 'アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' . split ( '' ) ,
28612859 animateIntervalCount : 12 ,
28622860 pixelated : false
You can’t perform that action at this time.
0 commit comments