summaryrefslogtreecommitdiffstats
path: root/src/subconscious/graphics (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-13Change Tile.loaded to Tile.activeNao Pross2-10/+12
2018-12-12Fix Map.getSize() to return a DimensionNao Pross1-2/+2
2018-12-12Add loaded member to sprites and minor correctionsNao Pross2-21/+30
2018-12-12Minor access and synchronization correctionsNao Pross5-16/+22
2018-12-12Separate UPS from FPS, make thread for GameWindow (graphics thread)Nao Pross3-93/+124
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 Pross5-24/+92
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 Pross1-14/+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 Pross4-12/+74
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 Pross2-8/+34
There is also CamingoCode-Regular.ttf that can be used in the future for dev stuff in the UI.
2018-11-26Fix PerfView text colorNao Pross1-0/+3
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 Pross2-251/+0
2018-11-24Rename MenuScene to MainMenuScene and minor code cleanupNao Pross8-26/+25
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 Pross1-0/+1
2018-11-24Add RenderingHints and minor performance improvementsNao Pross1-0/+13
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-21Disable Pause feature, add scene UNIQUE_NAME generatorNao Pross5-39/+62
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 Pross5-63/+105
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 Pross8-132/+247
Compiles, but its totally broken
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 Pross2-2/+4
2018-11-20Move Map loading into Game (out of graphics)Nao Pross2-4/+10
2018-11-20Add currentMap to Game, waitStateChange now returns the new stateNao Pross1-2/+2
2018-11-20Refractor MapSceneNao Pross4-138/+159
2018-11-20Add Game class, fix GameWindow's scene loading / managementNao Pross4-60/+160
The new Game class contains the state of the game and the main logic to manage maps, actors and scores.
2018-11-20Suppress serialVersionUID warningNao Pross5-40/+52
2018-11-19Move util.Palette to graphics.Palette, fix canvas resizeNao Pross4-2/+19
2018-11-19Create java package for the projectNao Pross5-0/+1111