Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple snake game in PL/I

50 views
Skip to first unread message

jalih

unread,
Mar 30, 2012, 7:32:46 AM3/30/12
to
Hi all,

I am currently writing a simple Snake game for Windows in PL/I. A work
in progress code is available here: http://pastebin.com/jzQ92DHb

Any tips for improving my PL/I code?

robin....@gmail.com

unread,
Mar 30, 2012, 10:30:08 AM3/30/12
to
Only a preliminary glance. I didn't notice anything that I could immediately
suggest as an improvement.

What version of Windows are you using?

jalih

unread,
Mar 31, 2012, 3:06:00 AM3/31/12
to
perjantaina 30. maaliskuuta 2012 17.30.08 UTC+3 robin....@gmail.com kirjoitti:
> What version of Windows are you using?

I use Windows 7 and current IBM PL/I compiler for Windows.

jalih

unread,
Apr 21, 2012, 4:34:37 AM4/21/12
to
On Friday, March 30, 2012 2:32:46 PM UTC+3, jalih wrote:
>
> I am currently writing a simple Snake game for Windows in PL/I. A work
> in progress code is available here: http://pastebin.com/jzQ92DHb
>
Just re-wrote and updated the source. I decided not to use sprites for drawing and used simple retro style approach instead. It's still missing menu, score count and high score list...

robin....@gmail.com

unread,
May 12, 2012, 7:06:23 AM5/12/12
to
Good to see that you are still working on it.
I thought to try compiling it on an earlier version of Windows
compiler, but some of the INCLUDE files don't exist here;
as well, and obtained an error:
IBM9044I S 132.1 There appears to be a loop in replacing the value of
a variable (in Procedure 'CREATEWINDOWA').
so that file is not as up-to-date as yours.

jalih

unread,
May 14, 2012, 1:42:25 AM5/14/12
to
On Saturday, May 12, 2012 2:06:23 PM UTC+3, robin....@gmail.com wrote:
>
> I thought to try compiling it on an earlier version of Windows
> compiler, but some of the INCLUDE files don't exist here;
> as well, and obtained an error:
> IBM9044I S 132.1 There appears to be a loop in replacing the value of
> a variable (in Procedure 'CREATEWINDOWA').
> so that file is not as up-to-date as yours.
>
I have put binary and source archive with build files available at: http://hilla.kapsi.fi/~ljl/peli/pli_snake.zip

robin....@gmail.com

unread,
May 14, 2012, 8:47:21 AM5/14/12
to
Thanks. I set it up.
However, on XP, it produced only the top ribbon.
On Win 95, it produced a window that was far too large.
It displayed a small circle and a rectangular bar.
Nothing else.
Apparently it needs Win 7.
0 new messages