Topic:   The iPhone Project   (Read 395194 times)


0 Members and 3 Guests are viewing this topic.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The iPhone Project
« Reply #510 on: April 19, 2010, 09:14:40 AM »
I'm not sure how you're calculating battle at the moment, but here's the battle engine I wrote for the RSRPGE incase you wanna use it:

'--- Preset variables.
baseHitChance = 50
maxHitChance = 95
minHitChance = 5
baseDamage = 16
baseRandomDamage = 7
maxDamage = 999
minDamage = 5

'--- Determine the chance of the attack hitting.
hitWindow = baseHitChance
hitWindow = hitWindow + attackerAccuracy
hitWindow = hitWindow - defenderEvasion
IF hitWindow > maxHitChance THEN hitWindow = maxHitChance
IF hitWindow < minHitChance THEN hitWindow = minHitChance
hitRoll = RANDOM 100

'--- If the attack hits, deal damage.
IF hitRoll =< hitWindow THEN
 Â results$ = results$ + "AttackHit "
 Â damageRoll = RANDOM baseRandomDamage
 Â damageRoll = damageRoll + baseDamage
 Â damageRoll = damageRoll + attackerAttack
 Â damageRoll = damageRoll - defenderDefense
 Â IF damageRoll < minDamage THEN damageRoll = minDamage
 Â IF damageRoll > maxDamage THEN damageRoll = maxDamage
 Â defenderHP = defenderHP - damageRoll
ELSE
 Â results$ = results$ + "AttackMiss "
END IF

IF defenderHP < 1 THEN results$ = results$ + "DefenderDied "

IF results$ CONTAINS "DefenderDied" THEN
 Â defenderAlive = 0
 Â '--- Calculate the amount of EXP to award.
 Â lvlDifference = defenderLvl - attackerLvl
 Â expAwardAdjustment = 50 * lvlDifference
 Â baseExpAward = 100
 Â expAward = baseExpAward + expAwardAdjustment
 Â IF expAward < 5 THEN expAward = 5
 Â '--- Award EXP.
 Â attackerExp = attackerExp + expAward
 Â IF attackerExp > attackerMaxExp THEN attackerExp = attackerMaxExp

 Â '--- Determine whether or not the attacker has enough EXP to LVL up.
 Â IF attackerExp => expNeededToLvlUp THEN
 Â   IF attackerLvl < maxLvl THEN
 Â     attackerLvl = attackerLvl + 1
 Â     attackerAttributePoints = attackerAttributePoints + 20
 Â     IF attackerAttributePoints > maxAttributePoints THEN attackerAttributePoints = maxAttributePoints
 Â   END IF
 Â END IF
END IF
« Last Edit: April 19, 2010, 12:17:07 PM by Silverwind »
I survived the spammage of 2007

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: The iPhone Project
« Reply #511 on: April 19, 2010, 09:40:15 AM »
Quote
At the moment we're ready for more maps.


-Gan


I guess thats my que.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #512 on: April 19, 2010, 11:17:17 AM »
Quote


I guess thats my que.
;)

Silver: Brilliant! Exactly what I needed. :D


-Gan

GabrielCA


  • GMG-er

  • **

  • no avatar

  • Posts: 224
Re: The iPhone Project
« Reply #513 on: April 19, 2010, 06:13:31 PM »
So, is an official website going to be made for this game ?
Creator of the deprecated plugin KeyDetect (2005)

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #514 on: April 19, 2010, 06:24:57 PM »
Ooh, good question. No idea.


-Gan

GabrielCA


  • GMG-er

  • **

  • no avatar

  • Posts: 224
Re: The iPhone Project
« Reply #515 on: April 19, 2010, 07:07:00 PM »
Also, is there any way to build & run this game with software other than the latest Mac OS X + Xcode + iPhone ? (Linux, old Mac OS X ?)

