Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
####### # # E-scripts on Love2D. # # Note 1: use the eev command (defined in eev.el) and the # ee alias (in my .zshrc) to execute parts of this file. # Executing this file as a whole makes no sense. # An introduction to eev can be found here: # # (find-eev-quick-intro) # http://angg.twu.net/eev-intros/find-eev-quick-intro.html # # Note 2: be VERY careful and make sure you understand what # you're doing. # # Note 3: If you use a shell other than zsh things like |& # and the for loops may not work. # # Note 4: I always run as root. # # Note 5: some parts are too old and don't work anymore. Some # never worked. # # Note 6: the definitions for the find-xxxfile commands are on my # .emacs. # # Note 7: if you see a strange command check my .zshrc -- it may # be defined there as a function or an alias. # # Note 8: the sections without dates are always older than the # sections with dates. # # This file is at <http://angg.twu.net/e/love.e> # or at <http://angg.twu.net/e/love.e.html>. # See also <http://angg.twu.net/emacs.html>, # <http://angg.twu.net/.emacs[.html]>, # <http://angg.twu.net/.zshrc[.html]>, # <http://angg.twu.net/escripts.html>, # and <http://angg.twu.net/>. # ####### # «.love» (to "love") # «.love-deb» (to "love-deb") # «.love-deb-src» (to "love-deb-src") # «.love-git» (to "love-git") # «.tableauxprover» (to "tableauxprover") # «.love-vilua» (to "love-vilua") # «.geometry» (to "geometry") # «.tut-scrolling-shooter» (to "tut-scrolling-shooter") # «.wiki-download» (to "wiki-download") # «.love-minor-mode» (to "love-minor-mode") # «.curso-de-love2d» (to "curso-de-love2d") # «.sigusr1» (to "sigusr1") ##### # # Löve # 2009sep07 # ##### # «love» (to ".love") # (find-es "love") # http://www.love2d.org/download # http://love2d.org/wiki/index.php?title=Main_Page # http://downloads.sourceforge.net/love/love-0.5-0.deb # http://downloads.sourceforge.net/love/love-0.5-0.tar.gz # http://www.love2d.org/examples/examples.love # http://www.love2d.org/tutorials/001/hamsterball.love # http://www.love2d.org/documentation?page=tutorial&id=001 # (add-to-alist 'auto-mode-alist '("\\.love\\'" . archive-mode)) #* sudo dpkg -i $S/http/downloads.sourceforge.net/love/love-0.5-0.deb #* rm -Rv ~/usrc/love-0.5-0/ tar -C ~/usrc/ -xvzf \ $S/http/downloads.sourceforge.net/love/love-0.5-0.tar.gz cd ~/usrc/love-0.5-0/ #* # (code-c-d "love" "~/usrc/love-0.5-0/") # (find-lovefile "") # (find-lovefile "readme.txt") # (find-lovesh "find * | sort") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) love $S/http/www.love2d.org/examples/examples.love love $S/http/www.love2d.org/tutorials/001/hamsterball.love # 2011oct03: # (find-status "love") # (find-vldifile "love.list") # (find-udfile "love/") ##### # # love-deb # 2025feb27 # ##### # «love-deb» (to ".love-deb") # (find-status "love") # (find-vldifile "love.list") # (find-udfile "love/") apti love ##### # # love (debian source) # 2025feb27 # ##### # «love-deb-src» (to ".love-deb-src") # (find-debpkg-links "love") # (find-status "love") # (find-vldifile "love.list") # (find-udfile "love/") # https://packages.debian.org/source/bullseye/love # (find-apt-get-source-links "love") # (code-c-d "lovedebsrc" "/tmp/d/love-11.3/") # (find-lovedebsrcsh "find * | sort") # (find-lovedebsrcfile "") # (find-lovedebsrcfile "src/scripts/") # (find-zsh "availabledebs | sort" "love") # (find-zsh "availabledebs | sort | grep love") # (find-status "love") # (find-vldifile "love.list") # (find-udfile "love/") # (find-status "love-doc") # (find-vldifile "love-doc.list") # (find-udfile "love-doc/") # (find-udfile "love/html/") # (find-udw3m "love/html/love.html") # (find-udw3m "love/html/love.graphics.html") # (find-udw3m "love/html/love.graphics.draw.html") # (find-udw3m "love/html/love.graphics.rectangle.html") # file:///usr/share/doc/love/html/love.html * (eepitch-shell3) * (eepitch-kill) * (eepitch-shell3) https://wiki.debian.org/Games/Love2d ##### # # Love2d from git # 2025feb27 # ##### # «love-git» (to ".love-git") # (find-es "lua5" "gamely-cli.lua") # (find-apt-get-source-links "love") # https://love2d.org/wiki/Building_L%C3%96VE # (find-git-links "https://github.com/love2d/love" "love") # https://github.com/love2d/love * (eepitch-shell3) * (eepitch-kill) * (eepitch-shell3) # rm -Rfv ~/usrc/love/ cd ~/usrc/ git clone https://github.com/love2d/love cd ~/usrc/love/ git checkout 11.4 git clean -dfx git reset --hard # (code-c-d "love" "~/usrc/love/") # (find-lovesh "find * | sort") # (find-lovefile "") # (find-lovefile "readme.md") # (find-lovefile "readme.md" "### *nix") # (find-lovefile "Makefile") # (find-lovefile "Makefile" "install: install-recursive") # (find-lovefile "src/modules/love/") # (find-lovefile "src/modules/love/boot.lua") # (find-lovefile "src/modules/love/boot.lua" "main.lua") # (find-lovefile "src/modules/love/boot.lua" "conf.lua") platform/unix/automagic ./configure make sudo make install |& tee omi cd ~/usrc/love/ sudo make uninstall |& tee omu love # (find-angg ".emacs" "love2d") * (eepitch-love) * (eepitch-kill) * (eepitch-love) * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) # (find-fline "~/LOVE2D/") love ~/LOVE2D/1.lua love ~/LOVE2D/2.lua love ~/LOVE2D/conf.lua # Could not find a package configuration file provided by "SDL3" (requested # version 3.1.3) with any of the following names: # # SDL3Config.cmake # sdl3-config.cmake # (find-other-debian-links "sdl3-config.cmake") # (find-zsh "availabledebs | sort | grep sdl") # (find-zsh "availabledebs | sort | grep sdl | grep dev") ##### # # TableauxProver (uses Löve) # 2011oct03 # ##### # «tableauxprover» (to ".tableauxprover") # http://www.tecmf.inf.puc-rio.br/TableauxProver # http://www.tecmf.inf.puc-rio.br/TableauxProver/Applet * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) sudo dpkg -i ~/tmp/tableauxprover.deb sudo dselect update # (find-status "tableauxprover") # (find-vldifile "tableauxprover.list") # (find-udfile "tableauxprover/") # (find-fline "/usr/bin/TableauxProver") # (find-fline "/usr/share/TableauxProver/TableauxProver.love") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) TableauxProver # ^ yields errors "Bruno Lopes" <bvieira@inf.puc-rio.br> Oi Bruno, eu consegui instalar o deb so TableauxProver, mas ele está bem quebrado... ó: /home/edrx/e(edrx:re)# TableauxProver This is LOVE 0.5.0 (Salted Nuts). INIT love.filesystem [PhysFS] INIT love.graphics [OpenGL/DevIL/FreeType] INIT love.audio [SDL_mixer] INIT love.timer [SDL] INIT love.mouse [SDL] INIT love.keyboard [SDL] INIT love.physics [Box2D] INIT love.lib [LuaSocket] INIT love.joystick [SDL] INIT love.system [Generic] [string "main.lua"]:9: module 'TableauxProver' not found: no field package.preload['TableauxProver'] no file './TableauxProver.lua' no file '/usr/local/share/lua/5.1/TableauxProver.lua' no file '/usr/local/share/lua/5.1/TableauxProver/init.lua' no file '/usr/local/lib/lua/5.1/TableauxProver.lua' no file '/usr/local/lib/lua/5.1/TableauxProver/init.lua' no file '/usr/share/lua/5.1/TableauxProver.lua' no file '/usr/share/lua/5.1/TableauxProver/init.lua' no file './TableauxProver.so' no file '/usr/local/lib/lua/5.1/TableauxProver.so' no file '/usr/lib/lua/5.1/TableauxProver.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file "TableauxProver" in LOVE game directories. stack traceback: [C]: in function 'require' [string "main.lua"]:9: in main chunk QUIT love.system [Generic] QUIT love.joystick [SDL] QUIT love.lib [LuaSocket] QUIT love.physics [Box2D] QUIT love.keyboard [SDL] QUIT love.mouse [SDL] QUIT love.timer [SDL] QUIT love.audio [SDL_mixer] QUIT love.graphics [OpenGL/DevIL/FreeType] QUIT love.filesystem [PhysFS] /home/edrx/e(edrx:re)# O que eu preciso fazer pra ele rodar? 8-| Mudando de assunto um pouco: eu quase virei desenvolvedor do Debian em 2000... acabei desistindo e ficando ocupado demais com outras coisas, mas aprendi um bocado, e tenho um repositório com um pacote meu, feito de um modo bem limpinho (aparentemente seguindo todas as guidelines, acho que ninguém me puxaria a orelha): http://angg.twu.net/debian/ Se você quiser eu posso por o .deb do TablearProver - assim que a gente consertar ele - no meu repositório. Interessa? [[]], Eduardo Ochs eduardoochs@gmail.com http://angg.twu.net/ ##### # # Löve: vilua # 2011nov21 # ##### # «love-vilua» (to ".love-vilua") # (find-angg ".emacs" "love2d") # (find-angg "LOVE2D/") # (find-angg "LOVE2D/conf.lua") # vilua: # http://article.gmane.org/gmane.comp.lang.lua.general/85645 # (find-fline "~/tmp/vilua-2011nov20.love") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) # love ~/tmp/vilua-2011nov20.love cp -v ~/tmp/vilua-2011nov20.love /tmp/vilua.love # love /tmp/vilua.love * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) rm -Rv /tmp/vilua/ mkdir /tmp/vilua/ # unzip -d /tmp/vilua/ /tmp/vilua.love unzip -d /tmp/vilua/ ~/tmp/vilua-2011nov20.love cp -v ~/LOVE2D/conf.lua /tmp/vilua/ # cd /tmp/vilua/ && zip /tmp/vilua2.love * cd /tmp/vilua/ && zip ~/LOVE2D/vilua2.love * # love /tmp/vilua2.love # (find-fline "/tmp/vilua.love") # (find-fline "/tmp/vilua/conf.lua") * (eepitch-love) * (eepitch-kill) * (eepitch-love) help point(10, 20) line(20, 30, 40, 50) dofile "/home/edrx/LUA/lua50init.lua" PP{1,2} os.exit() https://github.com/ilua/ilua Steve Donovan's Interactive Lua http://lua-users.org/wiki/InteractiveLua ##### # # Geometry # 2011dec05 # ##### # «geometry» (to ".geometry") # (find-udw3m "love/html/love.filesystem.html") # http://love2d.org/wiki/Config_Files function love.conf(t) t.screen.width = 1024 t.screen.height = 768 end <edrx> a very quick and newbie-ish question... I am starting to use love2d, and dirk laurie's vilua - http://article.gmane.org/gmane.comp.lang.lua.general/85645 - seems to be the right way to start for me, because I am going to do most of my development from emacs, using this: http://angg.twu.net/eev-current/eepitch.readme.html <edrx> anyway, the question is: how do I set the geometry of the love window to, say, 500x500? can I do that via a command-line option? (edrx) https://love2d.org/wiki/Category:Tutorials http://nova-fusion.com/2011/06/14/a-guide-to-getting-started-with-love2d/ https://love2d.org/wiki/Category:Libraries https://github.com/Yonaba/30log function love.draw( ) love.graphics.circle( "fill", 100, 100, 50 ) end ##### # # tut-scrolling-shooter # 2020feb08 # ##### # «tut-scrolling-shooter» (to ".tut-scrolling-shooter") # https://love2d.org/wiki/Category:Tutorials # http://osmstudios.com/tutorials/your-first-love2d-game-in-200-lines-part-1-of-3 # https://github.com/DawsonG/Love2d-Tutorial-Scrolling-Shooter # (find-git-links "https://github.com/DawsonG/Love2d-Tutorial-Scrolling-Shooter" "love2dtutscrsho") * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) # rm -Rfv ~/usrc/Love2d-Tutorial-Scrolling-Shooter/ cd ~/usrc/ git clone https://github.com/DawsonG/Love2d-Tutorial-Scrolling-Shooter cd ~/usrc/Love2d-Tutorial-Scrolling-Shooter/ # (code-c-d "tutscrshoo" "~/usrc/Love2d-Tutorial-Scrolling-Shooter/") # (find-tutscrshoofile "") # (find-tutscrshoofile "Part1/") cd ~/usrc/Love2d-Tutorial-Scrolling-Shooter/Part1/ love . cd ~/usrc/Love2d-Tutorial-Scrolling-Shooter/Part2/ love . ##### # # Downloading a local copy of the Love2D wiki # 2020feb08 # ##### # «wiki-download» (to ".wiki-download") # https://www.reddit.com/r/love2d/comments/9bs4px/any_way_to_make_the_entire_love2d_documentation/ # https://love2d.org/ # https://love2d.org/wiki/Main_Page # If you want to read this wiki without an internet connection, you # can download a weekly generated package for offline viewing _here_. # https://love2d.org/wiki.zip * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) rm -Rv /tmp/love2d-wiki/ mkdir /tmp/love2d-wiki/ cd /tmp/love2d-wiki/ unzip $S/https/love2d.org/wiki.zip # (find-fline "/tmp/love2d-wiki/") https://love2d.org/wiki/love ##### # # love-minor-mode # 2025feb27 # ##### # «love-minor-mode» (to ".love-minor-mode") # https://github.com/ejmr/love-minor-mode ##### # # Curso de Love2D do Jorge Rezende # 2025mar01 # ##### # «curso-de-love2d» (to ".curso-de-love2d") # https://www.youtube.com/playlist?list=PLGVGJmkQU-wf95XWlS0bpaLEzvqFyLJb0 # https://www.youtube.com/watch?v=QIVff6aFKvA&list=PLGVGJmkQU-wf95XWlS0bpaLEzvqFyLJb0&index=1&pp=iAQB # https://www.youtube.com/watch?v=xUsptPP6p90&list=PLGVGJmkQU-wf95XWlS0bpaLEzvqFyLJb0&index=2&pp=iAQB # https://www.youtube.com/watch?v=c7Vy4wULIlc&list=PLGVGJmkQU-wf95XWlS0bpaLEzvqFyLJb0&index=3&pp=iAQB # https://www.youtube.com/watch?v=Tm2jtvFkd08&list=PLGVGJmkQU-wf95XWlS0bpaLEzvqFyLJb0&index=4&pp=iAQB # (find-youtubedl-links "/tmp/" "CURSO_DE_LUA_E_LOVE2D_-_COMO_INICIAR_UM_PROJETO_E_DESENHAR_NA_TELA_CRIE_JOGOS_COM_LUA_E_LOVE2D" "xUsptPP6p90" ".mkv" "love2dcomoiniciar") # (code-video "love2dcomoiniciarvideo" "/tmp/CURSO_DE_LUA_E_LOVE2D_-_COMO_INICIAR_UM_PROJETO_E_DESENHAR_NA_TELA_CRIE_JOGOS_COM_LUA_E_LOVE2D-xUsptPP6p90.mkv") # (find-love2dcomoiniciarvideo "0:00") # (find-love2dcomoiniciarvideo "3:17" "love.draw") # (find-love2dcomoiniciarvideo "3:37" "love.update") # (find-love2dcomoiniciarvideo "4:30" "hello world") # (find-youtubedl-links "/tmp/" "CURSO_DE_LUA_E_LOVE2D_-_COMO_DESENHAR_ELEMENTOS_NA_TELA" "c7Vy4wULIlc" ".webm" "love2dtela") # (code-video "love2dtelavideo" "/tmp/CURSO_DE_LUA_E_LOVE2D_-_COMO_DESENHAR_ELEMENTOS_NA_TELA-c7Vy4wULIlc.webm") # (find-love2dtelavideo "0:00") # (find-love2dtelavideo "0:43" "na última aula") # (find-love2dtelavideo "1:13" "love.graphics.circle") # (find-love2dtelavideo "2:16" "fill") # (find-love2dtelavideo "3:18" "setColor") # (find-love2dtelavideo "4:35" "love.load") # (find-love2dtelavideo "5:09" "newImage") # (find-love2dtelavideo "5:52" "images/sprite") # (find-love2dtelavideo "6:21" "draw") # (find-youtubedl-links "/tmp/" "CRIE_JOGOS_COM_LUA_E_LOVE2D_-_COMO_TRATAR_COMANDO_DE_TECLADO_E_MOUSE" "Tm2jtvFkd08" ".mkv" "comotratar") # (code-video "comotratarvideo" "/tmp/CRIE_JOGOS_COM_LUA_E_LOVE2D_-_COMO_TRATAR_COMANDO_DE_TECLADO_E_MOUSE-Tm2jtvFkd08.mkv") # (find-comotratarvideo "0:00") # (find-comotratarvideo "1:08" "love.keypressed") # (find-comotratarvideo "2:08" "elseif") # (find-comotratarvideo "3:32" "codigo") # (find-comotratarvideo "3:48" "retangulo andando") ##### # # sigusr1 # 2025mar01 # ##### # «sigusr1» (to ".sigusr1") # (find-angg "LOVE2D/") # (find-angg "LOVE2D/2.lua") # (find-efunction 'find-luainit-links) # (find-node "(bash)Bash Variables" "PPID") # (find-node "(zsh)Parameters Set By The Shell" "PPID") # (find-channels-intro "2.2. Test eegchannel" "SIGUSR1") load_posix() pid = getoutput("echo $PPID") + 0 ee_writefile("/tmp/love2d.pid", pid.."\n") on_SIGUSR1 = function () dofile "/tmp/love2d.runthis" end on_SIGUSR1_ = function () on_SIGUSR1() end posix.signal.signal(posix.signal.SIGUSR1, on_SIGUSR1_) (defun eel (s &optional e) (interactive "r") (ee-write-with-nl s e "" "" "/tmp/love2d.runthis") (message (find-sh0 "kill -s USR2 $(cat /tmp/love2d.pid)"))) mkdir /tmp/foo/ # (find-fline "/tmp/foo/foo.lua") https://love2d-community.github.io/love-api/ https://love2d.org/ https://love2d.org/forums/viewtopic.php?t=80288&start=10 apti love https://www.reddit.com/r/love2d/comments/900dnp/does_anybody_know_how_to_install_love2d_on_debian/ https://love2d.org/wiki/Building_L%C3%96VE https://github.com/love2d/love # (find-zsh "installeddebs | sort | grep love") # (find-zsh "availabledebs | sort | grep love") # (find-status "love") # (find-vldifile "love.list") # (find-vldifile "love.postinst") # (find-udfile "love/") # (find-man "6 love") https://love2d.org/wiki/Category:Tutorials https://gitlab.com/alexjgriffith/min-love2d-fennel https://github.com/finnoleary/love-edit https://www.youtube.com/watch?v=efKxhyMlH0Q https://www.youtube.com/watch?v=efKxhyMlH0Q https://andreyor.st/posts/2023-04-08-new-fennel-proto-repl-and-call-for-testing/ https://github.com/ejmr/love-minor-mode # Local Variables: # coding: utf-8-unix # End: