Comments (3)
Yes, it's possible to add flags to the executable.
The problem with missing sprites is that we don't know their size - most objects in the engine which are rendered by sprites have an undefined size and are rendered with their natural size, defined in their sprite or inferred from the image size. Thus, we don't really know how big the rectangle should be in order to be drawn on the screen. It can be as small as a single sphere, or as big as an UI dialog background.
I like the idea of logging missing assets instead of crashing - this way, we can pinpoint multiple problems in a single launch, rather than dealing with problems one by one. In far future, there are plans to make a tool which would check the integrity of game files and log all paths to missing stuff, errors in files, unused assets, etc. These are far plans, though.
For now, due to the aforementioned problem, I have no immediate solution to this problem. Will however consider adding it in the future.
from opensmce.
...most objects in the engine which are rendered by sprites have an undefined size and are rendered with their natural size, defined in their sprite or inferred from the image size. Thus, we don't really know how big the rectangle should be in order to be drawn on the screen. It can be as small as a single sphere, or as big as an UI dialog background.
They could be a 32x32 px rect. It could also be a placeholder checkerboard texture even.
from opensmce.
Alright, works for me if it's going to be just a marker which is like "if you see me, you have a serious problem to deal with, check log". I think ResourceManager could handle stuff like that, but the exact implementation is up to discussion.
from opensmce.
Related Issues (20)
- Differentiate between trying to get an unknown resource and a resource which failed to load HOT 1
- Finish game documentation
- WidgetSpriteButton click behavior
- Make sphere shadow sprites optional
- Rewrite the renderer HOT 1
- Make whether the level should wait for shot spheres to be failed configurable
- Make defining sound_event json files optional HOT 4
- The end of OpenSMCE HOT 1
- Level states HOT 3
- Add a better option for removing spheres in a group
- Create builtin fonts once HOT 2
- Allow inline color palette definitions
- Add expression type support
- Fix certain level sequence issues HOT 1
- The game softlocks when the player quits the game when the level is complete
- The sphere stays in the shooter when its instant deployment finishes the level
- New spheres enter the level if the board is cleared and all objectives completed at the same time HOT 1
- LDoc: Allow multiple regex definitions in a regex-keyed object
- Make a sphere groups and launcher color constant in certain maps HOT 1
- Game crashes if a scarab and a few spheres merge past the path exit point 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 opensmce.