BTW Lol, creative spamproofing:
Quote
ajfkelvkfjquiutnflskajwlajfkgprkqnwmia@me.com
The bold is my e-mail address.
Quote
Mine's dropSilverAMegaUltraAwesomeLine@yahoo.co.uk, minus the mega ultra awesome.
Creator of the deprecated plugin KeyDetect (2005)

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #516 on: April 19, 2010, 07:10:31 PM »
Quote
In class at the moment but at a lack for better things to do I'll just start playing the iPhone RPG and noting things here I'd like to change:
•Add Loading text to loading screen.
•Make lightning bolt on loading screen animate more.
•Add potions to the Stats screen as a button that you click to use.
•Make it so you can hold your finger on the key pad to move instead of constantly tapping.
•Optimize tile and map drawing code to be much faster.
•Only redraw screen if npcs are in the view and moving.
•Put more features from World Editor in iPhone RPG.

Now I just gotta do those changes and continue coding into the game. What I have planned is:
•Add in AI to move towards the player.
•Add in items that you can pick up/equip/use. Have items as a whole NSMutableArray by itself that gets saved.
•Put hand-to-hand combat collision back in.
•Make a special trinket that'll allow the player to shoot lightning at the cost of mana.
•Make NPC drop items and also give exp.
•Make dead npcs respawn if they're suppose to.
•Put in leveling system depending on EXP.
•Put in damage stat system.
•Put in event system to show what's happening at the moment. Talk boxes, ect...
•Insert music if we have some.

At the moment we're ready for more maps.


-Gan
Ooh, forgot two main things...
•Add Hp bar.
•Add Mp bar.

Wait a sec, think they're needed? Shall we have them?


-Gan
« Last Edit: April 19, 2010, 07:36:05 PM by Gandolf »

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: The iPhone Project
« Reply #517 on: April 19, 2010, 07:31:41 PM »
Gan, if you're not adding a bar you should at least display hp/mp on the screen. :P

Also, is there still any chance I could help with sprites?
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #518 on: April 19, 2010, 07:36:38 PM »
Yeah they're on the display... Though the finger can get in the way...

I believe all our sprites are all created, courtesy of Silver.

Here's a video of what everything looks like just in case you(or anyone else) missed it when posted a page ago:
iPhone RPG in Action on the iPhone!


-Gan
« Last Edit: April 19, 2010, 07:58:43 PM by Gandolf »

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: The iPhone Project
« Reply #519 on: April 19, 2010, 08:02:18 PM »
We can never have too many sprites. Sprite! Sprites! Sprites galore!

I haven't had a chance to work on the scorpion or the bosses yet, but I'll let you know when I start.

EDIT:

Quote
Also, is there still any chance I could help with sprites?
Yes, get drawing! ;D
« Last Edit: April 19, 2010, 08:27:59 PM by Silverwind »
I survived the spammage of 2007

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #520 on: April 19, 2010, 08:04:07 PM »
Quote
We can never have too many sprites. Sprite! Sprites! Sprites galore!

I haven't had a chance to work on the scorpion or the bosses yet, but I'll let you know when I start.
:D Can't wait.


-Gan

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: The iPhone Project
« Reply #521 on: April 20, 2010, 10:15:52 PM »
OkayCool!PleaseLetMeKnowIfTheresAnyEnemiesYouPlanOnAddingToo.
(MySpaceKeyWontWorkImNotEvenKidding)
« Last Edit: April 20, 2010, 10:17:21 PM by Connors »
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #522 on: April 21, 2010, 06:43:40 AM »
Ahah, that happened to me before... had to use a different keyboard.


-Gan

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: The iPhone Project
« Reply #523 on: April 22, 2010, 08:17:07 PM »
Busy week, summer's approaching. I'm working on getting things moving. Going to a BBQ on Saturday with a certain lady friend...
Anywho, soon enough I'll have another interesting video for you guys. :)


-Gan

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: The iPhone Project
« Reply #524 on: April 22, 2010, 08:22:39 PM »
I've had terrible migranes from allergies thats prevented e from looking at a screen for too long.


Bit of a delay, sorry dues.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.