Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atom AGD file #11

Closed
oss003 opened this issue Mar 5, 2019 · 6 comments
Closed

Atom AGD file #11

oss003 opened this issue Mar 5, 2019 · 6 comments

Comments

@oss003
Copy link

oss003 commented Mar 5, 2019

AGDX Studio has created an AGD file for the Atom but there are some issues:

  • There is no colour attribute at the DEFINEBLOCK definition, this is used for dithering
  • After the screendefinition, SPRITEPOSITION starts with a -1 which is the player sprite?????

AtomTest.zip

@tonyt73
Copy link
Owner

tonyt73 commented Mar 7, 2019

You should be able to fix this locally be editing the AGDX Studio\GraphicsModes\Acorn Atom Monochrome.json file

Change the section
"Tile" : {
"BitmapDataOnly" : true
},

To

 "Tile" : {
	"BitmapDataOnly" : false
 },

@tonyt73 tonyt73 closed this as completed Mar 7, 2019
@tonyt73 tonyt73 reopened this Mar 7, 2019
@tonyt73
Copy link
Owner

tonyt73 commented Mar 7, 2019

@oss003 What is a valid attribute for monochrome?
Or is this the 4 colour version?

@oss003
Copy link
Author

oss003 commented Mar 7, 2019

It's the monochrome mode.

Changing the json file doesn't make any difference .......
The Atom engine needs the same data as the Spectrum engine, for tiles: type, 8x data,colour attribute.
The colour attribute is missing now in the AGD file for the Atom, also in the 4 colour mode.

@tonyt73
Copy link
Owner

tonyt73 commented Mar 7, 2019

It makes no sense for 4 colour mode to have an attribute.
Atom monochrome is therefore spectrum 16 colour mode and you could simply rename the atom monochrome file and then copy the zx spectrum one to be atom monochrome. Change the name inside the file as well.

@oss003
Copy link
Author

oss003 commented Mar 8, 2019

That doesn't work because when I want to run a game in Atom mode, the colour attribute byte is skipped when generating an AGD file.

There is 1 only Atom engine for monochrome and colourmode and that needs a colour attribute byte for dithering in monochrome mode. I don't care if a 0 is added but the compiler and engine need a colour attribute byte like the Spectrum.

@tonyt73
Copy link
Owner

tonyt73 commented Mar 18, 2019

A hack was implemented to support this.
I will remove this, if/when the Atom AGD compiler removes the need for the attribute.

@tonyt73 tonyt73 closed this as completed Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants