├── README.md ├── codef ├── README.md ├── codef_3d.js ├── codef_core.js ├── codef_decrunch.js ├── codef_fx.js ├── codef_gradient.js ├── codef_mouse.js ├── codef_music.NoMinified.js ├── codef_music.js ├── codef_scrolltext.js ├── codef_starfield.js ├── codef_stats.js ├── codef_tween.js ├── glsl.js ├── index.php └── pt.js └── tutorials ├── 00_core.html ├── 01_core.html ├── 02_core.html ├── 03_core.html ├── 04_core.html ├── 05_core.html ├── 06_core.html ├── 100_GL.html ├── 101_GL.html ├── 10_gradient.html ├── 20_fx.html ├── 30_scrolltext.html ├── 31_scrolltext.html ├── 32_scrolltext.html ├── 33_scrolltext.html ├── 34_scrolltext.html ├── 35_mouse.html ├── 35_scrolltext.html ├── 40_starfield.html ├── 41_starfield.html ├── 42_starfield.html ├── 50_3d.html ├── 51_3d.html ├── 52_3d.html ├── 53_3d.html ├── 54_3d.html ├── 55_3d.html ├── 56_3d.html ├── 57_3d.html ├── 58_3d.html ├── 59_3d.html ├── 60_3d.html ├── 61_3d.html ├── 62_3d.html ├── 63_3d.html ├── 64_3d.html ├── 65_3d.html ├── 66_3d.html ├── 67_3d.html ├── 68_3d.html ├── 69_3d.html ├── 70_3d.html ├── 71_3d.html ├── 72_3d.html ├── 80_music.html ├── 81_music.html ├── 90_intro.html ├── 91_intro.html ├── 92_intro.html ├── index.html └── media ├── A Prehistoric Tale 7.ym ├── ball0.png ├── ball1.png ├── ball2.png ├── ball3.png ├── bubble0.png ├── bubble1.png ├── bubble2.png ├── codeflogotuto.png ├── envmap.png ├── font1.png ├── font2.png ├── hmd3.mod ├── logo.png ├── texture1.png └── tileset.png /README.md: -------------------------------------------------------------------------------- 1 | ![Alt text](http://codef.santo.fr/tutorials/media/logo.png) 2 | 3 | **..:: Canvas Oldschool Demo Effects Framework ::..** 4 | 5 | Codef HomePage : http://codef.santo.fr 6 | 7 | -------------------------------------------------------------------------------- /codef/README.md: -------------------------------------------------------------------------------- 1 | ![Alt text](http://codef.santo.fr/tutorials/media/logo.png) 2 | **..:: Canvas Oldschool Demo Effects Framework ::..** 3 | 4 | -------------------------------------------------------------------------------- /codef/codef_fx.js: -------------------------------------------------------------------------------- 1 | /*------------------------------------------------------------------------------ 2 | Copyright (c) 2011 Antoine Santo Aka NoNameNo 3 | 4 | This File is part of the CODEF project. 5 | 6 | More info : http://codef.santo.fr 7 | Demo gallery http://www.wab.com 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy 10 | of this software and associated documentation files (the "Software"), to deal 11 | in the Software without restriction, including without limitation the rights 12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | copies of the Software, and to permit persons to whom the Software is 14 | furnished to do so, subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be included in 17 | all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 25 | THE SOFTWARE. 26 | ------------------------------------------------------------------------------*/ 27 | 28 | function FX(src, dst, params){ 29 | this.src=src; 30 | this.dst=dst; 31 | this.params=params; 32 | 33 | this.siny = function(posx,posy){ 34 | var oldvalue=new Array(); 35 | var tmp=this.dst.contex.globalAlpha; 36 | this.dst.contex.globalAlpha=1; 37 | for(var j=0;jCreate a new gradient object.
30 | grad(dst, params)
31 | @class grad 32 | @param {Object} dst The destination canvas. 33 | @param {Array} params An Array of the gradient definition. 34 | @property {Object} The destination canvas. 35 | @property {Array} params An Array of the gradient definition. 36 | @example 37 | // gradient param is normalized, this example will declare 38 | // Black a start 39 | // Blue at the 1st quarter 40 | // Black at the half 41 | // Blue at the 3rd quarter 42 | // then Black at the end 43 | 44 | var mygradcolor=[{color: 'rgb(0,0,0)' , offset:0}, 45 | {color: 'rgb(0,0,255)', offset:0.25}, 46 | {color: 'rgb(0,0,0)' , offset:0.5}, 47 | {color: 'rgb(0,0,255)', offset:0.75}, 48 | {color: 'rgb(0,0,0)' , offset:1} 49 | ]; 50 | 51 | var mygrad = new grad(mycanvas, mygradcolor); 52 | */ 53 | function grad(dst,params){ 54 | this.dst=dst; 55 | this.params=params; 56 | 57 | /** 58 | Draw the gradient Horizontally.
59 | grad.drawH()
60 | 61 | @function grad.drawH 62 | @example 63 | mygrad.drawH(); 64 | */ 65 | this.drawH = function(){ 66 | var tmp=this.dst.contex.fillStyle; 67 | var tmp2=this.dst.contex.globalAlpha; 68 | this.dst.contex.globalAlpha=1; 69 | var lingrad = this.dst.contex.createLinearGradient(0,0,0,this.dst.canvas.height); 70 | for(var j=0;jDraw the gradient Verticaly.
82 | grad.drawV()
83 | 84 | @function grad.drawV 85 | @example 86 | mygrad.drawV(); 87 | */ 88 | this.drawV = function(){ 89 | var tmp=this.dst.contex.fillStyle; 90 | var tmp2=this.dst.contex.globalAlpha; 91 | this.dst.contex.globalAlpha=1; 92 | var lingrad = this.dst.contex.createLinearGradient(0,0,this.dst.canvas.width,0); 93 | for(var j=0;j y) ? 1 : 0)); 39 | } 40 | 41 | function sortPosy(a, b) { 42 | var x = a.posy; 43 | var y = b.posy; 44 | return ((x < y) ? -1 : ((x > y) ? 1 : 0)); 45 | } 46 | 47 | function scrolltext_horizontal(){ 48 | this.scroffset=0; 49 | this.oldspeed=0; 50 | this.speed=1; 51 | this.font; 52 | this.letters = new Object(); 53 | this.scrtxt=" "; 54 | this.pausetimer=0; 55 | this.pausedelay=0; 56 | 57 | this.init = function(dst, font,speed,sinparam,type){ 58 | this.speed=speed; 59 | this.dst=dst; 60 | this.font=font; 61 | this.fontw = this.font.tilew; 62 | this.fonth = this.font.tileh; 63 | this.fontstart = this.font.tilestart; 64 | this.wide=Math.ceil(this.dst.canvas.width/this.fontw)+1; 65 | for(i=0;i<=this.wide;i++){ 66 | this.letters[i]=new ltrobj(Math.ceil((this.wide*this.fontw)+i*this.fontw),0,this.scrtxt.charCodeAt(this.scroffset)); 67 | this.scroffset++; 68 | } 69 | if(typeof(sinparam)!='undefined') 70 | this.sinparam=sinparam; 71 | if(typeof(type)=='undefined') 72 | this.type=0; 73 | else 74 | this.type=type; 75 | } 76 | 77 | this.draw = function(posy){ 78 | var prov = 0; 79 | var temp = new Array(); 80 | var tmp=this.dst.contex.globalAlpha; 81 | this.dst.contex.globalAlpha=1; 82 | var oldvalue=new Array(); 83 | var i; 84 | if(typeof(this.sinparam)!='undefined'){ 85 | for(var j=0;j this.scrtxt.length-1) 130 | this.scroffset=0; 131 | } 132 | } 133 | } 134 | if(typeof(this.sinparam)!='undefined'){ 135 | for(var j=0;j this.scrtxt.length-1) 259 | this.scroffset=0; 260 | } 261 | } 262 | } 263 | if(typeof(this.sinparam)!='undefined'){ 264 | for(var j=0;j>4; if(this.star[i][0]>this.x<<1) { this.star[i][0]-=this.w<<1; this.test=false; } if(this.star[i][0]<-this.x<<1) { this.star[i][0]+=this.w<<1; this.test=false; } 77 | this.star[i][1]+=(this.centy-this.y)>>4; if(this.star[i][1]>this.y<<1) { this.star[i][1]-=this.h<<1; this.test=false; } if(this.star[i][1]<-this.y<<1) { this.star[i][1]+=this.h<<1; this.test=false; } 78 | this.star[i][2]-=this.star_speed; if(this.star[i][2]>this.z) { this.star[i][2]-=this.z; this.test=false; } if(this.star[i][2]<0) { this.star[i][2]+=this.z; this.test=false; } 79 | this.star[i][3]=this.x+(this.star[i][0]/this.star[i][2])*this.star_ratio; 80 | this.star[i][4]=this.y+(this.star[i][1]/this.star[i][2])*this.star_ratio; 81 | if(this.star_x_save>0&&this.star_x_save0&&this.star_y_savethis.dst.canvas.width) this.stars[i].x=0; 117 | if(this.stars[i].x<0) this.stars[i].x=this.dst.canvas.width; 118 | if(this.stars[i].y>this.dst.canvas.height) this.stars[i].y=0; 119 | if(this.stars[i].y<0) this.stars[i].y=this.dst.canvas.height; 120 | } 121 | } 122 | 123 | } 124 | 125 | function starfield2D_img(dst,img,params){ 126 | this.dst=dst; 127 | this.stars=new Array(); 128 | this.img=img; 129 | var t=0; 130 | 131 | for(var i=0; ithis.dst.canvas.width) this.stars[i].x=0-this.img[this.stars[i].params].img.width; 144 | if(this.stars[i].x<0-this.img[this.stars[i].params].img.width) this.stars[i].x=this.dst.canvas.width; 145 | if(this.stars[i].y>this.dst.canvas.height) this.stars[i].y=0-this.img[this.stars[i].params].img.height; 146 | if(this.stars[i].y<0-this.img[this.stars[i].params].img.height) this.stars[i].y=this.dst.canvas.height; 147 | } 148 | } 149 | 150 | } 151 | -------------------------------------------------------------------------------- /codef/codef_stats.js: -------------------------------------------------------------------------------- 1 | // stats.js r6 - http://github.com/mrdoob/stats.js 2 | var Stats=function(){function s(a,g,d){var f,c,e;for(c=0;c<30;c++)for(f=0;f<73;f++)e=(f+c*74)*4,a[e]=a[e+4],a[e+1]=a[e+5],a[e+2]=a[e+6];for(c=0;c<30;c++)e=(73+c*74)*4,c'+n+" MS ("+z+"-"+A+")";o.putImageData(B,0,0);F=j;if(j> 9 | v+1E3){l=Math.round(u*1E3/(j-v));w=Math.min(w,l);x=Math.max(x,l);s(y.data,Math.min(30,30-l/100*30),"fps");d.innerHTML=''+l+" FPS ("+w+"-"+x+")";m.putImageData(y,0,0);if(t==3)p=performance.memory.usedJSHeapSize*9.54E-7,C=Math.min(C,p),D=Math.max(D,p),s(E.data,Math.min(30,30-p/2),"mb"),i.innerHTML=''+Math.round(p)+" MB ("+Math.round(C)+"-"+Math.round(D)+")",q.putImageData(E,0,0);v=j;u=0}}}}; 10 | 11 | var codef_stats = new Stats(); 12 | codef_stats.domElement.style.position = 'absolute'; 13 | codef_stats.domElement.style.top = '0px'; 14 | 15 | function addstats(){ 16 | document.body.appendChild( codef_stats.domElement ); 17 | } 18 | 19 | function updatestats(){ 20 | codef_stats.update(); 21 | } -------------------------------------------------------------------------------- /codef/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/codef/index.php -------------------------------------------------------------------------------- /tutorials/00_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 47 | 48 | 49 |
50 |
51 |


