Jump to content

Photo

Ultra-Simple DPC+ Demo


13 replies to this topic

#1 MausGames OFFLINE  

MausGames

    Dragonstomper

  • 897 posts
  • Location:MO, USA

Posted Fri Apr 8, 2011 9:33 PM

I wanted to see how easy it would be to throw together something with the new DPC+ kernel. Well...it's not easy, but not overly hard either. The hardest part is being completely in the dark about cycle usage, the lack of full documentation, and the lack of the "var" variables that I took for granted would be available. 26 just never seems like enough.

I would post a screenshot, but thats not as easy on this computer so I'll let someone else if anyone feels like it.

Don't forget that you need the latest version of Stella or a Harmony Cartridge to view this demo.

I want to flesh this out into a full platformer, I've already designed a completely awesome waterfall screen; I have a bad habit of trying to flesh out before the basics are even close to done yet though, so trying hard to not do that.

Questions and comments, please, I'm bored!

edit: THIS IS NOT A PLAYABLE DEMO, sorry I didn't mention that before.

Attached Files


Edited by MausGames, Sat Apr 9, 2011 12:56 AM.


#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,960 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Fri Apr 8, 2011 10:03 PM

Screenshot:

platsv1a.png

#3 MausGames OFFLINE  

MausGames

    Dragonstomper

  • Topic Starter
  • 897 posts
  • Location:MO, USA

Posted Fri Apr 8, 2011 10:06 PM

Thanks RT! Notice I managed to squeeze in a health bar at the bottom and life counter at the top. Whether or not these are practical depends purely on the cycles that are available for the main loop and vblank.

#4 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,680 posts
  • begin 644 contest

Posted Fri Apr 8, 2011 11:08 PM

A few comments - the glitch you see on the cloud and other places has been fixed. Someone else pointed this out to me via PM. Also, a handful of "var" variables will be available with the next build. I'm not sure how many but currently there are 13 of them. That number may change depending on how many more variables I can push off to DPC+ RAM. There is potential for 9 more variables if I can assume nobody ever needs direct access to the "player#height" variables, as the player heights could be instead be written directly to DPC+ RAM when players are defined.)

#5 MausGames OFFLINE  

MausGames

    Dragonstomper

  • Topic Starter
  • 897 posts
  • Location:MO, USA

Posted Fri Apr 8, 2011 11:33 PM

If player#height could create a grow-out-of or melty effect, then they are worth leaving direct access to, in my opinion. An extra ten variables would well do the trick. Can you tell us if debugging cycles with the score, and pfscore options will come back? Also haven't seen any mention of if there will be any extra time in vblank with this kernel. I had a bazillion other questions while I was putting this demo together, but they've fallen back out of my head now.

ThankYou x 1,000 for this Batari, and for all you've done over the years!

Edited by MausGames, Sun Apr 10, 2011 3:53 AM.


#6 batari OFFLINE  

batari

    )66]U('=I;B$*

  • 6,680 posts
  • begin 644 contest

Posted Sat Apr 9, 2011 2:33 AM

I've gotten several inquiries about getting more useful variables, so right now I'm leaning toward writing player#height directly to DPC+ RAM to maximize them. Also, doing so would reduce the overhead in vblank as currently all player#height are copied to DPC+ RAM every frame. Regardless of what I do, player0height will remain available and could be used for the effect you describe.

At any rate, the player#height variables wouldn't be completely inaccessible, they would just be in DPC+ RAM. I haven't provided a way to access arbitrary locations in DPC+ RAM yet but I do plan on it (but before anyone gets too excited about that, DPC+ RAM is structured as a stack or a queue, and although random access is possible, it's not terribly efficient.)

As for your other questions, yes, the debugging features and PFscore will be added.

Edited by batari, Sat Apr 9, 2011 2:34 AM.


#7 Gemintronic OFFLINE  

Gemintronic

    Jason S. - Lead Developer & CEO

  • 9,314 posts

Posted Sat Apr 9, 2011 9:02 AM

I completely glossed over the feature that all these sprites are now multi-color.. awesome! Are you willing to release the source to your demo Maus? I'd like to learn what you've figured out so far. As well, it would be a good base to test other features of the new Batari BASIC myself =)

#8 Byte Knight OFFLINE  

Byte Knight

    Stargunner

  • 1,135 posts
  • Intellivision / Apple II
  • Location:Waconia, MN

Posted Sat Apr 9, 2011 12:51 PM

I've gotten several inquiries about getting more useful variables, so right now I'm leaning toward writing player#height directly to DPC+ RAM to maximize them. Also, doing so would reduce the overhead in vblank as currently all player#height are copied to DPC+ RAM every frame. Regardless of what I do, player0height will remain available and could be used for the effect you describe.

At any rate, the player#height variables wouldn't be completely inaccessible, they would just be in DPC+ RAM. I haven't provided a way to access arbitrary locations in DPC+ RAM yet but I do plan on it (but before anyone gets too excited about that, DPC+ RAM is structured as a stack or a queue, and although random access is possible, it's not terribly efficient.)

As for your other questions, yes, the debugging features and PFscore will be added.


I say the more variables available the better. To make a decent Adventure game, you need at least 30 variables just to keep track of the sprites (room, x, y values for 6 objects, 3 dragons, 1 bat).

#9 KevinMos3 OFFLINE  

KevinMos3

    Stargunner

  • 1,605 posts
  • Founder of the Timothy Dalton as Bond fan club
  • Location:Behind YOU!

Posted Sun Apr 10, 2011 12:20 PM

What settings do I need to use to load this in Stella? I'm using v3.3 and I've tried several different ROM settings including the Enhanced DPC.

#10 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,960 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sun Apr 10, 2011 12:49 PM

What settings do I need to use to load this in Stella? I'm using v3.3 and I've tried several different ROM settings including the Enhanced DPC.

You need 3.3.01:

http://www.atariage....ith-dpc-kernel/

#11 KevinMos3 OFFLINE  

KevinMos3

    Stargunner

  • 1,605 posts
  • Founder of the Timothy Dalton as Bond fan club
  • Location:Behind YOU!

Posted Sun Apr 10, 2011 6:33 PM

Ah, thank you.

Now that's an incredible looking demo.

#12 yuppicide OFFLINE  

yuppicide

    I am the Black Knight. Give me your money!

  • 6,933 posts
  • Location:New Jersey

Posted Mon Apr 11, 2011 4:26 AM

That is REALLY nice looking!

#13 dwane413 OFFLINE  

dwane413

    Moonsweeper

  • 263 posts
  • Location:Oklahoma

Posted Mon Apr 11, 2011 9:01 AM

That looks nice on my Harmony cart.

#14 MausGames OFFLINE  

MausGames

    Dragonstomper

  • Topic Starter
  • 897 posts
  • Location:MO, USA

Posted Mon Apr 11, 2011 3:36 PM

I completely glossed over the feature that all these sprites are now multi-color.. awesome! Are you willing to release the source to your demo Maus? I'd like to learn what you've figured out so far. As well, it would be a good base to test other features of the new Batari BASIC myself =)


As usual the code was a throw-together mess, I was in a big hurry to find out what this can do. I don't think it would be helpful at all, but I will post it next time I'm on my laptop; I hope that RT or someone like him with more org skills than me will post a demo soon.


I really need some good sprites for the main character. I have standing, kneeling, walking, running, and jumping; but when he climbs onto a platform above him, he needs to turn so his back is showing, extend his arms upward, jump up, grab the platform, and pull himself up onto it, then stand up. That is going to be tough...




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users