Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #28669
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.mixmin.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail |
|---|---|
| From | Bernd Paysan <bernd.paysan@gmx.de> |
| Newsgroups | comp.lang.forth |
| Subject | Re: Sokoban on Android |
| Date | Fri, 21 Feb 2014 20:51:10 +0100 |
| Organization | 1&1 Internet AG |
| Lines | 28 |
| Message-ID | <le8ane$fi$2@online.de> (permalink) |
| References | <5c9c1e95-1ab4-4a0c-bb57-f37cf03777c8@googlegroups.com> |
| NNTP-Posting-Host | p4ffb961f.dip0.t-ipconnect.de |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | online.de 1393012270 498 79.251.150.31 (21 Feb 2014 19:51:10 GMT) |
| X-Complaints-To | abuse@einsundeins.com |
| NNTP-Posting-Date | Fri, 21 Feb 2014 19:51:10 +0000 (UTC) |
| User-Agent | KNode/4.11.5 |
| Xref | csiph.com comp.lang.forth:28669 |
Show key headers only | View raw
Julian Fondren wrote: > Hello clf, > > The following code, loaded after gl-terminal under gforth on > Android, will start a game of Sokoban that responds to touch > events. So you can put this in a file touch-sokoban.fs in gforth/home/ > on your SD card (real or not), then start gforth like normal, then > REQUIRE touch-sokoban.fs to begin. > > To move in a direction, touch that portion of the screen. i.e., > the right side to move right; the upper side to move up. > > The sokoban.fs accompanying gforth is used for this, and is > actually completely unmodified. It runs normally, waiting for > keyboard input, while touch events fire off movements and cause the > screen to be redrawn. > > The last bit with SCREEN-OPS is there to disable gl-terminal's > scrolling behavior, which interferes with play. Great idea. Any plans to do the same on Tetris? -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sokoban on Android Julian Fondren <julian.fondren@gmail.com> - 2014-02-20 15:21 -0800
Re: Sokoban on Android Bernd Paysan <bernd.paysan@gmx.de> - 2014-02-21 20:51 +0100
Re: Sokoban on Android Julian Fondren <julian.fondren@gmail.com> - 2014-02-22 20:55 -0800
Re: Sokoban on Android Julian Fondren <ayrnieu@gmail.com> - 2014-03-12 09:24 -0700
Re: Sokoban on Android Bernd Paysan <bernd.paysan@gmx.de> - 2014-03-12 19:50 +0100
csiph-web