View Source
52 | 53 | 54 | -------------------------------------------------------------------------------- /tutorials/01_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 49 | 50 | 51 |
52 |
53 |


View Source
54 | 55 | 56 | -------------------------------------------------------------------------------- /tutorials/02_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 50 | 51 | 52 |
53 |
54 |


View Source
55 | 56 | 57 | -------------------------------------------------------------------------------- /tutorials/03_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 51 | 52 | 53 |
54 |
55 |


View Source
56 | 57 | 58 | -------------------------------------------------------------------------------- /tutorials/04_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 56 | 57 | 58 |
59 |
60 |


View Source
61 | 62 | 63 | -------------------------------------------------------------------------------- /tutorials/05_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 61 | 62 | 63 |
64 |
65 |


View Source
66 | 67 | 68 | -------------------------------------------------------------------------------- /tutorials/06_core.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 59 | 60 | 61 |
62 |
63 |


View Source
64 | View The TileSet image
65 | 66 | 67 | -------------------------------------------------------------------------------- /tutorials/100_GL.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 114 | 115 | 116 |


View Source
117 | 118 | 119 | -------------------------------------------------------------------------------- /tutorials/101_GL.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 111 | 112 | 113 |


View Source
114 | 115 | 116 | -------------------------------------------------------------------------------- /tutorials/10_gradient.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 63 | 64 | 65 |
66 |
67 |


