Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
n1cke - Gideros Forum

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

n1cke

About

Username
n1cke
Joined
Visits
852
Last Active
Roles
Maintainer

Comments

  • Hello, guys. For some reason in new Gideros versions cached fonts work differently and now some fonts can crash Gideros player. If I remove some charsets from "init.lua" file of Layout example project then it works flawlessly, for example with this …
  • UPDATE: ◘ Added ability to zoom and scroll sprites, see "zooming" example. Should be useful for strategy games and arcade puzzles with big fields. ◘ Updated hit detection. ◘ Some minor fixes and improvements, for example template grids can have empt…
  • Yep, Gideros crashes when it tries to cache missing characters. This should be fixed in Gideros source code.
  • MINOR UPDATE: backspace support for native keyboard and font cache changed to 2048 to display cyrillic chars in TextArea example. Please, redownload the project. Also note: Gideros cannot display noncached chars from cached fonts. In my TextArea ex…
  • @grotly, it is totally safe to use Layout without Resource Loader. In fact it is totally independent auxilary function. However, it seems something is wrong with LFS-plugin, maybe incompatibility with new Android (I have old one). keszegh, Layout do…
  • Global: 0.48127102760191 Self: 0.47692719142651 Local: 0.07365396944806 Not on my PC :-) You compare table access `self.self_var` with global variable `global_var` access time. `self` is just implicit parameter, it's speed is the same as any other …
  • If your C|D objects are children of A|B and A|B are non-transparent rectangles without rotation then you can use Sprite:setClip(0, 0, A|B:getWidth(), A|B:getHeight()) on A|B so C|D will look like covered by A|B.
  • UPDATE: ◘ native onscreen keyboard support for iOS and Android, thx to @hgy29. Use `TextArea.setKeyboardOptions{native = true}` to enable it in your app. ◘ new parameter `linechars` to limit width of textarea in characters NOTE: since Gideros doesn'…
  • C++ code was not polluted because Lua C API is natural way for Lua to interact with lower level languages like C/C++ It is easy to write, it is loaded faster and it doesnt need external convertors to load Lua scripts. And 99% of Gideros source uses…
  • Yes, Pixel and few other classes have overloaded constructors. Although you can use this method to inherit from classes without Gideros help: ScrollingBackground = {} -- create class without `Core.class` -- we are implementing `new` method directl…
  • @mertocan: built-in Gideros font has only ASCII characters. You need to add your own font for this, but Gideros cannot display arabic words properly because currently Gideros doesn't support placing chars from right to left. However, you can displa…
  • @muro: at first I was thinking it is a bug but then I have added `bgrA = 0.5` and noticed template grids are overlapping. That's why left template grid got all focus Fixed template grids (without overlapping): local layout = Layout.new{ Layout.new…
  • @mertocan: try TextField.new(font, letter, sample) where sample is a string with highest and lowest character in your font e.g. "Fg" sample is often enough for English texts. Or do you need to put each letter right in the center?
  • @tytadas: you should create buttons with `Button.new(upState, downState)` where upState and downState are 2 sprites, one to show released button and another to show pressed button. And in your code you pass to `Button.new` only one sprite, for examp…
  • @Xman: see this commit: https://github.com/gideros/gideros/commit/0bfc155d7f1cb30598f4c9c4a7c6e71bf9bc2c33 As you can see I have refactored Gideros blending source to make it much more clean and simple, without the need of extra utils like `bin2c` a…
  • @Xman: `setBlendMode` is overloaded method: one argument to set blend modes as before, two arguments to set blend functions. Do you mean it's better to create`setBlendFunc` method for this and avoid overloading?
  • @stetso: which operating system and which Gideros version do you use? 'lfs' plugin is enabled by default for Windows, Android, iOS and, IIRC, for MacOS. Can you `require` other built-in Gideros plugins like`bitop`, `json`, etc?
  • @Greywine: I am just building reverse table: a table where keys are swapped with values. Since I know Sprite contains numeric constants (1 to 11) only for blend functions I can iterate over Sprite class and when value is a number I am adding it to r…
  • @antix: textured Pixel has same speed as Bitmap. Bitmap has little different behavior and supports TextureRegions so we cannot make it obsolete.
  • @pie: textured Pixel is better because it's texture will be fitted automatically into it's dimensions (Letterbox mode). This way you don't need to think about texture size. Pixel is also useful for textures in Texture.REPEAT wrap mode: you can adjus…
  • @simwhi: very likely this week.
  • > Why does 2 loops has the "do" line and repeat..until loop does not? 'do' is just a keyword to separate condition from statements in loops. Without this separator it will be harder to read them, especially when condition and statements are on th…
  • @simwhi: I would like to know this too For some reason Sol gives me errors when I try to build simple lib for Android.
  • > how flexible it really is @antix: [spoiler] in upcoming release Pixel will become most flexible and useful class in Gideros
  • I would make "target table" too, but used table-in-table approach instead: Target = { A = {B = 1, C = 1}, B = {C = 1, D = 1}, C = {A = 1, E = 1}, To check targeting: `Target[unit1name1[unit2name]` Because Lua table access is very fast and do…
  • I hope upcoming release will help because HTML5 export in it works well for me. I tested it locally on Firefox 49.0.2 for Windows 10 x64 with "Desert" and "Shapes" examples.
  • UPDATE: ◘ Fixed scroll function ◘ Updated file_explorer example due to new slider logic This is minor but important update. Examples with scrolling were buggy under certain circumstances due to errors in scroll function. Big thanks to @john26 for hi…
  • Nah, I also wanted to show complexity of `setPath` method, but was distracted by phone call Only `setSvgPath` was extended.
  • @pie: I have extended Path2D:setSvgPath(...) for next Gideros release so instead of (for example) `path2d:setSvgPath(string.format("M %s %s L %s %s", x1, y1, x2, y2))` you can write `path2d:setSvgPath("M", x1, y1, "L", x2, y2)`