JubeatPlus 3.9.11
Loading...
Searching...
No Matches
UpperBGRipple.h
Go to the documentation of this file.
1
16
17#import <CoreGraphics/CoreGraphics.h>
18#import <Foundation/Foundation.h>
19
20#import "Texture2D.h"
21
22NS_ASSUME_NONNULL_BEGIN
23
27@interface UpperBGRipple : NSObject
28
33@property(nonatomic, readonly) float y_gnd;
34
52- (instancetype)initWithSprite:(NSUInteger)aSprite
53 atPoint:(CGPoint)aPoint
54 xSpeed:(float)xSpeed
55 yGround:(float)yGround
56 yAmp:(float)yAmp
57 yCenter:(float)yCenter
58 yPeriod:(unsigned int)yPeriod
59 yPhase:(unsigned int)yPhase
60 mag:(float)aMag;
61
71- (void)triggerJump:(float)force;
72
82- (void)stepFall:(float)resetX gravity:(float)gravity bounce:(float)bounce;
83
91- (void)renderWithTexture:(nullable Texture2D *)texture yLimit:(float)yLimit;
92
99- (NSInteger)compZ:(nullable UpperBGRipple *)other;
100
101@end
102
103NS_ASSUME_NONNULL_END
104
105// code: language=Objective-C
106// kate: hl Objective-C;
107// vim: set ft=objc :
The engine's sprite-sheet texture: a single OpenGL ES texture that batches many sprite quads into one...
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40
A sprite that drifts leftwards, bounces on a ground line, and casts a reflection.
Definition UpperBGRipple.h:28
float y_gnd
The ground line this sprite bounces on, and the key it is depth-sorted by.
Definition UpperBGRipple.h:33