View Source
68 | 69 | 70 | -------------------------------------------------------------------------------- /tutorials/20_fx.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 64 | 65 | 66 |
67 |
68 |


View Source
69 | 70 | 71 | -------------------------------------------------------------------------------- /tutorials/30_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 57 | 58 | 59 |
60 |
61 |


View Source
62 | 63 | 64 | -------------------------------------------------------------------------------- /tutorials/31_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 62 | 63 | 64 |
65 |
66 |


View Source
67 | 68 | 69 | -------------------------------------------------------------------------------- /tutorials/32_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 71 | 72 | 73 |
74 |
75 |


View Source
76 | 77 | 78 | -------------------------------------------------------------------------------- /tutorials/33_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 60 | 61 | 62 |
63 |
64 |


View Source
65 | 66 | 67 | -------------------------------------------------------------------------------- /tutorials/34_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 62 | 63 | 64 |
65 |
66 |


View Source
67 | 68 | 69 | -------------------------------------------------------------------------------- /tutorials/35_mouse.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 87 | 88 | 89 |
90 |
91 |


View Source
92 | 93 | -------------------------------------------------------------------------------- /tutorials/35_scrolltext.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 84 | 85 | 86 |
87 |
88 |


View Source
89 | 90 | 91 | -------------------------------------------------------------------------------- /tutorials/40_starfield.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 53 | 54 | 55 |
56 |
57 |


