{"author_link":"\/users\/sergei","author_name":"Sergei","author_uid":"sergei","comments":[],"epoch":1587406667,"event":"LD46","format":"md","ldjam_node_id":181901,"likes":2,"metadata":{"p_key":"137999","p_author":"Sergei","p_authorkey":"1011728","p_urlkey":"354295","p_title":"More information on Bouncy Battlegrounds","p_cat":"LDJam ","p_event":"LD46","p_time":"1587406667","p_likes":"2","p_comments":"0","p_status":"WAYBACK","us_key":"1011728","us_name":"Sergei","us_username":"sergei","event_start":"1587081600","event_key":"77","event_name":"Ludum Dare 46"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD46","removed_author":false},"_superparent":176557,"_trust":1,"author":11728,"body":"I decided to post some kind of a more detailed explanation of what's going on in my LD46 Compo entry game. Actually @jonahsenzel and @seagull's comments inspired me to do so (thank you, guys!). So here it is as it is.\n\nThe contollable instances in the game are squads. Squads consist of units. There're 4 squad types in the game:\n- Swordsmen;\n- Spearmen;\n- Horsemen;\n- King.\n\nSquads of different types have different MoveSpeeds and UnitsCount (initial value) among other parameters. Let's look at the real examples:\n\n* Swordsmen - MoveSpeed: 2500; UnitsCount: 32\n* Spearmen - MoveSpeed: 4500; UnitsCount: 16\n* Horsemen -  MoveSpeed: 8000; UnitsCount: 10\n* King - MoveSpeed: 1000; UnitsCount: 1\n\nYour drag force (white arrow size, frankly speaking) actually affects the resulting force applied to the selected squad to initiate its movement. Minimum drag force required to move a squad is ~0.1f and the maximum drag force is 1f. The resulting movement force is calculated as follows:\n\nmoveForce = dragForce \\* MoveSpeed \\* moveDirection;\n\nDrag Force also takes part in damage calculation on squads collisions. All squads have a default attacking power, so to speak, and this attacking power by default equals to 0.1f. It gets overriden on squad movement initiation by the value of a drag force (so the max value is 1f). It gets reset on squad collision (it turned out on movement stop it doesn't, so there's either a bug or a feature!). The squad attacking damage is calculated as follows:\n\nsquadDamage = squadAttackingPower \\* (1 + MoveSpeed \/ 10000) \\* (currentUnitsCount \/ 2);\n\n(I didn't put much thought in the formulas, so I don't expect it to be good for the game balance. If you know how to handle such cases properly, share this knowledge with me, please!)\n\nOn taking damage the squadDamage gets modified based on squad types interactions. For example, Horsemen get their squadDamage multiplied by 2 as a resulting squadDamage against Swordsmen and Spearmen get their squadDamage multiplied by 2 as a resulting squadDamage against Horsemen.\n\nI hope you like the post! I'd love to know what you think about this! \n\nHave fun playing the game!\n\nLink to the game: https:\/\/ldjam.com\/events\/ludum-dare\/46\/bouncy-battlegrounds\n\n","comments":1,"comments-timestamp":"2020-04-20T18:40:56Z","created":"2020-04-06T19:46:42Z","files":[],"files-timestamp":0,"id":181901,"love":2,"love-timestamp":"2020-04-20T18:38:57Z","meta":[],"modified":"2020-04-23T16:05:16Z","name":"More information on Bouncy Battlegrounds","node-timestamp":"2020-04-23T16:05:16Z","parent":181884,"parents":[1,5,9,176557,181884],"path":"\/events\/ludum-dare\/46\/bouncy-battlegrounds\/more-information-on-bouncy-battlegrounds","published":"2020-04-20T18:17:47Z","scope":"public","slug":"more-information-on-bouncy-battlegrounds","subsubtype":"","subtype":"","type":"post","version":627464},"node_metadata":{"n_key":"181901","n_urlkey":"354295","n_parent":"181884","n_path":"\/events\/ludum-dare\/46\/bouncy-battlegrounds\/more-information-on-bouncy-battlegrounds","n_slug":"more-information-on-bouncy-battl","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"11728","n_created":"1586202402","n_modified":"1587657916","n_version":"627464","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/46\/bouncy-battlegrounds\/more-information-on-bouncy-battlegrounds","text":"I decided to post some kind of a more detailed explanation of what's going on in my LD46 Compo entry game. Actually @jonahsenzel and @seagull's comments inspired me to do so (thank you, guys!). So here it is as it is.\n\nThe contollable instances in the game are squads. Squads consist of units. There're 4 squad types in the game:\n- Swordsmen;\n- Spearmen;\n- Horsemen;\n- King.\n\nSquads of different types have different MoveSpeeds and UnitsCount (initial value) among other parameters. Let's look at the real examples:\n\n* Swordsmen - MoveSpeed: 2500; UnitsCount: 32\n* Spearmen - MoveSpeed: 4500; UnitsCount: 16\n* Horsemen -  MoveSpeed: 8000; UnitsCount: 10\n* King - MoveSpeed: 1000; UnitsCount: 1\n\nYour drag force (white arrow size, frankly speaking) actually affects the resulting force applied to the selected squad to initiate its movement. Minimum drag force required to move a squad is ~0.1f and the maximum drag force is 1f. The resulting movement force is calculated as follows:\n\nmoveForce = dragForce \\* MoveSpeed \\* moveDirection;\n\nDrag Force also takes part in damage calculation on squads collisions. All squads have a default attacking power, so to speak, and this attacking power by default equals to 0.1f. It gets overriden on squad movement initiation by the value of a drag force (so the max value is 1f). It gets reset on squad collision (it turned out on movement stop it doesn't, so there's either a bug or a feature!). The squad attacking damage is calculated as follows:\n\nsquadDamage = squadAttackingPower \\* (1 + MoveSpeed \/ 10000) \\* (currentUnitsCount \/ 2);\n\n(I didn't put much thought in the formulas, so I don't expect it to be good for the game balance. If you know how to handle such cases properly, share this knowledge with me, please!)\n\nOn taking damage the squadDamage gets modified based on squad types interactions. For example, Horsemen get their squadDamage multiplied by 2 as a resulting squadDamage against Swordsmen and Spearmen get their squadDamage multiplied by 2 as a resulting squadDamage against Horsemen.\n\nI hope you like the post! I'd love to know what you think about this! \n\nHave fun playing the game!\n\nLink to the game: https:\/\/ldjam.com\/events\/ludum-dare\/46\/bouncy-battlegrounds\n\n","title":"More information on Bouncy Battlegrounds","wayback_source":[]}