Bienvenue - Welcome

Vous n'êtes pas identifié(e).


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#1 2016-07-31 00:28:48

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

EasySprite 1.8 is out.

Add : requestAnimationFrame()
Add : Example 06 - Preloader and requestAnimationFrame.html

Download : EasySprite.js

Hors ligne

#2 2016-07-31 00:51:34

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

Does requestAnimationFrame() return the current frame used/display by an animated sprite?

Hors ligne


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#3 2016-07-31 01:02:13

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. The method takes as an argument a callback to be invoked before the repaint.

In french
La méthode window.requestAnimationFrame() notifie le navigateur que vous souhaitez exécuter une animation et demande que celui-ci exécute une fonction spécifique de mise à jour de l'animation, avant le prochain rafraîchissement du navigateur. Cette méthode prend comme argument un callback qui sera appelé avant le rafraîchissement du navigateur.

https://developer.mozilla.org/en/docs/W … ationFrame

Hors ligne

#4 2016-07-31 01:05:46

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Example using requestAnimationFrame()

function renderGame() {
	displaySprite(background, 0, 0, screenWidth(), screenHeight());
	displaySprite(logo, 300, 200);
		
	requestAnimationFrame(renderGame);
};

Hors ligne

#5 2016-07-31 01:15:40

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

Understand. Thank you! wink

Hors ligne

#6 2016-08-01 01:03:52

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Version 1.8.2
-update ResizeScreen() by resizeScreen()

Hors ligne

#7 2016-08-02 14:39:35

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

That makes for a nice feature. wink

Hors ligne


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#8 2016-08-04 12:28:38

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Version 1.8.5 out and brings some more fixes.
https://github.com/falsam/EasySprite

Hors ligne


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#9 2016-08-05 17:34:59

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Version 1.8.6 is out
Add : removeSprite(sprite) - Remove sprite from scene.

Update sprite API http://falsam.com/EasySprite/api.php

Hors ligne

#10 2016-08-06 11:23:18

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Version 1.8.8 is out
- Bug fix
- Add 07 - Create group sprites.html

Hors ligne

#11 2016-08-07 05:50:39

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

Very nice! big_smile

Ball.png is missing from the image folder. wink

Hors ligne


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 747

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#12 2016-08-07 10:48:35

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

J. Baker a écrit :

Ball.png is missing from the image folder. wink

Oops sorry. Ball add.

Hors ligne

#13 2016-08-07 12:06:34

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

Version 1.8.9 out.
- Improved function Mouseinit(). Now works with Edge.
- Add new example : 08 - Hide mouse.html

Hors ligne

#14 2016-08-07 18:05:57

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

It just keeps getting better! big_smile

Hors ligne


Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

Deprecated: Function create_function() is deprecated in /homepages/35/d242132003/htdocs/falsam/forum/include/parser.php on line 825

#15 2016-08-09 11:59:53

falsam
Administrator
Lieu : france
Inscription : 2016-07-20
Messages : 45
Site Web

Re : EasySprite 1.8 is out.

j'ai modifié tous les exemples. Utilisez requestAnimationFrame() pour vos opérations de rendering.
Le callback de rendering utilisé par openScreen() sera retiré avec la prochaine version.
Lien : https://developer.mozilla.org/fr/docs/W … ationFrame

I changed all examples. Use requestAnimationFrame () to your rendering operations.
The callback rendering used by OpenScreen () will be removed with the next version.
Link: https://developer.mozilla.org/en/docs/W … ationFrame

■ Example.

// Render screen
function renderGame() {
	displaySprite(background, 0, 0, 800, 600);
	displaySprite(logo, 550, 150);
		
	requestAnimationFrame(renderGame);
};

Hors ligne

#16 2016-08-09 14:15:02

J. Baker
Redactor
Lieu : USA
Inscription : 2016-07-30
Messages : 16

Re : EasySprite 1.8 is out.

Thanks for the heads up and looks like a good move. wink

Hors ligne

Pied de page des forums