View Source
58 | 59 | 60 | -------------------------------------------------------------------------------- /tutorials/41_starfield.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 58 | 59 | 60 |
61 |
62 |


View Source
63 | 64 | 65 | -------------------------------------------------------------------------------- /tutorials/42_starfield.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 62 | 63 | 64 |
65 |
66 |


View Source
67 | 68 | 69 | -------------------------------------------------------------------------------- /tutorials/50_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 56 | 57 | 58 |
59 |
60 |


View Source
61 | 62 | 63 | -------------------------------------------------------------------------------- /tutorials/51_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 82 | 83 | 84 |
85 |
86 |


View Source
87 | 88 | 89 | -------------------------------------------------------------------------------- /tutorials/52_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 78 | 79 | 80 |
81 |
82 |


View Source
83 | 84 | 85 | -------------------------------------------------------------------------------- /tutorials/53_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 78 | 79 | 80 |
81 |
82 |


View Source
83 | 84 | 85 | -------------------------------------------------------------------------------- /tutorials/54_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 78 | 79 | 80 |
81 |
82 |


View Source
83 | 84 | 85 | -------------------------------------------------------------------------------- /tutorials/55_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 78 | 79 | 80 |
81 |
82 |


View Source
83 | 84 | 85 | -------------------------------------------------------------------------------- /tutorials/56_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/57_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 83 | 84 | 85 |
86 |
87 |


View Source
88 | 89 | 90 | -------------------------------------------------------------------------------- /tutorials/58_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 83 | 84 | 85 |
86 |
87 |


View Source
88 | 89 | 90 | -------------------------------------------------------------------------------- /tutorials/59_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/60_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/61_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 82 | 83 | 84 |
85 |
86 |


View Source
87 | 88 | 89 | -------------------------------------------------------------------------------- /tutorials/62_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 83 | 84 | 85 |
86 |
87 |


View Source
88 | 89 | 90 | -------------------------------------------------------------------------------- /tutorials/63_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 83 | 84 | 85 |
86 |
87 |


View Source
88 | 89 | 90 | -------------------------------------------------------------------------------- /tutorials/64_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/65_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/66_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 82 | 83 | 84 |
85 |
86 |


View Source
87 | 88 | 89 | -------------------------------------------------------------------------------- /tutorials/67_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 80 | 81 | 82 |
83 |
84 |


View Source
85 | 86 | 87 | -------------------------------------------------------------------------------- /tutorials/68_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 82 | 83 | 84 |
85 |
86 |


View Source
87 | 88 | 89 | -------------------------------------------------------------------------------- /tutorials/69_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 82 | 83 | 84 |
85 |
86 |


View Source
87 | 88 | 89 | -------------------------------------------------------------------------------- /tutorials/70_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 67 | 68 | 69 |
70 |
71 |


View Source
72 | 73 | 74 | -------------------------------------------------------------------------------- /tutorials/71_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 89 | 90 | 91 |
92 |
93 |


View Source
94 | 95 | 96 | -------------------------------------------------------------------------------- /tutorials/72_3d.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 85 | 86 | 87 |
88 |
89 |


