Most of what you are saying is not as 'basic' as you are implying. However, some moving and network code (network isn't finished) can be seen at
my project, which is completely open source, although the source is up on github and right now isn't a full build (In development), but you can look at the earlier commits that don't have any networking code. Note this is all in Slick2D. It's
pacman, not even completed at that, and it currently has 5 packages and 49 classes, and isn't as abstract as I want. This doesn't include
A: Animations
B: Scrolling
C: Most of the networking
Although, to be fair, it does have an A* algorithm for the AI.
Snippets
AbstractGameMode#doTick(long)
1 2 3 4 5 6 7 8 9 10 11
| gameTime += delta; doMovement(player1, player1Modifier); doMovement(player2, player2Modifier); Rectangle2D.Float pla1 = player1.getLocationAsRect(); Rectangle2D.Float pla2 = player2.getLocationAsRect(); if(pla1.intersects(pla2)) onPlayerCollide(time); checkEntityCollisions(time); |