File tree Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1
1
# parallax
2
- This can be used in a constrained parallax background. This could be used for 2d side-scrolling parallax but I haven't tested it yet.
3
- Openfl for now. Could be agnostic later.
4
-
5
- # TODO
6
- ✅ simple bg scrolling
7
- ✅ make it configurable
8
- ✅ use xml config
9
- ✅ add parallax layer
10
- ✅ sample (openfl)
11
- - [ ] zoom
12
- - [ ] agnostic
2
+
3
+ This can be used in a constrained parallax background. This could be used for 2d infinite side-scrolling parallax but I haven't tested it yet.
4
+ There is a sample with openfl that can help use this library in any engine.
5
+
6
+ # Features
7
+
8
+ - parallax scrolling constrained by a defined world dimension
9
+ - configurable by xml (or code)
10
+ - zoom
11
+ - sample (openfl)
12
+ - agnostic
13
+
14
+ # Demo
15
+
16
+ The sample can be tested here (better fullscreen): http://loudoweb.fr/app/parallax/
17
+
18
+ # known issue
19
+
20
+ The app is constrained by the world dimension. But it lacks screen dimension constrain. So now the app works better fullscreen. (A fix is coming).
Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ import haxe.ds.WeakMap;
3
3
import haxe .xml .Access ;
4
4
using parallax .ParallaxHelper ;
5
5
6
- #if openfl
7
- typedef Point = openfl.geom. Point ;
8
- #else
9
- typedef Point = { x : Float , y : Float };
10
- #end
11
6
/**
12
7
* ...
13
8
* @author Ludovic Bas - www.lugludum.com
You can’t perform that action at this time.
0 commit comments