Ce code est un mini-jeu illustrant l'article : Les relations ink - Partie 1 : les utiliser.
Vous pouvez le tester sur la page de l'article ou sur Itch.
Ce code est un mini-jeu illustrant l'article : Les relations ink - Partie 1 : les utiliser.
Vous pouvez le tester sur la page de l'article ou sur Itch.
| Emojis (for Glulx only) by Florian Cargoët begins here. | |
| [ | |
| I'm a bit conflicted with that code: | |
| I don't remember having a good enough understanding of these things to have written it myself. It's not that complicated so it's possible I learned enough to make it work and then forgot about it but it's also possible I cobbled together bits of code found elsewhere and it's not my code. | |
| ] | |
| [ A simple emoji (1 code point). ] | |
| To say emoji (code point - number): | |
| say code point as unicode; |
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
| # Put this Makefile in love-android-sdl2/ | |
| # Put your Lua files in love-android-sdl2/assets/game/ | |
| src_path := assets/game | |
| src_files := $(wildcard $(src_path)/*) | |
| # do not change | |
| love_file := assets/game.love | |
| apk_file := bin/love-android-debug.apk | |
| # if you change these, update AndroidManifest.xml and source | |
| app_package := org.love2d.android |
| var ctx = document.getElementById('c').getContext('2d'); | |
| function ellipse(context, cx, cy, rx, ry, rot, aStart, aEnd){ | |
| context.save(); | |
| context.translate(cx, cy); | |
| context.rotate(rot); | |
| context.translate(-rx, -ry); | |
| context.scale(rx, ry); | |
| context.arc(1, 1, 1, aStart, aEnd, false); |
I hereby claim:
To claim this, I am signing this object:
| javascript:(function(){$('.list-area').css('max-width','100%');$('.list').css('margin','10px 0 0 10px');var max = Math.max.apply(null,$('.list').map(function(){return $(this).height();}));$('.list').each(function(){$(this).css('margin-bottom', max - $(this).height())});})(); |