summaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-12Add loaded member to sprites and minor correctionsNao Pross4-21/+36
2018-12-12Minor access and synchronization correctionsNao Pross6-28/+34
2018-12-12Separate UPS from FPS, make thread for GameWindow (graphics thread)Nao Pross5-106/+236
The separation of game logic updates from render updates is necessary to proceed on the implementation of sprites. Otherwise the speed of animations of menus and sprites would depend on the game update speed. This commit breaks PerfView.
2018-12-07Add initial impl for spritesNao Pross2-2/+49
2018-12-04Fix NullPointerException on MapScene.tileAtCoordinates()Nao Pross1-2/+6
2018-12-03Replace old BattleScene code with new impl from WorldSceneNao Pross5-303/+43
2018-12-03Start impl of TurnInfo widget to show mission detailsNao Pross2-1/+33
2018-12-03Fix anchors, add TerrainInfo widgetNao Pross6-24/+98
2018-12-03Update ActorInfoNao Pross2-3/+3
2018-12-03Add widget anchors to place widgets in relative positionsNao Pross2-1/+36
2018-12-03Update PerfView to show FPS instead of DeltaTimeNao Pross2-7/+10
2018-12-03Refractor sleep in Scene rendering loop for better performanceNao Pross2-28/+37
~10 us improvement
2018-12-03Update Scene thread pause to use a higher level interfaceNao Pross2-18/+12
Scene now uses locks from java.util.concurrent.lock instead of the internal Object.{notify(), wait()}
2018-12-02Connect ActorInfo to mouse events to show info of actor under cursorNao Pross5-12/+78
2018-12-02Add static class Font, update ActorInfo panelNao Pross5-37/+90
2018-12-02Update default window size to 720pNao Pross1-1/+1
2018-11-27Add option to not render the grid to MapSceneNao Pross2-7/+14
2018-11-27Add unscii-16 as default font in SceneNao Pross4-8/+34
There is also CamingoCode-Regular.ttf that can be used in the future for dev stuff in the UI.
2018-11-26Deleted Game.start() content, add check for state changeNao Pross1-2/+4
2018-11-26Fix PerfView text colorNao Pross1-0/+3
2018-11-26Capitalize actor names in testmap.jsonNao Pross1-1/+1
2018-11-26Add WorldScene and ActorInfo widgetNao Pross7-19/+101
The Scene canvas is now added in MapScene (still a temporary workaround) in a 1x1 GridLayout.
2018-11-25Remove old MapEditor codeNao Pross3-268/+1
2018-11-25Make Map.get take a path relative to /subconscious/res/mapsNao Pross2-2/+8
2018-11-25Add jar recipe in Makefile, move res folder inside packageNao Pross3-27/+17
MapLoader was update accordingly to load maps as resources
2018-11-24Rename MenuScene to MainMenuScene and minor code cleanupNao Pross10-48/+29
2018-11-24Add simple PerfView widget to show the deltaTimeNao Pross2-0/+34
2018-11-24Add dynamic widgets (update on every gameloop tick)Nao Pross2-3/+27
2018-11-24Enable use of assertionsNao Pross1-3/+1
Assertions are faster and normally not enabled, so they are a good to debug when things that *should* never happen, happen.
2018-11-24Call Game.update() on Scene loopNao Pross2-1/+8
2018-11-24Add RenderingHints and minor performance improvementsNao Pross4-1/+20
2018-11-24Remove Swing dependencyNao Pross3-18/+12
We can build everything on top of AWT
2018-11-24Update MapScene size members on window resizeNao Pross2-1/+15
2018-11-21Add simple widget.Clickable interface with example ButtonNao Pross4-3/+44
2018-11-21Start implementation of widgets featureNao Pross2-1/+47
2018-11-21Comment out annoying @Deprecated for MapLoaderNao Pross1-3/+3
2018-11-21Disable Pause feature, add scene UNIQUE_NAME generatorNao Pross6-51/+73
There is a bug with the management of the scenes that has to be solved before implementing the pause (and consequently PauseScene)
2018-11-21Fix InvalidStateException at scene loading, add Scene.requestScene()Nao Pross6-87/+138
The internal game state management has also been changed for the new scene management in the graphics
2018-11-21Generalize to use only Scenes, attempt to implement pauseNao Pross9-137/+275
Compiles, but its totally broken
2018-11-20Add res folder for resourcesNao Pross1-1/+1
2018-11-20Refractor MapScene.render() AffineTransformsNao Pross3-19/+32
2018-11-20Correct BufferStrategy renderingNao Pross1-4/+9
2018-11-20Remove Scene.absoluteRender(), add Scene.build()Nao Pross5-21/+34
absoluteRender was a useless method since the normal render can be extended by overriding and calling super.render() Scene.build() is a new method which runs once when the scene thread starts, and is meant to be used to initialize the scene.
2018-11-20Refractor game state change detection / locksNao Pross4-27/+53
2018-11-20Move Map loading into Game (out of graphics)Nao Pross4-24/+59
2018-11-20Add currentMap to Game, waitStateChange now returns the new stateNao Pross2-3/+10
2018-11-20Refractor MapSceneNao Pross4-138/+159
2018-11-20Add Game class, fix GameWindow's scene loading / managementNao Pross6-61/+229
The new Game class contains the state of the game and the main logic to manage maps, actors and scores.
2018-11-20Make x y members of Tile publicNao Pross1-2/+2
2018-11-20Suppress serialVersionUID warningNao Pross5-40/+52