There is still a lot of work to do and I will probably end up with a big deal of the nasty rendering stuff. xD
Anyway, it would be really good if the headers and source files would be prepared in advance. This task is pretty much just grounding work. Add the method declarations in the remaining RGSS classes in the headers and empty implementations in the source files. The classes include:
- Audio
- Bitmap
- Graphics
- Input
- Plane
- Sprite
- Tilemap
- Viewport
- Window
Keep in mind that Audio, Graphics and Input have private constructors/destructors and that they have only static methods.
All .x and .x= implementations in RGSS should be implemented as getX() and setX(value) in our classes.
After this task is done, a simple dummy implementation in Window and Sprite (along with Graphics.update) should make it possible to run the RMXP RTP scripts.
I'm attempting viewport. I'll also try plane. Brb
just empty function implementations? it will be done in a flash.
As I said, pure ground work.
BTW, coordinate your work, you two. *points to chat* You don't want to edit the same classes and files and do double the work.
Viewport is done. But I do have this feeling its not correct so correct me if I'm wrong.
I'm working on the Sprite class.
I've completed Audio, Bitmap, Graphics, and Input.
Sprite is done. I was unsure how the viewport is set, since no method exists (in RMXP) to set it, though it should have been.
I'll start on Tilemap while I wait and see...
Viewport is set during initialization only. The concept is to use a viewport and when you dispose it, it also disposes all sprites. Don't worry about functionality for now.
Quote from: Blizzard on March 12, 2011, 04:18:32 am
Viewport is set during initialization only. The concept is to use a viewport and when you dispose it, it also disposes all sprites. Don't worry about functionality for now.
I just set it as a private variable, and created a getter to retrieve it, while the constructors set it.
EDIT:
Tilemap is done.
EDIT 2:
Starting Plane.
EDIT 3:
Plane has been committed. Starting Window.
Is there anything else I can help with here?
In fact, you can. All public variables need to be made private and getters/setters should be written for them instead. Some classes already are like that, some aren't. It would be good if somebody went through them and fixed them.
I'll do this after school.
I'll consider this task finished even though it actually isn't. Let's say that this task has become part of this one (http://forum.chaos-project.com/index.php/topic,8982.0.html).