Search found 1 match
- Fri May 19, 2023 8:10 pm
- Forum: General
- Topic: Using the same updating random number in both a state file and a class file
- Replies: 2
- Views: 1530
Using the same updating random number in both a state file and a class file
I'm doing CS50's Intro to Game Development. In general, I want to generate a new random number each game update and use the value both in a State file and a Class file. The assignment I'm working on is a Flappy Bird clone. If you're unfamiliar, the game has a bird flying through gaps between sets of...