If you're seeing this message, it means we're having trouble loading external resources on our website.

তোমার যদি কোন ওয়েব ফিল্টার দেওয়া থাকে, তাহলে দয়া করে নিশ্চিত কর যে *.kastatic.org এবং *.kasandbox.org ডোমেইনগুলো উন্মুক্ত।

মূল বিষয়বস্তু

ভোঁদড়ের গেমের পরিচিতি

আমরা ভোঁদড় (Beaver) নিয়ে একটি গেম তৈরি করবো। গেমটি অনেকটা ফ্ল্যাপি বার্ড গেমটির মত হবে, যেটা অনেকেই খেলেছেন, কিন্তু এতে কিছু পার্থক্যও আছে। এই গেমে, ব্যবহারকারী একটি ভোঁদড়কে নিয়ন্ত্রণ করতে পারবে, এটিকে নিয়ে লাফ দিতে পারবে, যাতে এটি কাঠিগুলি ধরতে পারে। এটি খেলার সময় এমন দেখাবেঃ
গেম তৈরির ধাপগুলো দেখা যাক।
প্রথমেই, গেমটিতে কি কি অংশ লাগবে সে সম্পর্কে ভেবে দেখি - বেশিরভাগ গেমেই যা দেখা যায়ঃ
  • The playable character: We only have one playable character, and that's the beaver. That character has some different behaviors, like hopping and falling, which we'll need to implement.
  • Non-player characters: Many games have "NPCs" which are programmatically controlled, and present an obstacle to the character. The only obstacle in this game is the environment, however, there are no NPCs. That simplifies things!
  • Environment: This is a side-scroller type game, where we see a 2-d world that is scrolling by us, with a clear blue sky, ground, and grass. The sky is filled with sticks that can be collected.
  • Overall mission: The beaver must hop to grab sticks, and she can't hop too high above or below it, or she won't pick it up. The goal is to get to the end of the level with enough sticks to create a nest.
গেম তৈরির সময় অবশ্যই গেমের বিভিন্ন অংশগুলো নিয়ে এভাবে চিন্তা করা উচিত। বাস্তবে, গেম তৈরির নথিগুলো অনেক বড় হয়ে থাকে - আমরা এখানে অনেক ছোট একটি গেম তৈরির নথিপত্র লিখেছি, এটি শুধুমাত্র একটি উদাহরণ। এখন গেমের বিভিন্ন অংশগুলোকে উপরিউক্ত ক্রমানুসারে তৈরি করি।

আলোচনায় অংশ নিতে চাও?

কোন আলাপচারিতা নেই।
ইংরেজি জানো? খান একাডেমির ইংরেজি সাইটে আরো আলোচনা দেখতে এখানে ক্লিক কর।