User prompt
they has to be on platform only not outstage
User prompt
Put characters on the platform. Seperate them
User prompt
add background assets
Code edit (1 edits merged)
Please save this source code
User prompt
Gravity Duel: Sword & Bow
Initial prompt
Game Overview: Include 2 playable characters for now. Add a Custom Game Mode where players can play against each other or against a computer-controlled bot. Add a Computer AI opponent (medium difficulty). Map: Use a simple horizontal rectangular platform as the map. No holes or pits — the map should be a flat surface (no platforms or gaps). Movement & Controls: W: Jump (allow up to 3 jumps in midair) A / D: Move left / right S: Crouch (optional) J: Light attack (can be directional) K: Heavy attack (can be used on ground or in midair) L: Dodge / Dash H: Throw weapon Wall Climbing: Characters should be able to climb walls by repeatedly jumping while next to a wall. Weapons: Include 2 weapons: Sword and Bow Place weapon pickup icons on the map. When a player touches an icon, they pick up that weapon and the icon disappears. Players can only have one weapon at a time. Weapons can be thrown using the H key and will affect the enemy on hit. Attacks: Light Attacks (J): Should vary by direction: W + J → Up attack A + J → Left attack D + J → Right attack S + J → Downward attack Heavy Attacks (K): Can be used both on ground and midair. In midair, heavy attacks act as recovery attacks (knock enemies upward on hit). Gravity Cancel System: If player presses L while in air, a dash occurs and enables a Gravity Cancel. After performing a Gravity Cancel (L), pressing J or K allows performing light or heavy attacks while airborne as if grounded. Physics: Medium gravity Wall jumps for vertical mobility No edge clinging Flat terrain only (no ledges or falling) Start with just 2 characters, a single flat map, and the two weapons (sword and bow). More features can be added later.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});