Comments (6)
(1) If you ever have some time, would it be possible to also port the Battleship
to different toolkits, based on glimmer? I am not sure how easily feasible
this is, but it would be interesting to see how it works.
That's a good idea. I'll keep this issue report open until that is addressed.
By the way, Glimmer DSL for LibUI matches enough features in Glimmer DSL for SWT (like custom widgets/controls and canvas/area) to be able to handle building Battleship today if I'm not mistaken. You are welcome to port the game to Glimmer DSL for LibUI and then open a Pull Request there if you want to help contribute. I could help if you get stuck along the way. It's important to contribute code to open-source projects not just ideas.
from glimmer.
(2) Perhaps if you use a central glimmer (bin/glimmer) entry point, perhaps
you could consider adding a game-related section?Something like this, assuming the below example uses bin/glimmer:
glimmer --game=tetris
glimmer --game=battleshipAnd so forth.
Or if more information is necessary, something like:
glimmer --game=tetris-libui
glimmer --game=battleship-tk
Or some variant like that. Ideally if it is not available then
it could download this. This is mostly for convenience.
The syntax can be different of course, you could omit
--game= and what not, I just wanted to demonstrate what
I mean.On error message when it is not implemented, glimmer
could show something like:"tetris for gtk is currently unavailable"
And so forth.
(This could be enabled for ALL glimmer apps, kind of like
the "glimmer store" example, but I am focusing primarily
on what you wrote. I think it is easier to adapt something
towards code that works, as opposed to implementing
something from scratch, which can take a lot of time. I
guess the first time you add a game it is more work than
later tweaks.)
Why don't you implement requests like this one yourself and then open a Pull Request? Do you not like to be helpful by contributing code? Do you forget this is an open-source project and open-source projects are a community effort?
In any case, sometimes you come up with the weirdest requests. I mean how difficult is it to click on the game and run it from this app which comes up when you simply run the shorter glimmer samples
command?
How difficult is it to click this link, which is in the README, to find out what all the available games are?
https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/docs/reference/GLIMMER_SAMPLES.md
How difficult is it to simply browse the project's samples
or examples
directory to find out all the games that are supported?
Please think of your requests from a real business point of view. If a customer asks a business to implement a feature like this, they will tell the customer they could already just visit the Markdown docs, the project directory, or even the glimmer samples
app to find out what games are supported. And, they would deny implementing the request given it does not provide any important business value. Every bit of code written adds to the cost of maintaining the project. So, it is important to cut out the fat and keep the code as focused as possible on what truly adds value.
Obviously, some Glimmer toolkits are still brand new and haven't supported the glimmer
command yet, so the user would have to simply open the samples
or examples
directory to find out what games are supported.
If a developer can't even do that, then they shouldn't be using open-source projects to begin with.
from glimmer.
(2) Statistics via a webpage
I think I mentioned this in the past. I saw on some of the
videos the entries in regards to available games, from
within glimmer. That is all fine, but new users may not
yet try out glimmer by installation, so I think some overview
may be nice to have. I guess glimmer here serves a bit
like a generic entry point to all of glimmer, but perhaps
you could add some statistical information about the
whole glimmer suite too. Things people may find
interesting e. g. "supported games: 20, 8 supported in
glimmer-tk, 4 supported in glimmer-libui" and so forth.
Perhaps an external website but otherwise github should
be fine. And perhaps automatically generated so you don't
have to do so manually. Kind of something to show new
users. The current README has a lot of information,
which is great, but perhaps something that is easier to
read and digest. A bit like zenspider's old quickref, but for
glimmer. Kind of like "this is the page to get a short but
useful overview of glimmer, including links" or something.
And statistics too! I like statistics, as overview helper.
This already exists in this link, which is inside the README under samples:
https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/docs/reference/GLIMMER_SAMPLES.md
You must not be reading the README Table of Contents or Sections or else you wouldn't miss it. Make sure to read slowly. Don't just skim and jump over things like the very obvious README Samples section that links to the samples quickref: https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/docs/reference/GLIMMER_SAMPLES.md
from glimmer.
(3) Perhaps add "Battleships" to the glimmer main README,
could be a simple short sentence and one image to keep it
small. Right now we have "glimmer tetris", so it would be
interesting to see different games. At the least for swt perhaps.You currently mention it (aka the string "battleship") in the changelog
but not in the main README. I think a general entry point for
swt and perhaps glimmer itself may be nice. And if you can
add support perhaps in tk or something. Or even libui. The
latter may be interesting if only for users on windows - libui
on windows is really a good idea. I wonder if we could
implement zenity, but I may file a separate issue for that.
As mentioned above in my previous reply, it already exists, but is extracted from the README into its own page, which is linked from the README over here:
https://github.com/AndyObtiva/glimmer-dsl-swt#samples
Which links to Battleship and all other games (I am not going to put all screenshots int the README given that they are linked in this page ... the README cleanly links to them.. you just missed it):
Besides, if you had run glimmer samples
and played around with the samples by following instructions that are in the README, you would have already found Battleship and all other games many months ago when you first discovered the project. It's on you if you missed it. It's mentioned indirectly in the README and in the Samples. I am not sure how you could miss it. You must not be doing your homework and running all Glimmer DSL for SWT samples, which is the correct way to learn the library.
from glimmer.
(4) Icons!
We want battleship icons. :-)
I don't know how easy it is to get permissive images here.
I think you used some central icon site that allowed you to
use some icons for another project (i forgot it ... was it that
cyberpunk game? Or something like that. There was some
website I remember where you could download and use
icons/images. Perhaps something like this exists too. A
boat. A larger boat. :D)
I add icons to games that are spun off into separate projects like Glimmer Tetris, Glimmer Klondike Solitaire, and Glimmer Wordle.
If it's just a sample included in a Glimmer GUI library, then it runs as part of the Glimmer Meta-Sample, so it doesn't really need an icon.
In any case, you can build your own separate project of Battleship if you want and add an icon.
What is stopping you?!
I wish you would contact me once with code that you built that you want to showcase and have me link to in my projects. That would make me very happy obviously.
from glimmer.
(5) Sound effects (optional)
Could be interest to add two small audio sites, but only if
they are available locally, e. g. no need to bundle it. If
a ship was hit, make a different sound that upon a miss.
Users can enable/disable sound settings (not everyone
wants them, but it would be nice to support that - it's
just a fancy/candy idea, not really important for the
actual gameplay; but it can also give people ideas if
they want to implement their own games. Perhaps
even in glimmer, at the least for simple games).
I already demonstrate how to use Sound in Glimmer DSL for SWT through the Timer sample and Glimmer Metronome application.
These should serve as sufficient examples for how to add Sound to Glimmer DSL for SWT applications, but that is outside the scope of samples like Battleship. If it were a separate application, I would have considered it, but the sample is about demonstrating GUI not Sound.
Still, if you want to implement it and open a Pull Request or just implement as a separate project, I'd be happy to hear of it.
from glimmer.
Related Issues (20)
- [Idea / Discussion] Glimmer up EVERYTHING! \o/ HOT 1
- Add support for slint-ui HOT 1
- [Idea/Suggestion - please feel free to ignore/close at any moment in time] Glimmer for the terminal? HOT 2
- Glimmer "store"? HOT 2
- [Suggestion, low priority] Provide "statistics" and information about the whole glimmer suite in some way, or perhaps several ways HOT 1
- Glimmer gosu support? (This is more a question though) HOT 1
- [Idea, just as impetus, don't worry about implementing it and feel free to close it at any moment in time] "Automatic glimmer" or "Automated glimmer" - automatically generating a GUI for commandline applications HOT 1
- [Idea / Suggestion] "Glimmer components": the idea is to have different glimmer widgets, no matter the style, that could be integrated / included and re-used. For instance, rubio-radio to be embedded in a tabbed notebook with a weather-displaying widget HOT 3
- [Small idea / question] Customizing Glimmer Tetris? HOT 1
- [Related to the RubyConf 2022 Talk in about 3 months] If you have time during the talk, could you also mention future ideas and goals for glimmer? HOT 1
- [Minor suggestion for future video content] A video in regards to "workflow use" / computer setup, from the point of view of glimmer, but also aside from glimmer HOT 5
- Glimmer Video Request +1 - a dedicated video for "styling glimmer" applications HOT 3
- [Idea, please close as desired] Glimte-Glimmer for Everyone \o/ (GUIs everywhere) HOT 1
- [Idea] glimmer + curses / ncurses HOT 1
- [Idea] "Standardized" glimmer components HOT 3
- Glimmer statistics (aka overview)? HOT 1
- Enable GitHub Discussions on all glimmer repos HOT 2
- A few ~smaller suggestions, kind of; in particular 2-3 or so suggestions for expanding the FAQ entries HOT 1
- Glimmer support for jruby + SWING? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glimmer.