Laser towers
-
Hello,
After the "Fire bullets example":http://developer.qt.nokia.com/forums/viewthread/556 , I continued playing with QGraphicsScene
Here another simple example:
"Laser shooter example on youtube":http://www.youtube.com/watch?v=cofUk8BK7nE
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":http://developer.qt.nokia.com/wiki/Towers_lasers_and_spacecrafts_example
Laurent
-
[quote author="laurent bauer" date="1283012105"]
"Laser shooter example on youtube":http://www.youtube.com/watch?v=cofUk8BK7nE
[/quote]Nice!
[quote author="laurent bauer" date="1283012105"]
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[/quote]
If you want to share this code, an alternative would be publishing it on "gitorious.org":http://gitorious.org/ , "github":http://github.com/ or any other online repository service, then you post the URL here later =)
-
bq. 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":http://developer.qt.nokia.com/wiki/Towers_lasers_and_spacecrafts_example
[quote author="anselmolsm" date="1283017956"]
If you want to share this code, an alternative would be publishing it on "gitorious.org":http://gitorious.org/ , "github":http://github.com/ or any other online repository service, then you post the URL here later =)[/quote]
Yes I must do it...
-
Great! =)
-
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?
-
[quote author="Markus Liebe" date="1283256324"]
However I think the wiki parsed away several modulo operators after qrand():
[/quote]
Sounds like a missed copy-passed... Thank you Markus