Jump to content
IGNORED

Tile based graphics "engine" in Bb


TheMajorHavoc

Recommended Posts

Hello,

It's been a while since I posted anything , so I thought I would share something I've been working on.
My wife fell very ill this year and my prior project has stagnated from neglect. icon_sad.gif


I started writing some routines to simulate tile based graphics on the VCS.

It uses the vertical nature of player graphics and uses SC Ram to hold the data for displaying 16x8 tiles (25 onscreen 5x5)

Uses assembly optimizations to speed up some things.
These are double-width sprites to make 16x16 tiles.
most of it is implemented in the vblank which makes the display left-biased due to timing

 


Well, really the whole bitmap display is just using one sprite icon_smile.gif

It is very flicker heavy


Here is a little platformer demo for your amusement (or torture for those who despise flicker, sorry)
looks ok on my 13" bench CRT; On stella, use the phospor effect to help

Top of screen is a map displaying your position and a not-yet-visible enemy flying around.
you can move left and right, fire button is jump.

 

9-15-18 - *UPDATED DEMO* got color tables working. I think it's looking pretty good :)

platform_tile.bas.bin

post-45682-0-59770900-1537057030.png

 

 

Old demo - Milons_secret_flicker_castle.bin

 

 

Edited by TheMajorHavoc
  • Like 1
Link to comment
Share on other sites

I'm sorry to hear about your wife's illness, and hope that her condition improves(if it hasn't already.)

 

 

Boy, Milon does like his flicker. The title's a bit off though, unless it is meant to imply that the castle is almost a secret due to the flicker=D.

That said, I like the sprite movement. It's nice that you can hang on the edge of a drop without falling. I've not seen that before.

--edit-- Is it intentional though? It only seems to occur when moving to the right.

Edited by fluxit
  • Like 1
Link to comment
Share on other sites

Despite the flicker, the execution is neat, I like it. :)

 

I believe a few demos have used the venetian blinds technique (if you do not want to use the new bus stuffing method) to keep the kernel time down and minimizing flicker (as well as adding additional colours.) You could take a peek at Paul Slocum's Homestar Runner RPG as well that may give a few ideas (the code is available IIRC).

 

hs_rpg3.gif

Edited by Jinroh
  • Like 2
Link to comment
Share on other sites

I have looked at those bus stuffing demos before and that's what sparked the idea.

But, I'm not ready to move this project to Assembly yet icon_smile.gif

 

I have slowly been editing of the standard display kernel in Bb to get venetian blinds for the playfield a striped playfield.

(This is not in the same aspect of player graphics venetian blinds to overcome the scanline limitation, purely aesthetics)

 

Here's a demo with that.

also, you can cycle "tile" colors with the RESET button

and may find one easier on the eyes heheh.

 

If using Stella - the 32-bit versions appear to have a bug that cause some artifacting(?) for some reason.

tested on a 2600 Jr and 64-bit stella ok.

 

*ADDED BINARY TO FIRST POST*

Edited by TheMajorHavoc
Link to comment
Share on other sites

I'm sorry to hear about your wife's illness, and hope that her condition improves(if it hasn't already.)

 

 

Boy, Milon does like his flicker. The title's a bit off though, unless it is meant to imply that the castle is almost a secret due to the flicker=D.

That said, I like the sprite movement. It's nice that you can hang on the edge of a drop without falling. I've not seen that before.

--edit-- Is it intentional though? It only seems to occur when moving to the right.

Thank you for the condolences Fluxit :)

 

No, the edge hanging is just an accident.

I originally had planned on a Tutankham-like 4 way scrolling demo when I decided to

work up a platforming routine.

Link to comment
Share on other sites

  • 3 months later...

I have continued to work on this as I learn 6502 assembly.

 

I have a Rastan - style platform game developing out of this project.

I have reduced flicker about 20% I hope;

But I need feedback on if it's acceptable on different TV's.

 

If some of you guys would test it on your setups, that would be great! :)

 

test.bas.bin

 

joystick left & right to walk, hold down to attack, fire button to jump

up to climb vines

Edited by TheMajorHavoc
  • Like 2
Link to comment
Share on other sites

You might consider trying to port some of the text mode demos from the assembly crowd to batari BASIC. Basically replacing the DRAWSCREEN command.

 

Not sayin it would be easy (or all the asm programmers available for questions). But, the payoff would be huge!

 

This would be amazing to get something like this in bB, unlikely, but amazing all the same.

Link to comment
Share on other sites

You might consider trying to port some of the text mode demos from the assembly crowd to batari BASIC. Basically replacing the DRAWSCREEN command.

 

Not sayin it would be easy (or all the asm programmers available for questions). But, the payoff would be huge!

Do you have any forum links to that sort of thing? I've only found bins. I have thought about that, jumping to another kernel that only draws the pf and bg and bitmap on top, So you could do something like the game over screen in WoW or titlescreen on top of pf and bg.

Link to comment
Share on other sites

Do you have any forum links to that sort of thing? I've only found bins. I have thought about that, jumping to another kernel that only draws the pf and bg and bitmap on top, So you could do something like the game over screen in WoW or titlescreen on top of pf and bg.

 

Probably have to ask SpiceWare for source of his bus stuffing examples. The tricky part is still making it play nice with batari BASIC. Whatever RAM he's using might conflict. Also, making sure there's enough time between the assembly bB runs and his display kernel.

 

I suspect we'll all have to wait until SpiceWares C compiler is ready before enjoying this kind of tile based display.

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.

Guest
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.

Loading...
  • Recently Browsing   0 members

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