We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey there. I, like several other's I've seen in my search, am attempting to program the game of Battleship in Processing 3. It's been quite a trip so far, and I think I may have actually learned more doing this than I am from my Computer Science class. Anyway, at the the start of the game, I would like the user to begin with a blank screen, in which, after a preset amount of time (only two seconds or so), an image flashes in the center, perhaps three or four times, before it stays and text appears at the bottom of the screen. Here's what I have:
def intro(): global dharma global starttime fill(colors['black']) stroke(colors['black']) image(dharma, y+y*.25,y*.25, y*.5,y*.5)
I would just call the image, do time.sleep() then call a black rectangle to cover the image and do time.sleep() again, and repeat that however many times I want the image flashed, save that: 1. That probably breaks like all programming effenciency laws, and, 2. The fact that draw() is called ever millisecond or somesuch causes one sleep() to make the entire project to run in second intervals.
Thanks for any help! As an afternote, I will almost definitely be back with more questions on this project. Should those questions go under this topic or be asked as a separate question? Thanks!