Rockbox Development > Feature Ideas

2048 Clone

<< < (2/3) > >>

__builtin:
Rewrote the drawing to use bitmaps, quite bug-free now.

Some things to do before upload:
 - Draw the background (not the tiles, the grid) (maybe)
 - Draw the text at the top. (must)
 - Make corners rounder (maybe)
 - Make tiles glow (maybe)
 - Fix compatibility issues (fall back to text-based drawing if no bitmap support)

Has been tested on e200 in sim and ipod6g on hardware.

Should be ready for upload within a few days.
EDIT: Has been uploaded to Gerrit for review.

[Saint]:

--- Quote from: theunamedguy on July 04, 2014, 09:04:49 PM ---When you say an 8x8 grid, do you mean a 4x4 grid?

--- End quote ---

I do indeed, yes.

Apparently I couldn't count yesterday.

Regarding the tiles themselves, are they pre-rendered at a fixed size, or being scaled on demand?

It looks really good, by the way. The only immediately obvious thing left to tackle would be making sure the tiles/board is centred in the display (this may be negated if the tiles were scaled to suit the resolution on demand).

[Saint]

__builtin:

--- Quote ---Regarding the tiles themselves, are they pre-rendered at a fixed size, or being scaled on demand?
--- End quote ---

They are pre-scaled for each target screen. The raw bitmap is available at http://fwei.tk/2048tiles.bmp.

There is the problem of tiles over 2048. According to http://www.quora.com/What-is-your-highest-tile-in-2048, the highest possible tile is 131072 on a 4x4 grid. That's 17 tiles I need to make bitmaps for. Is this overkill?

EDIT: All tiles up to 131072 have bitmaps for them now.

Also, I am not sure how I should go about drawing the background. Should I use a bitmap? If so, what sizes would I need?


--- Quote ---this may be negated if the tiles were scaled to suit the resolution on demand
--- End quote ---

How would I scale them on-demand? An API function?

__builtin:
To ease testing, I have written a very simple and BUGGY save editor for 2048.
With it, I have verified that the drawing is bug-free! :D

It is attached, but beware that it is BUGGY.
The commands are as follows:
c - change a tile
s - change the score
e - write to 2048.resume and exit
Run it in the .rockbox/rocks/games directory.

__builtin:
OK, much better now!
Some minor bugs have been fixed, and many new features have been added.
Screenshot attached, running on ipod6g sim.

Notice the NICE, ROUND corners.  8)

Only big thing left is to make sure it compiles on every target. Testers are needed!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version