Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Reversi game not quite working

Author
Message
Johnston
21
Years of Service
User Offline
Joined: 16th Jun 2004
Location: SCOTLAND!!
Posted: 16th Jun 2004 21:19
I've been trying to convert a Reversi board game from the bbc acorn to DBP but it's not quite working.

Any advice on how to fix it would be much appreciated.

B(co-ordinate,co-ordinate) Holds the data about what piece is on each square of the board.
X and Y are the co-ordinates of the board squares.
D holds the displacement info.
C and N checks the squares for the player and computer pieces.
F holds all possible ways that a opponents pieces can be turned over.

It was like that when i got here.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Jun 2004 22:50
For a start it's sloooowwwww...Replace this..


SPRITE SQUAREG,GRIDX1*64,GRIDY1*64,100

With this.......

Paste image 100,GRIDX1*64,GRIDY1*64

The errors involving the colours is not easy to find. But something is messed up with you grid coordinates.

Johnston
21
Years of Service
User Offline
Joined: 16th Jun 2004
Location: SCOTLAND!!
Posted: 17th Jun 2004 23:59
Thanks for the advice Pincho Paxton .I'll hopefully find the problem soon.
I am currently just trying to understand the workings of 2d games and i thought the best way to do that is to learn from previous games.

It was like that when i got here.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 18th Jun 2004 00:04
Yeah it is a good idea to copy an old game. Funny but the actual movement code should be the same. You should copy the coordinates from that.

Login to post a reply

Server time is: 2026-06-09 15:43:31
Your offset time is: 2026-06-09 15:43:31