Cocos2D Community Game, Developer’s Diary, Part Two

The player gets whomped by a grey troll in our community Cocos2D iPhone game

Well, first off, a whopping thank you to all the active participants involved in our community Cocos2D game. We’ve blazed through this week, ended up with amazing progress, and are right on track to release our free RPG game in March.

Development Releases

We started compiling everybody’s submissions to the game into an optional, development-only ZIP download. This dev release gets updated a few times per week. This allows people involved in the project to re-download the latest game, test out each other’s code and levels, and collaborate much more effectively. It also gives us more flexibility in that we can refine, improve, and re-submit items that we thought could be better.

If you already own a copy of the iPhone Game Kit, then you will be receiving an email with an optional link to download the latest development-only Quexlor: Lands of Fate codebase (includes Cocos2D 0.99.5 so you can click “Build & Run” to beta test). Sift through the dev download and check out all the new spritesheets, levels, and artificial intelligence (AI) code we have been making and learn by example.

We will be keeping everyone informed of the latest development releases in the forum.

Community Submissions

Thanks to Justin, Greg, Rob, Leonard, Tim, and Enrique for submitting twelve new levels!

Thanks to Juan for developing the Greytroll AI and the “knock-back” feature, which enables strong enemies to knock the player back a short distance. You can check out Juan’s Greytroll code in Enemies.m within the dev release. Juan also added code to Player.m which knocks the player back upon getting hit. Here’s a little bit of that code:


-(void) gotHit:(id)sender data:(void*)data
{
	// verify that we can still can be hit
	Character* attacker = (Character*)data;
	if([attacker canAttack:self])
	{
		// apply damage
		float damage = -[attacker getDamageTo:self];
		[self changeLife:damage quiet:NO];
		//---------------------------------- JUAN ---------------------------------
		// if the attacker is a atrong enemy, it pushes the player back
		if ([attacker isKindOfClass:[Enemy class]] && attacker.strength > 5.0f)
		{
			// the push direction is the direction of the attacker
			CGPoint pushDirectionVector = [Character directionToVector:attacker.currentDir];
			// make the vector half the size
			pushDirectionVector.x = pushDirectionVector.x * 0.5f;
			pushDirectionVector.y = pushDirectionVector.y * 0.5f;
			// push the player back by this vector
			[self moveBackWhenHit:pushDirectionVector];
		}
	}
}

Thanks to Greg for submitting many new spritesheets, including the rat, wasp, and bow skeleton!

Thanks to Justin for coming up with the idea of a Friend class! Characters like the butterfly, sheep, and deer can now use all the AI code of Enemy, yet remain friendly enough to not attack the player.

Also thanks to Justin for creating our first beautiful music loop, forest1.caf! Download the development release and play the first level, forest01.tmx, to hear the awesome music.

Thanks to Rob for submitting the Rat AI!

Thanks to leathalChicken for starting to develop the Devil AI and its ability to teleport!

What Now?

Yesterday marked the end of Phase 1 of our community Cocos2D game. While Phase 1 is now closed, you can still submit (or re-submit) levels, art, or code to the project. The next two weeks prior to Phase 2 are “catch up” time. Please use this time to refine your submissions and re-submit. You can also use the time to beta test the game, submit feedback in the forums, and communicate on how we can make our game more fun. When Phase 2 starts (Feb 9th) we should theoretically be done with Phase 1 submissions and move on to Phase 2 things. Though, you can always re-submit something if you found a way to improve it.

That’s all for now. I hope you all are enjoying the process of making this game together!

Comments

Leave a Reply


+ six = 13

Subscribe via email

Subscribe in a reader


iPhone Game Creation for Beginners

A hands-on introduction to all the tools you need to develop an iPhone game. It includes source code to a simple board game built with Cocos2d and a comprehensive book that will teach you Xcode, Objective C and the Cocos2d framework. Plus, you get documentation, support and a ton of artwork to start your own creation.
More info…


Action-RPG Engine Code & Tutorial

Create your own action, RPG, adventure or RTS game with this starter kit. Learn how to manage tilemaps, characters, AI and more. This Starter Kit includes a flexible RPG engine built on Cocos2d, along with a sample RPG project that will teach you everything you need to know. Also included is a helpful ebook tutorial and a gigantic royalty-free art package!
More info…

Featured Posts

Cocos2d 2.0, iOS 6 & iPhone 5 Updates - 9/24/12

Making Cross-Platform iPhone & Android Games – Don’t Get Left Behind! (Part 3) - 7/11/12

5 Cocos2D iPhone Game Source Code Kits to Revolutionize Your Game Development - 4/5/12

How to Make Games With the iPhone Game Kit 5.0 - 2/19/12

Learn to Make iPhone Games with the iPhone Game Kit 4.0 - 12/10/11

The Cocos2D Family of Game Engines, Their Platforms & Languages - 11/2/11

Game Design Lessons: Introducing Flow - 9/23/11

What is Cocos2D and Why is it One of the Best iPhone Game Engines? - 6/3/11

Community RPG Developer’s Diary, Part One - 1/20/11

CCZSprite and HudLevelSprite, Two Cocos2D Extensions You Need to Know About - 8/10/10

How to Program Dpad Joystick Touch Controls for iPhone Games - 6/7/10

Other Posts

Awesome Heroes Arena! - 3/13/13

Making Cross-Platform iPhone & Android Games – Don’t Get Left Behind! (Part 2) - 5/26/12

An Awesome Review of our RPG Engine from a Customer - 4/26/12

Making Cross-Platform iPhone & Android Games – Don’t Get Left Behind! - 4/16/12

ShakeMidi: A Wireless MIDI Controller That You Can Shake - 12/1/11

Download Monster Checkers Updated Source Code Soon - 7/29/11

iPhone Game Kit Discussed on the Cocos2D Podcast - 7/8/11

New iPhone Game Kit 3.4 Update - 4/28/11

Quexlor LoF Hits the App Store - 4/8/11

The iPhone Game Kit Community Project – A Newcomer’s Perspective - 3/29/11

AI: What Cocos2D Cannot Do - 2/9/11

Cocos2D Community Game, Developer’s Diary, Part Two - 1/28/11

3.2 Kit is Out, Cocos2D 0.99.5 Compatible - 1/13/11

3.1 Kit is Out! Let’s Start the Community RPG - 12/9/10

Develop the Game Kit’s Community RPG and be a part of gaming history! - 11/23/10

iPhone Game Kit 3.0 Released - 10/14/10

New Game Added to the iPhone Game Kit! - 9/21/10

New Tiled Map Editor 0.5.1 Works Like a Charm! - 9/10/10

Four Interesting Things We Are Working To Improve The iPhone Game Kit - 8/25/10

iOS4 Compatible iPhone or iPad Game Source Code - 8/2/10

Making High Resolution Graphics For iPad and iPhone4 Games - 7/16/10

Game Source Code & Tutorials



iPhone Game Creation for Beginners

A hands-on introduction to all the tools you need to develop an iPhone game. It includes source code to a simple board game built with Cocos2d and a comprehensive book that will teach you Xcode, Objective C and the Cocos2d framework. Plus, you get documentation, support and a ton of artwork to start your own creation.
More Info...


Action-RPG Engine Code & Tutorial

Create your own action, RPG, adventure or RTS game with this starter kit. Learn how to manage tilemaps, characters, AI and more. This Starter Kit includes a flexible RPG engine built on Cocos2d, along with a sample RPG project that will teach you everything you need to know. Also included is a helpful ebook tutorial and a gigantic royalty-free art package!
More Info...