It looks like you're new here. If you want to get involved, click one of these buttons!
elseif objectName == "lava" and application:getDeviceInfo() ~= "Web" then if object.shape == "polygon" then myshape = LF_Particles.new(self.world, self.camera, { x = object.x, y = object.y, coords = object.polygon, rotation = object.rotation, tex = "gfx/ui/btn_02_up.png", }) elseif object.shape == "rectangle" then myshape = LF_Particles.new(self.world, self.camera, { x = object.x, y = object.y, w = object.width, h = object.height, rotation = object.rotation, tex = "gfx/ui/btn_02_up.png", }) elseif object.shape == "ellipse" then myshape = LF_Particles.new(self.world, self.camera, { w = object.width, h = object.height, rotation = object.rotation, }) else print("*** CANNOT PROCESS THIS SHAPE! line ~134 ***") return end |
Likes: hgy29, keszegh, SinisterSoft, antix
Comments
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I can see it on Chrome. Brave works fine for my games though.
https://deluxepixel.com
For example I have already reached the maximum maskBits which is 2^16 (65536).
Some feedback please
same link: https://mokalux.itch.io/gideros-platformer-lf
Now it has 2 levels but no enemies yet. If you stand near the particles you will see them moving, I will play with particledef later on.
How am I suppose to explain this in a tutorial, that is the question
at keszegh I have increased the speed (both animation and velocity) hope you will like it better?!
Works great on mobile too!
Viva gideros.
In the demo, the player can move fine on the ladders but he cannot shoot when he is moving diagonally right/down nor when he is moving diagonally left/up!
All other directions are fine.
Do you know what could be the problem?
Here is the code for the player control:I have tried many things with no luck, any help would be much appreciated
PEACE.
https://drakeirving.github.io/MultiKeyDisplay/
When I press:
- right arrow + down arrow + space bar = key ghost!
- right arrow + up arrow + space bar = OK
- left arrow + down arrow + space bar = OK
- left arrow + up arrow + space bar = key ghost!
So it's my keyboard
The fix is to use another keymaping, for example IJKL + W or WASD + SPACEBAR or even better have some default key and let the user change it if necessary.
I noticed a couple issues. If you jump next to a ledge and hold the up key, you do a double-jump. Likewise if you're jumping up through a one-way platform, if you're holding down up it jumps automatically. Also, if you're walking off of a ledge, you can jump in mid-air before landing.
I think the expected behavior in a platformer is that you have to let go of the jump key and push it again while standing on solid ground in order to jump again. Though, I haven't played computer games in a couple decades, so maybe this has changed.
Likes: MoKaLux
- fixed the double jump
I am working on the building of levels workflow. Right now the process is:
-
I draw my levels in Gimp so I have the full picture of the level-
then in Tiled I import the image and draw over it my levels using shapes- I discovered that TILED handles colors so I can build my levels directly in TILED
- then I draw my graphics (mostly tiles) for the levels in Inkscape
- finally gideros automatically mix the Tiled levels and the graphics from Inkscape (using either the pixel or the shape class)
Level design is so important I am trying to find a quick and easy way to build them.
The code in gideros is mostly done (some magic numbers here and there).
The last thing I need to work on is AI.Almost there, tell me what you think
Will try to do some tuts either YT or written.
In this one I tried refining the player control with better climbing, better pass-through platform, ...
Almost there https://mokalux.itch.io/gideros-platformer-lf
Likes: antix
PS: I changed the main player gfx because I am keeping it for myself
Please do not hesitate to ask if you don't understand any part of it.
Likes: hgy29, SinisterSoft, oleg
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
- added one more test level
- added bumps
- hurt animations
- fixed my problem with reaching the 2^15 limit for bits and mask bits
Oh la la, what the heck box2d
Almost there?
https://mokalux.itch.io/gideros-platformer-lf
Likes: SinisterSoft
Likes: MoKaLux
https://deluxepixel.com
-added some funny anims (hurt and dead)
-reviewed and refactored the code (for example one class had 705 loc now it has 279 loc)
-reintroduced the coins
For this demo I removed the ability for the player to shoot (he needs to jump on the enemies instead)
https://mokalux.itch.io/gideros-platformer-lf
I should post the new project here soon?
Likes: SinisterSoft
https://itch.io/s/30973/faith-in-humanity-restored-bundle
I am not finished yet, there is always stuff to add but it's a good start for a gideros liquidfun 2d platformer template.
Basialy you draw your levels in Tiled following certain naming convention, you export them and voilà.
Don't hesitate to ask anything regarding this LF platformer template.
beware lots of magic numbers
Likes: oleg, hgy29, SinisterSoft
also probably it will be more fun if enemies die easier, like 3 shots at most and jumping on them could kill them instantly. i don't insist on making it a mario-clone but they did many things right there undoubtedly.
Likes: SinisterSoft
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://mokalux.itch.io/gideros-platformer-lf
+ source code a little bit more readable
+ don't hesitate to ask anything
PS: what you get in the code is what is on itch.io at the time of writing
PS2: I have been doing it for 3 months now, I can say from scratch! Conclusion: gideros is fast
PS3: play it full screen
Likes: oleg, SinisterSoft, antix
Bullets are very cheating, it is necessary to limit the frequency of shots and their range
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
The biggest problem at the moment is the naming. Its is not consistent. You are using multiple different styles at the same time. For example:
First, "myappleft" is not readable. It must be changed to my_app_left because you are using underscores later in global constants/variables names. Or to "myAppLeft". And since then you have to name things in same way. Read some articles about "naming in programming" or something like that.
Second, "g_font1" seems to be a global constant. But then I see "G_GROUND", "G_WALL", ... in upper case. It is inconsistent. (small suggestion. If this is indeed constant then it would be better to convert it to a macro in "init.lua" since it is never changing)
One more:
Here it would be better to add newlines because of if statement:
Isn't it looks better?
Project structure also have this poblem.
Folder name is "levels", bet it contains a "BG" class (why it is here? Why its called "BG"?). Same for "tiled_levels" (notices the underscore? Why "tiledmap" or "textfield" in "classes" folder does not have it? ). "menu.lua" does not tell me that its a main menu scene.
Suggestion. If file contains a class with name "MySuperClass", the file name must be the same.
You really need to refactor entire project. I know its hard when its big (I did same thing for my GUI lib. It contains ~30 lua files and I checked every single line), but it is a very important thing. Especially when its public.
Likes: MoKaLux
tell me what you think, still WIP and I promise you rrraptor I won't show my code this time
same link: https://mokalux.itch.io/gideros-platformer-lf
I am planning to do a yt tutorial in french? God's willing.
Viva GiderosGideros rocksLikes: hgy29, SinisterSoft, oleg
plus some captures
Effects are from hgy29 https://wiki.gideros.rocks/index.php/Examples#PARTICLES_EFFECT_1_.40hgy29
I am looking forward to building the next levels
LiquidFun
Likes: rrraptor, SinisterSoft
I sometimes play the game The game has very simple graphics, but it is made in the same style and therefore the game looks professional.
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I will see what I can do for the graphics (I was quite happy with those )
PS: I prefer agar.io (level 100)
Likes: oleg
Once upon a time I did extensions for browsers on JS, but n after updating browsers a lot has changed. And I try to improve other people's scripts for the sake of my training ..
ps//
To make graphics in one style - download from the Internet a color palette with selected colors that match each other.
https://color.adobe.com/trends/Game-design
Then repaint your sprites using only the colors from the palette
You can use multiple palettes if you don't have enough colors.
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I have got this issue with liquidfun:
- collisions between a static body + a dynamic body = OK
- collisions between 2 dynamic bodies = NOT REALLY OK
It seems 2 dynamic bodies don't collide properly when they are both moving, they overlap
Do you know if that's a limitation of box2d? I have been googling it and didn't find anything regarding this issue.
Any feedback would be much appreciated thank you.