top-down-shooter | 2D Multi-platform Multiplayer Top Down Shooter | Game Engine library
kandi X-RAY | top-down-shooter Summary
kandi X-RAY | top-down-shooter Summary
As a side project, I am currently working on a top down shooter kit (for games like zombie/survival waves, team deathmatch, counter strike), that will look professional compared and compatable on mobile devices, including a lot of advanced features (AI, map editor) that can be implemented easily. Im not showcasing this kit yet, but maybe some betas can be tested if requested. Most kits are hard to use and difficult for beginners (most unity users that use kits are beginners), and thus this user friendly kit should contain custom inspectors, and documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of top-down-shooter
top-down-shooter Key Features
top-down-shooter Examples and Code Snippets
Community Discussions
Trending Discussions on top-down-shooter
QUESTION
I'm currently working on a Top-Down-Shooter and having some issues with collision. My world is made of tiles (64x64). The tiles and the entities are rectangles. The player moves with a speed of e.g 2.74 (and not in pixels for smoother movement). But when it comes to the collision between the player (an entity) and a wall i have some issues. To check if there is a collision i take the current position of my player and his movement speed to calculate where his next position would be and if there is any collision. But i check every pixel on the way, so i cant skip an obstacle even if the movement speed is very high. Let's just say the players current position is X:200 Y:200 and he moves 2.74 Pixels a tick in the x direction. My game now checks if there is any collision at X:201 Y:200, X:202 Y:200 or X:202.74 Y:200 and if not moves the player to that position. If I now try to move the player further in the x direction and there is a wall 0.26 Pixels away the player wont move and leave a tiny gap. I tried to calculate the distance between player and wall and add this amount to the players position but for that I need to know which side of the wall the player hits. Also I want the player to be able to move up and down when the wall he hits is in front of him and the other way around.
Here is my collision method (in Java):
...ANSWER
Answered 2017-Jun-29 at 20:08Easily resolvable by changing your interpretation.
You are retaining a fractional position for the purpose of fine grained speed. Ignore the fraction for the purpose of collision detection and display (if you were to do sub-pixel rendering, do the collision on the subpixel rendering accurarcy level).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install top-down-shooter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page