hitparader

Hello,

I am brand-new to HD DVD authoring so apologies if this is an obvious question. I'm coming from the web development world, and am looking to port several items of "bonus content" from the web onto HD DVD. More specifically, there are several simple applications (mostly games) that I have written in JScript that I would like to repurpose for distribution on disc. But what I have not found is any reference as to what elements of JScript are compatible with HD DVD interactivity. Obviously the browser-based objects (window object, etc.) are N/A, but are there are also specific data types, variables, operators, objects, etc. that are not supported

If there's a tut or reference on this anywhere, that would be great. Thanks and happy new year!



Re: HD DVD Interactivity Authoring JScript

sammaz

For me, a quick look at the examples provided by Sonic in the Advanced content creation Tool were more than enough to get the same functions as are found in all the retail discs ATM ...Bookmarking, Chapters, Pip, and all of the unique calls that you can make from script. The Sonic Examples will take you light years ahead!





Re: HD DVD Interactivity Authoring JScript

hitparader

Thanks for your reply. My focus at this point isn't so much on the video playback functions, but rather the porting of purely interactive content to iHD. For example, I have a project that involves deploying several traditional arcade games that I have written for the web in Jscript (think Asteriods or board-style games) on HD DVD. Beyond changing the user interface controls from mouse-driven to controller keys, I wanted to research how much of the core game functions themselves will require modification (such as the AI systems, scoring, collision detection, etc.). These use typical Jscript functions such as SetInterval and constructs such as arrays. So I was looking for a reference to determine if certain top-level stuff like this was not supported.

Any feedback would be appreciated, thanks





Re: HD DVD Interactivity Authoring JScript

sammaz

I wanted to do this on my last project ... Let me see what your current script looks like. I can probably give you a good idea of what wont run and what will. I forget the name of it but there is a Jscript arcade emulator out there with sources. I think it only runs 20 or so games...Frogger, asteroids ect...





Re: HD DVD Interactivity Authoring JScript

sammaz

Ohhh I forgot...there is also a board game included with the sonic examples...I never ran it though.





Re: HD DVD Interactivity Authoring JScript

hitparader

Thanks very much, here are a couple open source examples of the type of games I'm doing:

http://www.1729.com/math/integers/PrimeShooter.js

http://p4wn.cvs.sourceforge.net/p4wn/chess/misc/ron/chesswork2.htm revision=1.1.1.1&view=markup

The games work basically the same way AJAX does, however instead of communicating with an external data source, the Jscript functions themselves calculate the data that updates the DOM elements.





Re: HD DVD Interactivity Authoring JScript

sammaz

Prime shooter looks very much ready to go...on the other one the HTML would have to be re-written and the J-script changed alot. Primeshooter's commands look familiar from a quick glance.





Re: HD DVD Interactivity Authoring JScript

hitparader

Thanks again and happy new year. Yes, as I recall the chess game example used old-style HTML forms to draw the user interface and player controls, that stuff would all need to change to DOM elements. But beyond things specific to the browser window, are there any Jscript functions or data types that are not supported in iHD thanks



Re: HD DVD Interactivity Authoring JScript

sammaz

Just took a quick look again at Prime shooter and I see this...

"
if (this.pos > this.maxPos)

"

I never used any <> signs in my Jscript..I dont know if that is ok. but 90% of it looks good...it will be small things like that that need to change. I am very interested in seeing this run on the HD-XA1 because when I wrote a script heavy Application sometimes it would lag a bit. Maybe Peter can take a look at Prime shooter and pick out more problems...He is the man.





Re: HD DVD Interactivity Authoring JScript

Bryan Kilian - MSFT

The ECMAScript used in HD DVD is the Compact Profile (ECMA 327), which is a modification of traditional ECMAScript (ECMA 262). It's similar to normal JScript, with, of course fewer objects, and no "eval"

If you check ECMA 262, you can get a list of the standard objects, and what they support. Most of what you need should be there, however, all the objects you could use to actually show data on the screen or affect the player are detailed in Annex Z of the HD DVD specification. You could probably get by if you look at a few samples that manipulate the application and document objects, especially the animated property stuff.





Re: HD DVD Interactivity Authoring JScript

hitparader

Thanks much, this is very helpful.