summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* w000h00manuel2011-05-021-37/+63
|
* - add intro sound on every roundmanuel2011-04-251-32/+44
| | | | | | - add dieing sound - add dieing animation - add die on moving onto colorized block
* game rounds finally implemented:manuel2011-04-201-12/+25
| | | | | - game rounds will be detected during the round AND - a new map will be send in the NEXT tick to the clients
* nicer method of ending roundsmanuel2011-04-191-6/+10
|
* Merge branch 'master' of ssh://manuel.mausz.at/foopmanuel2011-04-191-2/+1
|\ | | | | | | | | Conflicts: pacman-c++/server.cpp
| * Removed unnecessary codetotycro2011-04-191-2/+1
| |
* | coding conventionsmanuel2011-04-191-4/+2
|/
* don't always call setPostotycro2011-04-191-1/+5
|
* removed some debug outputtotycro2011-04-191-2/+0
|
* Added roundstotycro2011-04-191-1/+8
| | | | | rounds will end when all points are removed TODO: end round when a pacman gets eaten
* - add actor.canEat(other) to check if actor can eat other (note: that ↵manuel2011-04-181-0/+10
| | | | | | | doesn't mean that other can eat actor!!) - server now generated and sends the colorlist to the server in the first map update packet - add a better AI
* few bot improvementsmanuel2011-04-181-6/+6
|
* get rid of two dynamic_casts and use qgraphicitem_cast which is A LOT faster ↵manuel2011-04-171-2/+2
| | | | (it makes use of static casts)
* a bigger commit again:manuel2011-04-171-55/+65
| | | | | | - fix pacman movement. now more like real pacman (again). e.g. if you press a direction-key again: the pacman will move in that direction as soon as possible and no repeated keypress is needed - add random colorized blocks (without dieing yet) - add cmdline-option: --nocolorblocks to disable that
* add support for random bonus pointsmanuel2011-04-151-101/+114
|
* - socket.write returns signed integermanuel2011-04-121-2/+7
| | | | - make waka sound working
* minor improvments: better debug messages + no tabs :Dmanuel2011-04-121-2/+3
|
* make removal of items from scene delayed by one tick (looks better)manuel2011-04-121-6/+20
| | | | | | all items are now derived from gameentity and gameentity is derived from pixmapitem: - this is naturally better - allows us to add a generic gameentity.color()
* finding out which actor has eaten which element didn't work correctly. ↵manuel2011-04-121-11/+15
| | | | instead of checking that on client side the server now just sends the id of the actor withing the explicit empty id data field
* make the server a non gui applicationmanuel2011-04-121-10/+18
| | | | | | | | this required a lot of reorganization: - don't create ANY pixmaps. that requires QtGui - don't create and QtWidgets - thus SceneHolder is now a QGraphisScene itself - and MainWidgets is a QWidget having SceneHolder as member variable
* implement pointsleft countermanuel2011-04-111-5/+22
|
* - server doesn't neet mainwidget.cppmanuel2011-04-111-2/+2
| | | | | - removed local mode (doesn't work anyway) - made movement more like orginal pacman
* - make moving animation a bit smoother (on my computer at least)manuel2011-04-111-1/+3
| | | | - make animation stop after getting blocked
* Fixed actor creation movementtotycro2011-04-111-5/+5
|
* make constants::server externmanuel2011-04-111-2/+4
| | | | code cleanup
* implemented aitotycro2011-04-111-1/+1
|
* Added code to play the cherry sound, but doesn't work heretotycro2011-04-111-2/+9
|
* added missing filetotycro2011-04-111-0/+1
|
* progresstotycro2011-04-111-7/+14
|
* - make use of my_color (still TODO: pre-game dialog (with intro music) + ↵manuel2011-04-111-6/+3
| | | | | | display own color first in scoreboard) - remove some audio debugging noice
* - first round of coding cleanupmanuel2011-04-101-7/+22
| | | | - small sound fix
* first version of multiplayertotycro2011-04-091-1/+2
|
* added .proto file and generated sourcestotycro2011-04-091-1/+1
|
* hackishly disabled audio for srvtotycro2011-04-091-2/+13
| | | | made test movement work
* added some utilitytotycro2011-04-091-22/+11
|
* Pull up methods from mainwidget to sceneholder for sharing in both client ↵totycro2011-04-091-0/+115
and server