Weapon Plugin in Phaser 3 Framework - phaser-framework

Phaser 2 had a Weapon Plugin to create a Bullet Pool (var weapon = this.add.weapon()). Now I'm switching to Phaser 3 and I cant find any examples or tutorials to create this. Maybe someone can help me.

A port of the weapon plugin is in progress and can be found here.
The plugin is not fully complete yet as it doesn't have the frame cycle or bullet debug, but it should be mostly working. Credit for the plugin goes to 16patsle from the Phaser discord.
If you want to see an example of using bullets check out this phaser example.

Related

how to use pinch to zoom exoplayer

I am using exoplayer for my streaming app. i would like to implement touch to zoom video player as we do in youtube. if user pinch the screen it will go to zoom mode we will use
playerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_ZOOM);
else we will use
playerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FIT)
I have tried different method from youtube alas none of them worked for me. so i would be happy if some one explain and give me the answer on how to use swipe or pinch to zoom
added with , i have found a medium page explaining this but i have good knowlege only in JAVA and not in kotlin
https://medium.com/agile-freaks/exoplayer-pinch-to-zoom-functionality-bae397471c37
if some one is wellverse in kotlin can help me to decode kotlin code to java

How to check if player enters/exits a tile on the tilemap?

I'm working on a project where once you step out of a tile, that tile becomes a lava tile.
(meaning you can only step on a tile once, making for some interesting levels.) But I cant figure out how to check if the player exits a tile. Please help. Thanks
Have you looked at Area2D. It provides you with enter and exit events.
Take a look at the links below.
Physics introduction
Area2D
Area2D tutorial

Horizontal Scrolling Cards just like Recent Apps of Lollipop in Android?

I found a library, this library supports vertical scrolling cards, I want to change this library according to my needs (Horizontal scrolling).
Can anyone suggest how to implement Cards just like the mentioned library cards horizontally.
Guys I just found a library, which helped me to solve this issue.
Carousel Library
Best Library I found which I customized for my project:
https://github.com/applm/CarouselWidget
Other helpful libraries:
https://github.com/davidschreiber/FancyCoverFlow
https://android-arsenal.com/details/1/3289
I hope, this answer may help you in finding solution.
As I always suggest to ask an author and this time I'm the author of this library, I'll tell you what to do.
RecentsList is very simple and the only place you have to change is here: https://github.com/ZieIony/MaterialRecents/blob/master/app/src/main/java/tk/zielony/materialrecents/RecentsList.java#L127 . This method layouts cards inside container. You have to write your own layouting logic.
Why I don't implement that change? Because I'm not sure what do you mean by horizontal cards. Lollipop in landscape orientation shows vertical cards (at least the one I have on my desk).
The second reason is that I think I should rewrite this library from scratch. It was just an experiment with custom layouting code. Correct implementation would use view reusing and recycling just like RecyclerView and ListView do.

Android UI: What is a good tutorial or resource for image/icon transition animation

I have seen fancy icon transition animations for loading or waiting for process to finish. The icons transitions have splash animations or something similar to animated gifs and then some actual explode like effect on finish loading for a resource in the Android App.
I would like to find tutorial or resources to help me develop these button, icon, small image, transition animations. I really need some help on this, please help.
Please help me with your knowledge on learning or sample code or resources on learning to implement these things for Android UI. thanks in advance.
You should use TransitonDrawable, apply it to your ImageView, and you've got a nice transition. There is a tutorial for that here.
If you want more advanced stuff like movement or rotation, look at the AndroidViewAnimations sample app on GitHub. There is also a tutorial here.
You can also use GifImageView if you want to display a GIF animation.

Custom navigation Titanium

I need do a very special nav or tab bar for a app, I looked this but I not have idea how to make some similar, I work with Titanium mobile, someone with experience could tell me how to make some similar with Titanium, or if someone have other navigation bar more complex that the examples on the kitchensink.
This is where I'd start. Understand that that video is obviously a complex interface and will definitely take work on your part.
This (http://softlywired.com/ticustommenu/) piece of code will get you started, but you will need to go way beyond it writing that interface control. I'd then move on to creating the boxes that pop up, without animation, down the center. After that was working, I'd look at animating them and adding the event listeners to it.
You'd be a star in the Titanium community if you got it working and released the source code to it.

Resources