8 ms·
Block-breaking game in vim 8.0
- mahmoudhossam 9y agoDoes this work with Neovim or vim only?
- johngrib 9y agoMaybe vim 8.0 only. I did not tested in Neovim.
- figgis 9y agoIf it works in vim it should work in neovim?
- davidbanham 9y agoIt doesn't work in my neovim, sadly. Lots of errors. Most common seems to be: E117: Unknown function: funcref And similar.
- justinmk 9y agofuncref() is in Nvim 0.2. Old versions of Vim also don't have funcref() ...
- clishem 9y agoIt was forked before vim 8.0 was released and neovim doesn't try to keep its fork compatible with vim. Consequently it is not.
- justinmk 9y ago> neovim doesn't try to keep its fork compatible with vim. Nvim tracks all Vim patches[1]. _Only_ the job-control API differs. All other Vim patches are merged into Nvim reguarly, including new Vimscript features like partials, lambdas, etc. Nearly all 7.4.x patches (except for job-control) have been merged: https://neovim.io/doc/reports/vimpatch/ https://neovim.io/doc/reports/vimpatch/ Hundreds of 8.0.x patches have been merged also, but they won't be in that report until we finish the last couple 7.4.x patches. [1] https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim https://github.com/neovim/neovim/wiki/Merging-patches-from-u...
- asdfpoiuqwer 9y agoWorks for me; nvim v0.2.0
- johngrib 9y agohttps://github.com/johngrib/vim-game-code-break/issues/12 https://github.com/johngrib/vim-game-code-break/issues/12
- 7373737373 9y agoRelated, a self destroying game I built some time ago: https://void4.github.io/ https://void4.github.io/ The yellow dot is the instruction pointer, the red dots represent the program memory. If you hit the ball just right you can introduce graphic glitches. Most times, the instruction pointer gets out of bounds however.
- bitwize 9y agoThat's kinna like the story about the guys who coded a Tron lightcycle game on the Apple II. Failure to properly bounds-check the lightcycle position meant that the cycles could be driven off screen, corrupting main memory and the game code itself -- much like what happened in the move Tron.
- colejohnson66 9y agoStory: http://blog.danielwellman.com/2008/10/real-life-tron-on-an-apple-iigs.html http://blog.danielwellman.com/2008/10/real-life-tron-on-an-a...
- 7373737373 9y agoOne of the most brilliant applications of this concept is the Pokémon Yellow Total Control Hack: http://aurellem.org/vba-clojure/html/total-control.html http://aurellem.org/vba-clojure/html/total-control.html Similarly, arbitrary code execution in Super Mario World: https://www.youtube.com/watch?v=OPcV9uIY5i4 https://www.youtube.com/watch?v=OPcV9uIY5i4 It's like transforming a chess game into Mikado just by playing it.
- Asooka 9y agoOne thing I've often wanted to do, but didn't have the time to, was to take Turing Drawings: https://github.com/maximecb/Turing-Drawings https://github.com/maximecb/Turing-Drawings ( faster asm.js variant here: https://github.com/darius/Turing-Drawings https://github.com/darius/Turing-Drawings ), which runs a random Turing machine to generate abstract art and put the machine description in the image itself, so it could self-modify.
- aerique 9y agoWelcome to the Emacs family, Vim. We have been waiting for you.
- hultner 9y agoYou mean M-x welcome
- jancsika 9y agoeverywheres$ vim Welcome... mostwheres$ emacs bash: emacs: command not found
- hobarrera 9y agovi is pretty usual to find in a default installation, but Vim? Debian is the only OS I've come across that includes it (and aliases it to vi, for some stupid reason!). (Note: Vim user here)
- mikestew 9y agomacOS aliases vi to vim: mymacbook:~ mikestew$ ls -lah /usr/bin/vi lrwxr-xr-x 1 root wheel 3B Jun 7 12:21 /usr/bin/vi -> vim Seems like Debian, as you describe it, went the reverse route for some odd reason. Is that right, I type in vim on Debian and vi runs?
- hultner 9y agoFor those who like this I can tell you about another thriving gaming platform... Emacs! You can out of the box play all your favorites such as M-x tetris M-x snake M-x solitaire Just as well as multiplayer classics M-x pong To find out more and get the latest games check out https://www.emacswiki.org/emacs/CategoryGames#toc1 https://www.emacswiki.org/emacs/CategoryGames#toc1 Great OS, the only thing that's really missing is a decent text editor.
- qb45 9y agoAnd there was pinball in Microsoft Word 97.
- Asooka 9y agoNothing beats Microsoft platforms for gaming though. Excel 97 has a built-in flight sim. Can Emacs do THAT?
- tambourine_man 9y agoOr Hall Of Tortured Souls (Easter Egg) Excel 95: https://www.youtube.com/watch?v=WGqD-J_pRvs https://www.youtube.com/watch?v=WGqD-J_pRvs
- melling 9y agoIt was written with Excel macros or Basic, or someone wrote the C program and compiled it within the Excel binary? The point of Emacs is that you can build this stuff with its Lisp language. I imagine that you can write a crappy flight simulator with it.
- UncleSlacky 9y agoThere's a decent Pac-Man implementation in Excel: http://www.geocities.jp/nchikada/pac/ http://www.geocities.jp/nchikada/pac/ Edit: I see he's added Space Invaders too.
- kazinator 9y agoThe question is: can Excel 97 do that with its extension language.
- CyberDildonics 9y agoHow about breakout using the Nuke compositor and a python script: https://www.youtube.com/watch?v=zxTRbh7K1jQ https://www.youtube.com/watch?v=zxTRbh7K1jQ
- z3t4 9y agoGreat for companies that measures productivity by keystrokes per minute. (sarcasm)
- kensai 9y agoI guess after a long day at work, looking at your project's code, this is a good relaxing "exercise".
- trustworthy 9y agoThis is absolutely amazing! I encourage everyone to skim over the code! It's surprisingly readable Vimscript. https://github.com/johngrib/vim-game-code-break/tree/master/autoload/VimGameCodeBreak https://github.com/johngrib/vim-game-code-break/tree/master/...
- kazinator 9y agoIs "Breakout" still a forbidden word due to trademarking?