PDA

View Full Version : Woopsi 16



wraggster
September 24th, 2007, 22:31
News of a new release of the Windows system for the DS from Ant512 (http://palib.info/forum/modules/newbb/viewtopic.php?topic_id=3606&forum=28)


And again:

http://ant.simianzombie.com/files/binaries/demos/nds/woopsi16.zip

New this time around:

- EventArgs and EventHandler system implemented.
- Added key and VBL events.
- Added drawFilledRect() function for drawing to gadgets.
- Added SuperBitmap gadget.
- Converted from 8-bit display to 16-bit.

If anyone's reading, I'd like to hear your thoughts on the last change. I initially went for an 8-bit display because it uses less memory and should be twice as fast as 16-bit. However, it's become painfully apparent that the complexities of moving 8-bit data around at speed are slowing down the development process and making things much more difficult than the need to be.

I switched everything around to use a 16-bit display instead, and it looks like any speed difference is negligible, but re-implementing some of the more complicated features took next to no time. Can anyone think of any real disadvantages in working in 16-bits? The advantages are faster, easier development, and I can support things like loading image data onto the screen without having to write complex palette remapping functions. As far as I can tell, there aren't any disadvantages.

Any opinions?

I've also added a couple more demos to the second screen. There's a very simple Pong demo that shows the new key events (click the window and use up/down to control the left-hand bat), new rectangle drawing functions, and the VBL event system.

There's also a demo of the SuperBitmap gadget. At the moment, the demo is very simple - it just shows a rectangle that can be dragged around with the stylus. However, the SuperBitmap gadget is actually a window into a much larger bitmap stored elsewhere in RAM - it enables windows to contain much more content than their dimensions allow, and that content can be scrolled around smoothly by dragging the stylus in the window. (This was the real reason for the 16-bit switch - it's impossible to scroll smoothly in the horizontal axis using the DMA hardware when working with 8-bit data, as we can't copy an odd pixel into an even pixel since the data is treated as a single 16-bit value).

Download Above and Give Feedback Via Comments

paul3100
September 24th, 2007, 23:39
Got to say its looking sweet :-)

Downloaded the last version which came out a few days ago and can't really notice any difference apart from the pong game & that BLACK square thingy!

More features and more mini games would be good and a pull down menu from the top as in workbench on the amiga :D

Good work so far mate :thumbup:

paul

Gilrad
September 25th, 2007, 05:08
It's probably been noted already, but the pong demo doesn't like to be behind other windows.

Other than that, I love it. Can't wait to see it used in a functional app!