Python Forum
Generating number of objects for a game
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating number of objects for a game
#1
Hello!

I've started working on my game in Python, using tkinter (so not any pygame or other gaming libraries). I have already made some steps in my plan, what to create and what should the overall game logic look like, but I stuck on one point. I cannot understand, or I cannot imagine, how to create a generator of number of some, let's say enemies, or cars. What I want to do is to create some road and let a huge number of cars spawning and moving there, each car using the same logic given for cars generally. Please, can you give me any hint, how could I create such a generator of objects, using one and the same logic each? I know I should use some classes and parentship, but that's all I can imagine now.

I will appreciate any help. Thank you!
Reply


Messages In This Thread
Generating number of objects for a game - by kom2 - Apr-17-2019, 08:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to count the number of tries in guessing game. Frankduc 7 1,924 Mar-20-2022, 08:16 PM
Last Post: menator01
  Beginner Code, how to print something after a number of turns (guessing game) QTPi 4 2,757 Jun-18-2020, 04:59 PM
Last Post: QTPi
  guessing the number game go127a 6 4,860 Apr-27-2019, 01:23 PM
Last Post: go127a
  Number Guessing Game - Need Help joekbaum 8 5,370 Jan-04-2018, 02:16 AM
Last Post: ShadowWarrior17
  "Guess the Number" game CTT 14 13,381 Jul-26-2017, 11:41 AM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020