Jump to content

[AQUARIUS] Data format for game "blocks"


Recommended Posts

Finally getting back to some hobby time with my Aquarius programming and looking for some advice/ideas on storing the information for game "blocks" that will contain character and code information I've thought about something along these lines(C code example for z88dk) :



int block1[6]={x,y,a,c,d,e,f,g,acol,bcol,ccol,dcol,ecol,fcol,gcol};



Where x and y would represent block size by number of characters, a to g would be the character code values from the Aquarius character set and acol to gcol would be the corresponding colour values.



The block draw routine would contain a variation of the following:





To place the relevant character and colour values in memory.


Is this along the right lines? I'm trying not to overcomplicate the structure so that any thing written is easily portable to other platforms, I would also like to document/share any useful routines written so that we are not all having to reinvent the wheel ;-)



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...