View Single Post
  #2  
Old February 6th 20, 03:32 AM posted to alt.comp.periphs.videocards.nvidia
[email protected]
external usenet poster
 
Posts: 533
Default Skybuck's Open Source Project: Mario for TP7 and Delphi (10.2)

Thu, 06 Feb 2020 02:14:57 +0000

New Turbo Pascal 7 mario source code (and exe) distribution available:

http://www.skybuck.org/Source/Pascal/Games/Mario/

MarioTP7v2.zip

Direct link:

http://www.skybuck.org/Source/Pascal...MarioTP7v2.zip

Today I worked some more in Turbo Pascal 7 version to reduce it's complexity. I also wrote some test programs to text vga256.pas and x-mode. I did discover something amazing about my monitor with test4.pas. It has slow response time when red, green and blue pixels are scrolled. I will try later on laptop and crt monitor to see if these monitors have same issue.

I branched into 3 different branches:

vXXXX is original source with some modifications to make it debuggable in
TP7, basically levels 2 to 6 disabled so it will fit into memory.

rXXXX is reduced source where menu/macros/txt/intro/config/command line/joystick/status/score counter/multi player and such has been removed to reduce complexity.

pXXXX is pascal source where ASM is to be replaced with Pascal code to make
it easier to port later to for example Delphi. (Currently DrawImage is not decoding the bitmaps correctly in pascal code so some help with this would be great, alternatively data bitmaps could be loaded instead of ASM bitmaps, but I am kinda keen on trying to understand the ASM format of these bitmap includes...).

There was also a little problem with the delphi project. Some TWindow unit was missing, but this unit can be safely removed from the project, it's not necessary.

For now no new Delphi distribution.

Some tips for people wanting to participate or want to understand how this versioning and branching and uploading is done:

1. v0001 to v0004 was the first versions/branch.

2. R0004 to R0007 was based on v0004.

3. P0007 was based on R0007.

Versioning and Branching works as follows in ms-dos:

xcopy source dest

Where source is the folder to use as "base".

Where dest is new folder to copy too.

When xcopy asks file or folder choose "d" for directory, this will create a new folder.

There is one little problem with this versioning maybe. If I would continue v0004 to v0007 or so tracking might be lost which was based on which but I don't mind that much. This is documented inside the RMario and PMario.pas for their branch. RMARIO.pas in rXXXX branch. PMario in pXXXX branch.

It's unlikely that r branch will be re-integrated with v or p branch.
It's also unlikely that p branch will be re-integrated with v branch.

If it does happen then it might not be an issue if there is no versioning conflict or overlap for example, though since P is based on reduced branch it's unlikely.

However I might copy some code from the other branches back into the v branch, for example if asm is turned into pascal code. That would be nice.

Later also some Delphi code might be integrated into it, not sure yet though.
Perhaps in future there will be a dBranch or so.

Uploading is done as follows:

1. Create upload folder on your main drive.

2. Mount virtual disk with vmware or virtual box.

3. Create a zip/rar in upload file.

4. Add source code files from mario to this new zip/rar.

Upload zip/rar file to a drive somewhere or send it to me:

skybuck
2000
@
hotmail
..
com

^ Attached it together.

What I am looking for from you:

1. Pseudo code of what the assembler does.
and/or
2. A description of what the assembler does.
and/or
3. How the bitmaps are stored in ASM routines, it's format ?
and/or
4. A description of how the scrolling is done in combination with x-mode and drawing.
and/or
5. Anything else that is off interest. Perhaps push/pop graphics though I think I have an idea what it does. Also how the music is played is also kinda interesting, not yet sure how that is done without freezing the game.

Bye for now,
Skybuck.