User prompt
araçalar hangi yöne gidiyorsa o tarafa önleri baksın
User prompt
araçlar taşıtlar iç içe girmesin
Code edit (1 edits merged)
Please save this source code
User prompt
Crossy Critters: Day & Night Dash
Initial prompt
Create a 2D top-down road crossing game in portrait orientation with the following specifications: 🎮 GAME STRUCTURE: - The player must cross 20 consecutive road sections (levels). - Each section includes either traffic-filled roads or safe grass areas. - The level ends when the player reaches the 20th row. 🚗 VEHICLE TRAFFIC: - Vehicles spawn endlessly from left or right sides on road lanes. - Vehicle types: - Small cars - Pickup trucks - Trucks - TIR (semi-trailers) - Motorcycles - Traffic flows continuously and never stops. - Vehicles **must never overlap** — a minimum distance is maintained between vehicles on each lane. - Each lane has its own traffic speed and spacing logic. - Traffic intensity and speed increase slightly with each level. 👤 PLAYER FEATURES: - The player controls an animal character (chicken, dog, or cat). - Movement is grid-based: one tile per move (tap, swipe, or arrow keys). - Coins appear randomly on the map and can be collected. - Collected coins are used to unlock new characters in a shop. 📱 UI & VISUALS: - Portrait mode (720x1280). - Bright, cartoon-style or pixel-art 2D graphics. - Score counter (number of rows crossed) and coin counter always visible. - Game Over screen on collision. - Victory screen after 20th row. 🌗 DAY/NIGHT CYCLE: - The game includes a smooth day/night cycle during gameplay. - The background gradually changes from day to night and back. - Visual changes include: - Sky color transition - Soft lighting effects - Optional light glows from vehicles at night - The cycle runs continuously and does not pause. 🔊 SOUND & FEEDBACK: - Vehicles have movement and engine sounds. - Coin collection triggers sound effects. - Day/night cycle may include ambient audio changes (e.g. crickets at night). - Smooth animations for character movement, death, and level transitions. The game should be mobile-optimized, visually dynamic, and casual-friendly while offering fun progression with an engaging atmosphere through lighting and time-of-day changes.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
chicken. In-Game asset. 2d. High contrast. No shadows
road çif şeritli düz yol. In-Game asset. 2d. High contrast. No shadows
car. In-Game asset. 2d. High contrast. No shadows
kamyon. In-Game asset. 2d. High contrast. No shadows
truck. In-Game asset. 2d. High contrast. No shadows
grass çim zemim kısa çimli zemin. In-Game asset. 2d. High contrast. No shadows
flag. In-Game asset. 2d. High contrast. No shadows
sun. In-Game asset. 2d. High contrast. No shadows
moon. In-Game asset. 2d. High contrast. No shadows
far ışığı yansıması. In-Game asset. 2d. High contrast. No shadows