Videopac / Odyssey2 forum
September 23, 2021, 11:15:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Join Rafael's Haunted Woods contest and win a copy of the game!
 
   Home   Help Login Register links videopac.nl  
Pages: 1 [2] 3 4 5   Go Down
  Print  
Author Topic: Porting my SHOGUN game to the Videopac  (Read 2336 times)
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #15 on: May 05, 2021, 08:55:12 PM »

I am still rewriting the most important routine (find enddestinations) into 8048 code.
The new routine has 5 loops, a pointer to RAM-data, X and Y pos and fieldposition.

A lot of registers and for the computermove I need to save them as well.

Tough job, but I will get it done.
Logged
Rafael
Pedit5
I take the Videopac and leave the Canoli!
*
Posts: 2723



« Reply #16 on: May 06, 2021, 02:05:02 AM »

Keep your great work!
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #17 on: May 13, 2021, 03:55:09 PM »

2 bugs in the code solved... slowly getting further.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #18 on: May 13, 2021, 08:59:41 PM »

Yes, first test on a 1 step stone working. Next to test step 2,3 and 4.

This is the most important routine in the game, so when this is working only the AI of the computer is the next thing to solve.

I noticed a bug in the display of the board at the start of a game. This only happens once in a while and can be solved by restarting again. 
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #19 on: May 15, 2021, 06:06:45 PM »

Step 2, 3 and 4 still had a bug, but now all destinations are found.

Next step is to store the destinations in memory and use them for the final move of the player.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #20 on: May 15, 2021, 09:46:14 PM »

Sometimes a display error on the board appeared.
The problem had to be the use of RB0 while intrupts were still possible.
With a trick I managed to alter the stonevalueroutine without the use of an alternative registerbank.

Next to do: add move player.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #21 on: May 15, 2021, 10:58:53 PM »

Selecting an empty field or computer stone was detected, but the flashing background somehow got corrupted. Now repaired by always writing a repaired background.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #22 on: May 16, 2021, 01:51:22 PM »

Coding on the 4048 is new for me.

Errors with relative jumps outside a page I solved with filling empty bytes to fit a routine on the right page, but now I solve it with a JZ/JNZ on the same page to an address where I make the absolute JMP ROUTINE.
Logged
Rafael
Pedit5
I take the Videopac and leave the Canoli!
*
Posts: 2723



« Reply #23 on: May 16, 2021, 08:18:04 PM »

Coding on the 4048 is new for me.

Errors with relative jumps outside a page I solved with filling empty bytes to fit a routine on the right page, but now I solve it with a JZ/JNZ on the same page to an address where I make the absolute JMP ROUTINE.

Yes. These problems are really boring. Keep your good work and soon weŽll have this nice game ready
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #24 on: May 17, 2021, 07:38:43 PM »

I have solved the move-bug that didn't show on the board.
Due to the movement I found a bug in the destination with step4  which I need to solve now.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #25 on: May 17, 2021, 10:50:44 PM »

All destinationfields now OK, but cursor disrupts characterdisplay. I need to find another place to store cursordata.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #26 on: May 18, 2021, 09:59:07 PM »

Some small bugs solved now as well.
Time to show the progress.
Next : AI from the computer.

https://www.youtube.com/watch?v=u4V_cyHadjQ
Logged
Rafael
Pedit5
I take the Videopac and leave the Canoli!
*
Posts: 2723



« Reply #27 on: May 19, 2021, 03:23:15 AM »

Thanks for the video, it's getting cool. Cool
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #28 on: May 22, 2021, 08:17:51 PM »

Another step foreward.

The first step in computer ai, all possible positions reached by stones now in memory, next is a back up of that board to undo moves calculated by the computer ai.
Logged
dr beep
Played Munchkin once...
**
Posts: 65


« Reply #29 on: May 24, 2021, 07:51:22 PM »

backup of board and stones now added. First endfield of computermove reached.
Next to check what is on that endfield and calculate the score.
Logged
Pages: 1 [2] 3 4 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!