Welcome, Guest. Please login or register.
July 31, 2010, 07:52:53 PM
Home Help Search Login Register
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base

Qbasicnews.com  |  Qbasic "like" compilers/interpreters  |  FB Discussion & Programming Help  |  FB Projects  |  Topic: sokoban « previous next »
Pages: [1] Print
Author Topic: sokoban  (Read 2716 times)
retsyo
Member
*
Posts: 73



sokoban
« on: January 29, 2005, 12:27:57 PM »

Ugly  :wink:
you can download it here
Quote
1. Introduction
This is yet anther sokoban game written in FreeBASIC(http://fbc.sf.net). In this game, you are the man to push all horses into houses. You can only push the horse, but can not pull it. And you can not pull more than one horse everytime. If you or the horse is on the destination, red color is used, else blue color is used.
2. Control
any key          start the game
N                Next level
Arrow Keys       Move
Q/ESC            Quit without warning
3. Todo
support big maps. currently you have to skip the big map by pressing "N"
some prompts
GUI
skin
support other level file formats( xsb, txt)
Editor
4. thanks
v3cz0r          he pointed out a bug in my program. btw, he created the FBC
Eric Tchong     I use his level package in my program
and more
5. Author
retsyo at http://forum.qbasicnews.com
he has a blog- http://blender.blogchina.com

Logged
Antoni Gual
Na_th_an
*****
Posts: 1433



WWW
sokoban
« Reply #1 on: January 29, 2005, 01:04:36 PM »

The Sokoban I knew has some goal cases where the objects must be pushed... I can't see goal cases..what's the goal in this version of Sokoban?

Perhaps it's written in the middle of  screen, but I can't read chinese  Cheesy
Logged

Antoni
retsyo
Member
*
Posts: 73



sokoban
« Reply #2 on: January 30, 2005, 01:10:08 AM »

In the original sokoban game, you just need to push BOX onto destination without specifical sequence: you can push BOX A on destionation A, but BOX A on destination B is ok too.
The characters I used here come from old Chinese Character:
Code:
man- the guy who lifts one of his arm to say hello to you
horse(ie the box in original sokoban game)- it has 3 legs on the floor and 1 leg up
house(the destination in original sokoban game)- thatching with sharp roof
If a character is red, he/it is in the house. You just push all horses into the house, so that there is no blue horses and no red man left

I have thought that the characters look like the objects' shape, but if they confuse you, I have to say sorry :wink: . I can change it only if I know how to use BSAVE/BLOAD or picture in fbc.
Logged
Dr_Davenstein
Na_th_an
*****
Posts: 2044



sokoban
« Reply #3 on: January 30, 2005, 02:56:11 AM »

You can just write a bitmap loader... or use one that's already written in QB.  Just Google for QBasic bitmap loader. Wink
Logged
Antoni Gual
Na_th_an
*****
Posts: 1433



WWW
sokoban
« Reply #4 on: January 30, 2005, 09:11:06 AM »

No, is not confusing, it just needed some explanation. I had never seen this version of Sokoban. Don't change the graphics, they are just beautiful!
Logged

Antoni
R@dioman
Ancient QBer
****
Posts: 410



sokoban
« Reply #5 on: January 30, 2005, 05:08:57 PM »

My first completed game was Sokoban a few years ago. Here it is:
www.geocities.com/juice801980/sokoban.zip
It's an ascii version. If it loads with 50 lines instead of 25, here's how you fix it. Restore the program so it's a window(Alt-Enter), open the properties box, go to 'Screen', select 25 lines, Save properties, exit sokoban, then re-open it. It should fix this bug. This bug only appears in Windows XP or 2000 I think. :Huh:
Logged

Pages: [1] Print 
Qbasicnews.com  |  Qbasic "like" compilers/interpreters  |  FB Discussion & Programming Help  |  FB Projects  |  Topic: sokoban « previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
SMF Theme © Gaia, Hosting by Employers Job Post
Valid XHTML 1.0! Valid CSS!