View Source
90 | 91 | 92 | -------------------------------------------------------------------------------- /tutorials/80_music.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 38 | 39 | 40 | Here is a simple Way to Play "YM" file ;) 41 |
42 |
43 |


View Source
44 | 45 | 46 | -------------------------------------------------------------------------------- /tutorials/81_music.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 38 | 39 | 40 | Here is a simple Way to Play "MOD" file ;) 41 |
42 |
43 |


View Source
44 | 45 | 46 | -------------------------------------------------------------------------------- /tutorials/90_intro.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 122 | 123 | 124 |
125 |
126 |


View Source
127 | 128 | 129 | -------------------------------------------------------------------------------- /tutorials/91_intro.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 137 | 138 | 139 |
140 |
141 |


View Source
142 | 143 | 144 | -------------------------------------------------------------------------------- /tutorials/92_intro.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 113 | 114 | 115 |
116 |
117 |


View Source
118 | 119 | 120 | -------------------------------------------------------------------------------- /tutorials/index.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 46 | 47 | 48 |
49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 |
..:: BASIC ::..
How to Create a Canvas
How to Draw Lines
How to Draw Triangles
How to Draw Quads
How to Draw Images
How to Move an Image
How to Use TileSet and drawTile
How to Draw a Gradient BackGround
How to Draw a Simple Horizontal ScrollText
How to Draw a Simple Vertical Sinus At Char ScrollText
How to Draw a Simple Vertical ScrollText
How to Draw a Simple Vertical Sinus At Char ScrollText
Using the Mouse
68 | 69 |
70 | 71 | 72 | 88 | 98 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 |
..:: STARFIELD ::..
2D (Dots)
2D (img)
3D (Dots)
87 |
89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 |
..:: FX ::..
How to Use FX on a simple Image
How to Use a sin FX on a horizontal scrollText
How to Use a zoom FX on a vertial scrollText
97 |
99 | 100 | 101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 |
..:: 3D ::..
Simple Line
Simple Lines (describe an object)
WireFrameNormalLight FlatLight Gouraud
WireFrame HiddenNormalLight FlatLight Gouraud
Simple ColorNormalLight FlatLight Gouraud
Simple Color GlenZ StyleNormalLight FlatLight Gouraud
Texture MappingNormalLight FlatLight Gouraud
Texture Mapping GlenZNormalLight FlatLight Gouraud
Evironemental MappingNormal
vectorball (dot)
vectorball (img)
141 |
142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 |
..:: MUSIC ::..
Replay YM file
Replay MOD file
153 |
154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 |
..:: WEBGL and CODEF ::..
Using ThreeJS in a CODEF Canvas
Using CODEF in a THREEJS GL canvas
165 |
166 |
167 | A tiny Intro Merging some of the FrameWork functions ;) 168 |
169 | The Same as Above with a nice FX ;) 170 |
171 | Another tiny effect : the ribbon ;) 172 |

173 |
174 | 175 | 176 | 177 | 178 | -------------------------------------------------------------------------------- /tutorials/media/A Prehistoric Tale 7.ym: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/A Prehistoric Tale 7.ym -------------------------------------------------------------------------------- /tutorials/media/ball0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/ball0.png -------------------------------------------------------------------------------- /tutorials/media/ball1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/ball1.png -------------------------------------------------------------------------------- /tutorials/media/ball2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/ball2.png -------------------------------------------------------------------------------- /tutorials/media/ball3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/ball3.png -------------------------------------------------------------------------------- /tutorials/media/bubble0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/bubble0.png -------------------------------------------------------------------------------- /tutorials/media/bubble1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/bubble1.png -------------------------------------------------------------------------------- /tutorials/media/bubble2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/bubble2.png -------------------------------------------------------------------------------- /tutorials/media/codeflogotuto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/codeflogotuto.png -------------------------------------------------------------------------------- /tutorials/media/envmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/envmap.png -------------------------------------------------------------------------------- /tutorials/media/font1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/font1.png -------------------------------------------------------------------------------- /tutorials/media/font2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/font2.png -------------------------------------------------------------------------------- /tutorials/media/hmd3.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/hmd3.mod -------------------------------------------------------------------------------- /tutorials/media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/logo.png -------------------------------------------------------------------------------- /tutorials/media/texture1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/texture1.png -------------------------------------------------------------------------------- /tutorials/media/tileset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/N0NameN0/CODEF/61b8346dff51bbc2520e858dbf34c17f7c8ff4e6/tutorials/media/tileset.png --------------------------------------------------------------------------------