123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|559|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Basic Basement -> Aurora Compiler

Mon, 14 Apr 2008, 00:53
codingmonkey

I found this compiler a few days ago and over at Ionic Wind. Its free but what a shame there is hardly any support for it. You have to pay for technical support and to join the forums. Documentation is literally nil.

It is mostly object oriented base. And I'm learning by following the examples and extrapolating the 3D classes and 3d programs while I do 2d programming and get used to it.

An example program and with comments will follow.

Mon, 14 Apr 2008, 01:08
codingmonkey


Mon, 14 Apr 2008, 02:14
JL235
I don't quite get it. Are all the methods your calling on scree1 static methods of C2DSCREEN? I've not used Aurora, but that's kinda how it looks to me.
Mon, 14 Apr 2008, 02:51
codingmonkey
yes, these methods are class methods and are associated as instance methods. When the instance is created. Although, you can also create your own classes and methods and even and include and use the built-in ones in them as well.


here is an example from the sample programs.
I'm learning as I go as well.



Mon, 14 Apr 2008, 03:04
JL235
I was thinking more about, why don't you just call them directly from the class? Why use an empty intermediate variable instead? This makes the code look misleading. i.e. screen.CreateFullScreen(800, 600) looks like an instance method CreateFullScreen being called on the object stored in the variable screen, but it's actually a static method being called on C2DSCREEN.

Just a few weeks one of my lecturers was advising us that this kind of behaviour should be avoided (although that was in respect to Java) and that it's a bad idea. He went on to give an example of how he once had to spend a whole week fixing a bug caused because of this kind of code.
Mon, 14 Apr 2008, 03:36
codingmonkey

I think you don't quite get it. Perhaps, try it out for yourself.

there are ready made classes with built in methods that you instantiate with a variable. You can still create your own classes and methods as well. As well as create classes that contain these ready made built in classe and methods that you instantiate too.

When you create your own class and with methods, don't you somtimes use the ready made commands and built-in functions of that programming language? Yes, you do.

instantiate these ready made classes and built in methods and attributes too.
create your own classes and associated methods and attributes too.
or even mix them together in a hybrid class type.
Mon, 14 Apr 2008, 03:57
JL235
Ok, but I'll try asking from another point of view. Would the following:

be the same as:

Because you aren't creating or placing an instance of C2DSCREEN in screen1, so I'd presume it is null by default. i.e. is Createfullscreen static or not static?
Mon, 14 Apr 2008, 04:07
codingmonkey


think of a blueprint design and ready made methods
and instructions. The supervisor and his workmen make a product from the blueprint designs. They slap on a name for the product.


Tue, 15 Apr 2008, 16:09
codingmonkey

now, here is a modified version of the program.
it hides the mouse and loads a bitmap image as background.



I wish the documentation was more complete but I have fun and a challenge fiquring out the commands and functions.