Your Digital Media Has Never Looked So Good

Search found 376 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 26
by marcelo.cabral
Mon Sep 16, 2019 4:40 pm
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

>  my understanding this parameter only affects the alpha of the image, do you guys use it in other scenarios ? I use reversed/white graphics, and use it to assign a color in addition to the alpha at runtime. So, I'm using it all the time. I understand the use case. I released yesterday v0.3.0 with...
by marcelo.cabral
Thu Sep 12, 2019 11:33 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

Yeah, it's a roScreen.  SetMessagePort works. This thing is from 2014, you used to be able to use either ( never that clear on why there were two different ways). I'll look forward to the RGBA fix. I'm almost done with 0.3.0 that will bring .tostr() (and all other intrinsic methods do numeric types...
by marcelo.cabral
Sun Sep 08, 2019 8:56 pm
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

/brs/lib/brsEmu.min.js:33 source/Main.brs(11,25-26): 'SetPort' is not a function and cannot be called.               m.screen.SetPort(m.port) I've made a stripped-down thing, with stuff commented out, and got all the way to drawobject, so I'll have to wait for that one. You can use setMessagePort()...
by marcelo.cabral
Sun Sep 08, 2019 12:46 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

https://lvcabral.com/brs/app/images/screenshot.png I released the first prototype of the emulator (0.1.0 Alpha) and adapted my games (Prince of Persia and Lode Runner) to run on it. The performance is not great, as this is an interpreter running in javascript, it depends a lot on the current load o...
by marcelo.cabral
Wed Sep 04, 2019 1:30 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

i know I have a lot of Integer.ToStr() instances, and I also surely have a lot of IF, THEN in a single line all over the place, so maybe I'll wait for an update. I checked the first couple errors - One is an IF THEN on single line - The next is complaining about text in a comment of mine, since the...
by marcelo.cabral
Tue Sep 03, 2019 10:19 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

I've gotten one channel to show the splash screen,  and then nothing after. It's got about 20 errors like this: index.ts:156 source/mediarsstoolkit.brs(175,35-36): Unexpected character '@' g @ index.ts:156 and one of these: index.ts:156 source/main.brs(23,4-19): Attempting to retrieve property from...
by marcelo.cabral
Tue Sep 03, 2019 8:55 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

The current main limitations are: - roUrlTransfer - Not supported - roXMLElement - Usage of @ to access attributes from roXMLElements - roXMLElement - creation of sub elements and attributes - RAF Components - Not supported - roUniversalControlEvent can't be compared to integer - Integer .toStr() me...
by marcelo.cabral
Tue Sep 03, 2019 8:45 am
Forum: Roku Developer Program
Topic: SDK documentation: links to fix, missing/broken/etc
Replies: 117
Views: 65177

Re: SDK documentation: links to fix, missing/broken/etc

Another issue with ifDraw2D documentation I noticed this weekend:
The DrawObject() method only shows 3 parameters, but it actually supports an optional fourth (rgba), just like the other Draw*() methods.

https://developer.roku.com/docs/referen ... fdraw2d.md
by marcelo.cabral
Tue Sep 03, 2019 8:31 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

Nice, I tested it with Lode Runner (the new 0.17) and it runs great! I think I found a small bug with the game, when I press * for an extra life, the number doesn't change in the game, so I pressed it again, still no change, then I pressed / to restart the level, and my number of men went UP one. T...
by marcelo.cabral
Mon Sep 02, 2019 6:43 pm
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

Great progress during this labor day weekend! The video below shows a quick demonstration of the current state running a full version of my open source remake of Lode Runner. The same zip file that you can load on a Roku, now you can run on your Chrome browser. To download and play the game follow t...
by marcelo.cabral
Fri Aug 23, 2019 9:38 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

The remote control emulation was the most complicated feature to find a solution so far, as this tool is an interpreter, it's basically a  big-infinite-synchronous-nested-loop , and even moving it to a "web worker" to free the browser UI thread, Javascript does not implement any way t...
by marcelo.cabral
Tue Aug 20, 2019 11:17 pm
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

I implemented support for animated sprites and collision, here the emulator running the example Roku published back in 2012:  https://blog.roku.com/developer/2012/09/15/colliding-sprites DSO7p1Dpy7o The code to test this animation (I changed to create balls automatically, as the emulator still can't...
by marcelo.cabral
Sat Aug 17, 2019 10:30 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

I tried selecting my main brs file, but I have many brs files in the project, and all the graphics files and xml files. I didn't see anything. In the example, the code shows the ball and shadow as png files in the pkg, but the emulator is only taking the brs file, so how can that work anyway? Do I ...
by marcelo.cabral
Fri Aug 16, 2019 11:33 am
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

Re: BrightScript Draw 2D Emulator (in development)

This is incredible, something I've wished for since 2014! I haven't tried it yet, but will soon. I really hope you continue to work on it, as it will be a quite valuable tool for anyone making Roku games now and in the future. It only work on recent versions of modern browsers, I tested in differen...
by marcelo.cabral
Thu Aug 15, 2019 3:05 pm
Forum: Roku Developer Program
Topic: BrightScript Draw 2D Emulator (in development)
Replies: 23
Views: 551

BrightScript Draw 2D Emulator (in development)

I had this idea for a long time, but to start from scratch was always a big effort that I was not willing to put. Then recently I learned about this cool project: https://github.com/sjbarag/brs That is an interpreter for the BrigthScript language to be executed as a command line tool, it can execute...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 26