lewismcgeary / androidgameoflife Goto Github PK
View Code? Open in Web Editor NEWAndroid implementation of Conway's Game of Life using AnimatedVectorDrawables
License: MIT License
Android implementation of Conway's Game of Life using AnimatedVectorDrawables
License: MIT License
Happens here too.
FAB will appear in the raised position as if snackbar still on screen
once cells can be selected by swiping. Start button should move off screen while finger is being swiped so that grid is not obscured, then move back on screen when finger is raised
consider different approach than new AsyncTasks looping
Extra space is left at the right and bottom where there is some room, but not enough for a cell
FAB hides while cells are being drawn and reappears when finger lifted.
This works for longer touches, but a quick tap causes FAB to hide and another tap is needed to redisplay
Currently grid expands beyond screen limits. Cells at screen edge are half visible, others are off screen
after a while of play, rotating device or reopening game after doing other things may show full live grid.
This is an animated vector drawable issue. may be fixed by setting cells drawable with just plain vectordrawable initially rather than the animated version, then just use animated during gameplay
AnimatedVectorDrawable of 'play' triangle turning into curved 'reset' arrow
Rules need to be broken down and more engaging/visual.
Initial card screen could be shorter with the option to either see the rules, or just play.
Playing transitions straight to the game grid.
option to see rules brings up full screen viewpager breaking rules out into separate pages with diagrams.
style viewpager similar to Google Docs or Twitter, bold background colour which transitions as page changes.
Intro screen to include feature image (matching playstore) and App Logo in large toolbar.
When transitioning to game, Toolbar should collapse up with image fading into solid toolbar.
May require change in structure to use fragments and single Activity so there is only one Toolbar
https://design.google.com/icons/#ic_touch_app
When blank grid first appears use icon to hint at the user drawing cells
use Thread for game loop
put this in model, and remove async task loop from Presenter
when all cells on screen are permanently alive or where there is a constant loop of the same living/dying cells; do something
Shared element transition should use cardview and FloatingActionButton as two separate shared elements, but will only work with one at a time. Has slight illusion of both as CardView in intro activity contains fab, but won't work if FAB is moved out of cardview.
If app is exited during game screen and Activity is destroyed by system, app will crash upon resume.
This error can be forced by enabling 'Don't keep activities' in developer options
front page and first slide of rules viewpager. fix png
Currently 'touch app' icon will fade in and out on first entering the game screen to encourage users to draw cells. users don't always realise they can swipe the screen to draw multiple cells and will instead only use finger taps. Make icon move across screen at same time as fading in/out to encourage swiping
Start button should turn into a reset button once game started, then change back to start button once reset has been pressed.
currently initial grid state is set by tapping one cell at a time, should be able to select multiple by swiping finger
For people who don't read the instructions click ok to go to game then hit play
turn play/reset button into a Floating Action Button at bottom right
What do?
Rotating during a game resets the grid.
Grid size adapts to fit screen so landscape and portrait have different column and row count.
Possibilities:
Likely to do with timing of Async Task.
Reset button kills all cells, but Async Task already running, subsequently returns output causing live cells.
stop async loop when activity is left
currently you can choose your living cells, but once one has been selected it can't be deselected
delay in shared element transition.
Can grid setup be done after transition? Or moved off main thread?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.