Chaos Project

Featured Projects => Tasks => Advanced RPG Creator => Finished Tasks => Topic started by: Blizzard on March 10, 2011, 04:51:24 pm

Title: [Finished] [RGSS] Task 3
Post by: Blizzard on March 10, 2011, 04:51:24 pm
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:



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.
Title: Re: Task 3
Post by: G_G on March 10, 2011, 05:56:44 pm
I'm attempting viewport. I'll also try plane. Brb
Title: Re: Task 3
Post by: Ryex on March 10, 2011, 06:02:25 pm
just empty function implementations? it will be done in a flash.
Title: Re: Task 3
Post by: Blizzard on March 10, 2011, 06:05:37 pm
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.
Title: Re: Task 3
Post by: G_G on March 11, 2011, 11:46:20 am
Viewport is done. But I do have this feeling its not correct so correct me if I'm wrong.
Title: Re: Task 3
Post by: ForeverZer0 on March 11, 2011, 10:53:50 pm
I'm working on the Sprite class.
Title: Re: Task 3
Post by: Ryex on March 12, 2011, 12:20:26 am
I've completed Audio, Bitmap, Graphics, and Input.
Title: Re: Task 3
Post by: ForeverZer0 on March 12, 2011, 03:22:24 am
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...
Title: Re: Task 3
Post by: 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.
Title: Re: Task 3
Post by: ForeverZer0 on March 12, 2011, 04:23:32 am
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.
Title: Re: Task 3
Post by: G_G on March 14, 2011, 08:37:04 am
Is there anything else I can help with here?
Title: Re: Task 3
Post by: Blizzard on March 14, 2011, 10:15:36 am
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.
Title: Re: Task 3
Post by: G_G on March 14, 2011, 10:55:45 am
I'll do this after school.
Title: Re: Task 3
Post by: Blizzard on March 18, 2011, 07:23:10 am
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).