Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #28669

Re: Sokoban on Android

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: Sokoban on Android
Date 2014-02-21 20:51 +0100
Organization 1&1 Internet AG
Message-ID <le8ane$fi$2@online.de> (permalink)
References <5c9c1e95-1ab4-4a0c-bb57-f37cf03777c8@googlegroups.com>

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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