forked from ericjohnson/canabalt-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gib.m
37 lines (31 loc) · 999 Bytes
/
Gib.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Gib.m
// Canabalt
//
// Copyright Semi Secret Software 2009-2010. All rights reserved.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import "Gib.h"
static NSString * ImgDemoGibs = @"demo_gibs.png";
@implementation Gib
+ (id) gib
{
return [[[self alloc] init] autorelease];
}
- (id) init
{
//if ((self = [super initWithX:-100 y:-100 graphic:ImgDemoGibs])) {
if ((self = [super initWithX:-100 y:-100 graphic:nil])) {
[self loadGraphicWithParam1:ImgDemoGibs param2:YES];
//self.size = CGSizeMake(20,20);
}
return self;
}
@end