10 Commits

Author SHA1 Message Date
Jaromil
59de73ecbb added properties to screen
now screen.w and screen.h give back size
and screen.initialized says if init() was succesfull
plus the array layers[] contains the list of currently added layers
2010-04-02 18:23:43 +02:00
Xant
9b805c0354 don't use hardcoded values for screen size, query the screen instead
(and initialize it if necessary)
2009-09-13 04:35:03 +02:00
Xant
ef35239eae allow to query the screen for 'initialized' status.
So javascripts can know if they need to initilize the screen
(definining the size as well) or if they have been provided a
running screen and there is no need to change size or reinitialize it
2009-09-13 04:17:45 +02:00
Xant
71fca9cfa7 allow to get the default screen instance
Instead of being forced to always specify the type
The screen_js constructor now behaves properly
(reusing already initialized screens properly ...so also the ones
not created by the javascript, where jsobj is still NULL while
initilized is true)
2009-09-13 04:10:49 +02:00
Jaromil
fd11f832e3 little fixes
testing python scripts after cleanup
2009-08-31 01:42:32 +02:00
Jaromil
f3c72894fc screated screen_js
now screens are also present in JS
still tasks pending:
	backwards compatibility with scripts
	resolution of multiple screens in startup/reset logic
	testing
2009-08-30 04:28:49 +02:00
Jaromil
4948563a84 experimenting on engine reset()
plus some cleanup and indestructible flag for controllers
2009-05-20 15:51:45 +02:00
Jaromil
a190f3f4e2 refactoring of garbage collection
testing that multiple scripts can be included from a main one
removed js garbage collection in controllers (was called after script load)
included JSON as a standard library (it works!)
modified example scripts to avoid namespace clash
2009-05-16 17:00:37 +02:00
Jaromil
b8cd88e7b5 don't use alpha blitting in simple star.js example script 2009-05-15 20:32:54 +02:00
Jaromil
baec800d0f script directory re-organisation 2008-12-02 01:47:39 +01:00