Laser towers
Hello,
After the Fire bullets example [developer.qt.nokia.com] , I continued playing with QGraphicsScene
Here another simple example:
Laser shooter example on youtube [youtube.com]
I can’t post the code here because it contains more than the maximum allowed 6000 characters. However I could forward it or post some snippets if somebody asks.
Edit:
Here is it (Wiki):
Towers_lasers_and_spacecrafts_example [developer.qt.nokia.com]
Laurent
7 replies
Laser shooter example on youtube [youtube.com]
Nice!
I can't post the code here because it contains more than the maximum allowed 6000 characters. However I could forward it or post some snippets if somebody asks.Laurent
If you want to share this code, an alternative would be publishing it on gitorious.org [gitorious.org] , github [github.com] or any other online repository service, then you post the URL here later =)
could you try and add it in the wiki ?
I pushed it in the wiki with a few more explanations
Towers_lasers_and_spacecrafts_example [developer.qt.nokia.com]
If you want to share this code, an alternative would be publishing it on gitorious.org [gitorious.org] , github [github.com] or any other online repository service, then you post the URL here later =)
Yes I must do it…
Hi . This is a very nice example! Thanks!
However I think the wiki parsed away several modulo operators after qrand():
- mobileunit.cpp : 20 there should be a qrand() modulo 90 or sth.
- mobileunit.cpp : 21 qrand() modulo 10 or sth.
- scene.cpp : 66 m_TicTacTime modulo 20 == 0
replace the word modulo in the lines above with the cpp modulo operator =)
@the trolls: is there an error in the syntax highlighter of the wiki?
You must log in to post a reply. Not a member yet? Register here!





