Showing posts with label MY CODE. Show all posts
Showing posts with label MY CODE. Show all posts

Friday, November 25, 2011

Objective-C/Cocoa: Star Rating Class

Hi breathers,


How's it all going?
It's been a time since i posted, so here's some nice stuff.


Know all those games that rate you after the match(e.g. Angry Birds) with the star system-thing, so i made on very simple so you just need to copy and paste on your project.


Download: StarRate Class (WARNING: Very Huge Dowload - 3K)


Probably you'll would like to add other sizes of banners, so just feel free to use the class as you want.


Oh, yeah! One last thing. I know this is a stupid comment, but remember you're not going to use it directly on the  "-(void)viewDidLoad". Normally you'll use it when the match is ended and on the "level" boxes to display the last rate the player had on that match/level.


After you import the code to your project you have to do this:



#import <UIKit/UIKit.h>

#import "StarRate.h"



@interface StarTestViewController : UIViewController{
    StarRate *_stars;
}

@end


#import "StarTestViewController.h"





@implementation StarTestViewController


-(void)createStars{
    _stars = [[StarRate alloc]init];

    //THIS setBackgroundColor YOU CAN ADD TO THE CLASS I UPLOADED FOR YOU
    //ON THE -(void)startUp METHOD
    [_stars setBackgroundColor:[UIColor clearColor]];
    [_stars setupInterfaceTheWayIWantWithType:STARBANNER_250X50 andRate:2];
    [_stars setCenter:CGPointMake(160, 240)];
    [self.view addSubview:_stars];
}


-(void)viewDidLoad{
    [self createStars];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [super viewDidLoad];
}

(...)


@end






As you can see, i didn't use InterfaceBuilder, i'm kind of on strike with him, so fell free to use InterfaceBuilder if you want, you just need to remember how to inherit a normal UIView to StareRate.

If you need help, just go to the Contact Section and let me know.
Live long and prosper.


Saturday, September 24, 2011

App4U/Work: TwistMemory, SecretBalls, HungryFrog

*GREEN for English
*AMARELO para Português


Hi!


Here are the links for some of our apps:
Aqui estão os links para alguns dos nossos aplicativos:


#1 :  TWIST MEMORY:


http://itunes.apple.com/br/app/twist-memory/id457878965?mt=8




This is a memory twisting, psychedelic memory game. You just need to put up the pairs together as fast as you can in less then 5 minutes. Fun to spend you time and difficult stopping to play it.


Jogo que vai psicodelicamente pirar a sua memoria. Você só precisa juntar os pares o mais rápido possível, em menos de 5 minutos. Divertido para passar o tempo e difícil de parar de jogar.


*This was made with 100% legit code by Felipe Gringo(me) and Sergio Furlaneto Filho.


*Esse foi um código 100% feito por Felipe Gringo(eu) e o Sergio Furlaneto Filho.
        
#2: SECRET BALLS:


http://itunes.apple.com/br/app/secret-balls/id392074246?mt=8



This was the first app I put my hands on, so we worked like camels to do a new interface and bring some new stuff on it. It's just incredible. If you like a intelligent and nerdy game, this is the one for you. You just need to find out the right sequence and go to the next code, over and over!

Esse foi o primeiro aplicativo que me veio em mãos, então nós camelamos para fazer uma nova interface e trazer novas funcionalidades. Simplesmente incrível. Se você se interessa por jogos inteligentes e meio nerds, esse é pra você. Você só precisa acertar a sequência de cores e ir para o próximo código!

#3: HUNGRY FROG:



Wow, this kid here drove us crazy, it gave lot of work but the animations are spectacular, the game is fun and not so hard to play. You'll have to help this little green dude eat as many flies he can before the flies counter attack.

Wow, esse quase nos fez ir para em um sanatório, deu trabalho mas as animações ficaram espetaculares, o jogo é divertido e não é complicado. Você terá que ajudar esse carinha verde comer quantas moscas forem possíveis antes que as moscas contra-ataquem.


For more App4U apps go to: http://www.app4u.com.br/
Para mais aplicativos da App4U:  http://www.app4u.com.br/

If you want to get in contact with me go to CONTACT section.
Se quiser entrar em contato comigo clique na aba CONTACT. 

Tweet