• Content count

  • Joined

  • Last visited

1 Follower

About speedo

  • Rank

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  1. how to use phaser auto completion in brackets -------------------------------------------- install ternific (extension) [brackets] after that, go to :: for windows::(mac and ubuntu might be quite similar) C:\Users\username\AppData\Roaming\Brackets\extensions\user\ternific\node_modules\tern\plugin and paste phaser.js (auto completion api) (right click and save) http://redchilligame.com/tutorials/vim_phaser/js/phaser.js create .tern-project at the root dir. of your project file and paste and save { "ecmaVersion": 6, "libs": ["browser"], "loadEagerly": [], "plugins": { "phaser" : {}, "doc_comment": true } } enable ternific:: at right top side of file option menu, click the ternific option file>ternific --> now you can use phaser autocompletion with tern-documentation/tern-def bonus:: install phaser-chain extension ( for phaser api documentation) credits:: http://redchilligame.com/how_to_use_phaser_with_vim
  2. Pixi.js Showcase

    This is a casino slot game made with pixi.js with high score mode "summerslam" migrated from as3 - to - pixi.js => rendering is super fast http://redchilligame.com/assets/html_games/summerslam/summerslam
  3. summerslam

    This is a casino slot game made with pixi.js with high score mode "summerslam" migrated from as3 - to - pixi.js => rendering is super fast http://redchilligame.com/assets/html_games/summerslam/summerslam
  4. for NEOVIM auto-completion for phaser:: neocomplete doesn't work in neovim so, switch to deoplete.nvim (its awesome). to use auto-completion with-out the "ctrl x + ctrl o" see following steps:: requirements:: 1] deoplete.nvim (note it requires python3 :checkhealth) For vim-plug :: --> init.vim:: if has('nvim') Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } else Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' endif " Use deoplete. let g:deoplete#enable_at_startup = 1 2] deoplete-ternjs (bridge for linking tern plugs) --> init.vim:: Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } 3] tern_for_vim (it is bread and butter) --> init.vim:: Plug 'marijnh/tern_for_vim' then, put phaser auto completion api to ...tern_for_vim>node_modules>tern>plugin ***for detail follow point no [3] from http://redchilligame.com/how_to_use_phaser_with_vim 3] Now the most important step :: install tern globally sudo npm install -g tern and put another phaser auto completion api to ...node_modules>tern>plugin this time globally also eg:: /usr/lib/node_modules/tern/plugin/.... And BOOM !! there you have it all set Now all the phaser auto-completion is shown as you type . to use tern hints ---> :TernType and :TernDoc (in vim the :TernType and :TernDoc is automatically displayed when matched , no need to type for neocomplete) and if the auto-completion list is not shown then only use "ctrl x + ctrl o" and if you use VIM :: do not toggle off neocomplete by default make a swith key to toggle off/on and use "CTRL X + CTRL O" for unknown listing of phaser auto-completion and switch back if satisfied . for NEOVIM no need to worry about this. (since neocomplete is not needed) --vim/neovim + phaser Rocks!!!
  5. I mainly use vim but if u want to use neovim for phaser. to use phaser with neovim (all the steps and plugins are same as vim configuration) for neovim:: install nodejs. (For lookup http://redchilligame.com/how_to_use_phaser_with_vim ) install neovim:: To be able to use add-apt-repository you may need to install software-properties-common: sudo apt-get install software-properties-common sudo add-apt-repository ppa:neovim-ppa/stable sudo apt-get update sudo apt-get install neovim Prerequisites for the Python modules: sudo apt-get install python-dev python-pip python3-dev python3-pip To use Vim Python 2/3 plugins with Nvim: - For Python 2 plugins $ sudo pip2 install --upgrade neovim or for the current user: $ pip2 install --user --upgrade neovim - For Python 3 plugins $ sudo pip3 install --upgrade neovim or for the current user: $ pip3 install --user --upgrade neovim put this configuration in init.vim file:: let g:python_host_prog = '/path/to/python' (*** eg:: /usr/bin/python2.7) let g:python3_host_prog = '/path/to/python3' To disable Python 2 support: let g:loaded_python_provider = 1 To disable Python 3 support: let g:loaded_python3_provider = 1 plugin manager :: vim-plug (***currently used for testing) tern plug:: tern_for_vim *** for vim-plug :: Plug 'marijnh/tern_for_vim' To user tern feature in vim/neovim - must be compiled with python. check if neovim is compiled with python(2/3) ? :checkhealth (to see more status or :version(for short def)) eg; configuration location:: home dir:: .config -----nvim -------init.vim .vim -----plugged --------tern_for_vim (for installation follow ) ------------node_modules -------------- ../tern/plugin and for phaser auto-completion follow http://redchilligame.com/how_to_use_phaser_with_vim ### phaser auto completion works without vim omni completion ctrl x + ctrl o also. For that.. auto completion plugin ( neocomplet ..) vim/nvim must be compiled with +lua , +python same goes for tern plugin. And disable autocmd. Omnisesrch. types in vimrc/imit.vim in doc. Of neocomplete github configuration file . ######## useful link :: https://github.com/neovim/neovim/wiki/Installing-Neovim https://neovim.io/doc/user/provider.html#provider-python Test result phaser with neovim ::
  6. you can do everything in vim ("Old is Gold"). but if you want to use nvim then, for nvim (neovim) ; put the phaser auto-completion api to ...tern/plugin/.. or main .npm folder for global as described in http://redchilligame.com/how_to_use_phaser_with_vim follow this links:: for using vimrc for nvim https://github.com/neovim/neovim/wiki/FAQ https://groups.google.com/forum/#!topic/neovim/Nuki1lAnZ04 for ternjs :: https://github.com/carlitux/deoplete-ternjs https://github.com/roxma/nvim-cm-tern
  7. Just to be sure, I have tested in all platform as described in http://redchilligame.com/how_to_use_phaser_with_vim and it works very well (100/100 %). recheck:: -> python(2,3) ? -> in home dir:: place.. ->.vimrc/_vimrc(win) ->.vim ->bundle ->tern_for_vim ->node_modules .../plugin/ --> give it a try with vundle plugin manager --> re-check your vimrc file(path/calling..) and folder location once. --> install all the requirement plugins for associative plugins see doc. --> if all is set it will work (100/100 %) keep trying (VIM + PHASER ROCKS!!) Test result with tern plug both in gvim/vim:: phaser with vim in ubuntu [linux]:: phaser with vim in fedora [linux]:: phaser with vim in windows 10::
  8. (vim + phaser rocks) so as per your steps, all the installation steps are correct in reference to http://redchilligame.com/how_to_use_phaser_with_vim . its the problem with the tern_for_vim configuration since you are using vim-plug "plugin manager" (there's no error/problem with the vundle vim "plugin manager"). do any of the following steps:: reference:: https://github.com/ternjs/tern_for_vim/blob/master/autoload/tern.vim 1] goto you tern_for_vim folder ..autoload/tern.vim line 15 since Ubuntu; change node --> "nodejs" let g:tern#command = ["node", expand('<sfile>:h') . '/../node_modules/tern/bin/tern', '--no-port-file'] to let g:tern#command = ["nodejs", expand('<sfile>:h') . '/../node_modules/tern/bin/tern', '--no-port-file'] OR (if the above steps doesn't work then,) let g:tern#command = ['tern'] OR (if the above steps doesn't work then,) let g:tern#command = [ '${pkgs.nodePackages.tern}/bin/tern' ] 2]vim-plug configuration:: in vimrc:: call plug#begin('~/.vim/plugged') change ~ to $HOME ("its equivalent actually but, give it a try") 3] check if python is installed/or not 4] use vundle vim "plugin manager" if it still doesn't work in vundle, in vimrc:: change ~ to $HOME set rtp+=~/.vim/bundle/Vundle.vim and add this, call vundle#begin('$HOME/.vim/bundle/') -->hope this helps
  9. I think , you might have missed some steps for configuration phaser with vim in http://redchilligame.com/how_to_use_phaser_with_vim - according to the error you have posted:: /home/user/game/phaser.js:16034 tern is pointing to wrong api plugin check this steps:: 1] if linux:: install tern inside tern_for_vim folder using sudo npm install tern if windows:: if you use "neocomplete" instead of "youcompleteme" check if vim is compiled with +lua 2] you have correctly downloaded and copied phaser.js auto-completion api to the ..tern/plugin/ folder (*** note:: the official phaser.js != to phaser.js auto-complete api , they are two different entities :: one is framework another is auto-completer) *** download and copy the phaser.js auto-complete api (**not the official phaser.js ) from [point no.4] of the link provided in http://redchilligame.com/how_to_use_phaser_with_vim --this will solve most of the problem. 3] there is ".tern-project" - root of dir. -- and tell me if that works (vim + phaser rocks) " happy coding"
  10. if you followed all the steps correctly for setting vim with phaser in http://redchilligame.com/how_to_use_phaser_with_vim then, there shouldn't be any problem.(if the steps are correct). if the phaser auto completion plugin is installed in correct dir. then , its not necessary to type :TernDef (vim will auto display TernDef panel at bottom/top ). according to error you have posted:: at loadPlugins (/home/espace/.vim/plugged/tern_for_vim/node_modules/tern/bin/tern:136:15) the phaser auto completion directory folder is mismatched when calling:: set it to ../tern_for_vim/node_modules/tern/plugin/.. if set correctly you will see :: (ref: pic below)
  11. Guide on using Phaser auto completion with Vim

    **Updated.. **added more detail steps - options for handling bugs for phaser auto-completion in vim [ bug section] http://redchilligame.com/how_to_use_phaser_with_vim
  12. if you are coding all the javascript/ phaser inside main html file and want phaser auto-completion then, in vim, :set ft=javascript (to switch back :set ft=html) **this will allow you to list the .js plugin in current working file //for handling further bug on phaser auto-completion with vim// http://redchilligame.com/how_to_use_phaser_with_vim
  13. Hey guys, for all Vim users , check out my tutorial on how to use phaser with vim (includes auto-completion) http://redchilligame.com/how_to_use_phaser_with_vim