30 Days of iPhone Programming + Source Code

Discussion in 'Public Game Developers Forum' started by kohjingyu, Oct 22, 2009.

  1. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 22 (13th November 2009)

    RandomSounds

    - Shows how to load sounds using a for loop into an NSMutableArray

    - Shows how to use AVAudioPlayer to play random sounds from an NSMutableArray

    - Shows how to play a random sound using an IBAction

    - NOTE: If you want a custom image for your progress bar, set your button's background image to your image.

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  2. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
  3. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 24 (15 November 2009)

    PhoneDial

    - Shows how to implement a custom phone number pad

    - Shows how to implement a custom backspace button with substringToIndex:

    - Shows how to use openURL to dial a phone number (this won't work on the simulator)

    - Shows how to use [sender tag] in an IBAction

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  4. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 25 (16th November 2009)

    Shooting

    - Shows how to enable shooting with adding UIImageViews programatically

    - Shows how to move UIImageViews without referencing them individually with image.tag

    - Shows how to fire a timer with touchesBegan: and invalidate it with touchesEnded:

    - Shows how to loop through UIImageViews

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected][/QUOTE]
     
  5. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 26 (17th November 2009)

    CopyPaste

    - Shows how to enable copy and paste for a UITextField and a UIImageView

    - Shows how to choose an image from the photos album and the camera and set the image to a UIImageView

    - Shows how to set the contentMode of a UIImageView to resize photos

    - Shows how to limit the characters in a UITextField (10 in this case)

    - Shows how to return the keyboard when the done button of the textfield is pressed

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  6. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 27 (18th November 2009)

    Settings

    - Shows how to implement settings in your app (through the settings app in the home screen)

    - Shows how to read the settings from your app

    - Shows how to implement a UISwitch in settings

    - Shows how to implement a UISlider in settings

    - Shows how to implement a textfield in settings

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  7. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    #47 kohjingyu, Nov 19, 2009
    Last edited: Nov 19, 2009
    Day 28 (19th November 2009)

    GetLetter

    - Shows how to use a UITextField, NSMakeRange and substringWithRange to get a letter in a UILabel

    - Shows how to get the intValue of a UITextField

    - Shows how to get a letter from a label depending on the value of the UITextField

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  8. HappyFuntime

    HappyFuntime Active Member

    Almost there! Nice work man :)
     
  9. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
  10. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Day 29 (20th November 2009)

    Unlockable

    - Shows how to show an integer in a UILabel

    - Shows how to change the image of a UIButton according to whether it’s unlocked or not (you can use this for achievements in your game!)

    - Shows how to show an alert if you don’t have enough money to unlock the button

    - Shows how to add to an integer with an IBAction

    More info and download link here: http://kohjingyu.wordpress.com/30-days/

    Follow me on twitter as I tweet about each project each day: Koh Jing Yu (kohjingyu) on Twitter

    Also, if you have a request, email [email protected]
     
  11. TripleJ

    TripleJ Member

    Nov 25, 2008
    21
    1
    0
    Thanks a bunch for these examples :D Very interesting!
    I've been looking at the drawing example though and it works in 2.x software but NOT on 3.x. The lines don't appear until you press the home button and the app quits. any suggestions on how to fix this?
    Thank you in advance!
     
  12. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    I'll look into that, thanks for the heads up. :)

    The full game would also be released tomorrow. It's called Meditating Bear. It's also posted in the upcoming forum of TouchArcade.
     
  13. TripleJ

    TripleJ Member

    Nov 25, 2008
    21
    1
    0
    Thank you, much appreciated! I'll be sure to credit you for your help!
    Can't wait to see the final game too!
     
  14. Vingdoloras

    Vingdoloras Well-Known Member

    Aug 29, 2009
    1,070
    2
    38
    Just found this thread...

    I'll get a MacMini for Christmas and then start coding my one iPhone App (hopefully it will be a success :p).

    I'm *only* 16 years old, but I think I'm pretty good at coding. I haven't coded in C or any C-related languages yet, but I'll learn that as soon as i got my Mac :D
    I'll definitely take a closer look at this at some time, it sounds nice :D
     
  15. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    I'm 14 :p

    Day 30 (22nd November 2009)

    Dodger (If you want this email me at [email protected])

    - Full game featuring AdMob and OpenFeint (enter your own keys and secrets)

    - Shows how to enable double jump

    - Shows how to move a UIImageView when a button is pressed and stop when it's lifted

    - Shows how to generate UIImageViews (enemies) on the fly

    - Shows how to move UIImageViews (enemies) on the fly by reading their tags

    - Shows OpenFeint functions like sending scores to leaderboards and unlocking achievements

    - Shows how to launch OpenFeint leaderboards and achievements

    - Shows how to set an app icon in Info.plist

    - Shows how to play a game loop with unlimited loops (cut off in the source code for size optimization)
     
  16. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
  17. Mr Jack

    Mr Jack Well-Known Member

    Congratulations, Froggy, that's impressive dedication.
     
  18. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Haha, thanks. Btw, the link is up.
     
  19. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
  20. Flickitty

    Flickitty Well-Known Member

    Oct 14, 2009
    761
    1
    0
    iPhone Dev
    Whoa, I didn't even realize this was you, Koh Jing Yu!

    I found Flickitty in Cheese Collect. I'd like to put your cat somewhere in our game... maybe as a boss? He always looks so authoritative in the corner of Cheese Collect.
     

Share This Page