From 881f134f4d2fb4419d50382284e19b4f8ca4660e Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 17 Apr 2017 16:42:01 +0200 Subject: Review and recompile web examples --- docs/common/js/examples.js | 66 ++++++---------------------------------------- docs/common/js/games.js | 4 --- 2 files changed, 8 insertions(+), 62 deletions(-) (limited to 'docs/common') diff --git a/docs/common/js/examples.js b/docs/common/js/examples.js index 01f7611f..a06f4502 100644 --- a/docs/common/js/examples.js +++ b/docs/common/js/examples.js @@ -25,6 +25,7 @@ $(document).ready(function() { 'shapes_basic_shapes', 'shapes_colors_palette', 'shapes_logo_raylib_anim', + 'shapes_lines_bezier', 'textures_logo_raylib', 'textures_image_loading', 'textures_rectangle', @@ -35,18 +36,19 @@ $(document).ready(function() { 'textures_image_drawing', 'text_sprite_fonts', 'text_bmfont_ttf', - 'text_rbmf_fonts', + 'text_raylib_fonts', 'text_format_text', 'text_writing_anim', 'text_ttf_loading', 'text_bmfont_unordered', + 'text_input_box', 'models_geometric_shapes', 'models_box_collisions', 'models_billboard', 'models_obj_loading', 'models_heightmap', 'models_cubicmap', - 'models_ray_picking', + 'models_mesh_picking', 'shaders_model_shader', 'shaders_shapes_textures', 'shaders_custom_uniform', @@ -56,68 +58,16 @@ $(document).ready(function() { 'audio_module_playing', 'audio_raw_stream']; - var exampleDesc = [ - 'basic window', - 'input keys', - 'input mouse', - 'mouse wheel', - 'input gamepad', - 'random values', - 'color select', - 'drop files', - 'storage values', - 'gestures detection', - '3d mode', - '3d picking', - '3d camera free', - '3d camera first person', - '2d camera', - 'world screen', - 'vr simulator', - 'logo raylib shapes', - 'basic shapes', - 'colors palette', - 'logo raylib anim', - 'logo raylib texture', - 'image loading', - 'texture rectangle', - 'src-dest. rectangles', - 'texture to image', - 'raw data loading', - 'image processing', - 'image drawing', - 'sprite fonts', - 'bmfonts ttf', - 'rbmf fonts', - 'text formatting', - 'writing animation', - 'ttf loading', - 'bmfont unordered', - 'geometric shapes', - 'box collisions', - 'billboard drawing', - 'obj loading', - 'heightmap loading', - 'cubesmap loading', - 'mesh ray picking', - 'model shader', - 'shapes textures shader', - 'custom uniform in shaders', - 'postprocessing shaders', - 'standard lighting', - 'sound loading', - 'music streaming', - 'module playing', - 'raw stream']; - for (var i = 0; i < exampleName.length; i++) { var filterType = exampleName[i].substring(0, exampleName[i].indexOf("_")); + var exampleBase = exampleName[i].slice(exampleName[i].indexOf('_') + 1); + var exampleDesc = exampleBase.replace('_', ' '); $('#container').append( '
' + - '' + - '

' + exampleDesc[i] + '

' + + '' + + '

' + exampleDesc + '

' + '
'); $('#container a .extext').hide(); diff --git a/docs/common/js/games.js b/docs/common/js/games.js index 659c2a1a..7f4a3987 100644 --- a/docs/common/js/games.js +++ b/docs/common/js/games.js @@ -16,7 +16,6 @@ $(document).ready(function() { 'sample_tetris', 'sample_gold_fever', 'sample_doom', - 'game_raylib_features', 'game_drturtle', 'game_just_do', 'game_skully_escape', @@ -42,7 +41,6 @@ $(document).ready(function() { 'tetris', 'gold fever', 'doom', - 'raylib Features DEMO', 'Dr Turtle & Mr Gamera', 'JUST DO', 'Skully Escape', @@ -83,8 +81,6 @@ $(document).ready(function() { */ } - if (exampleName[i] == 'game_koala_seasons') linkTag = ''; - $('#container').append( '
' + linkTag + '

' + exampleDesc[i] + '

' + -- cgit v1.2.3 From 9a515ae9db9f63d5bfa8545cfbbfdce683daf5f6 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 23 Apr 2017 19:28:53 +0200 Subject: Review examples list -IN PROGRESS- --- docs/common/js/games.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs/common') diff --git a/docs/common/js/games.js b/docs/common/js/games.js index 7f4a3987..67a9e502 100644 --- a/docs/common/js/games.js +++ b/docs/common/js/games.js @@ -14,13 +14,12 @@ $(document).ready(function() { 'sample_space_invaders', 'sample_floppy', 'sample_tetris', - 'sample_gold_fever', - 'sample_doom', 'game_drturtle', 'game_just_do', 'game_skully_escape', 'game_koala_seasons', 'game_light_my_ritual', + 'game_wave_collector', 'user_raymario', 'user_crazyball', 'user_tictactoe', @@ -39,13 +38,12 @@ $(document).ready(function() { 'space invaders', 'floppy', 'tetris', - 'gold fever', - 'doom', 'Dr Turtle & Mr Gamera', 'JUST DO', 'Skully Escape', 'Koala Seasons', 'LIGHT MY RITUAL', + 'Wave Collector', 'RayMario (Victor Fisac)', 'CrazyBall (Victor Fisac)', 'Tic-Tac-Toe (LelixSuper)', -- cgit v1.2.3