23
2017
Drawing 2D lines and Adding Collider to it
Hi awesome reader! In our past tutorial “How to Draw Line” we discussed about drawing a line in the game by mouse interaction. But sometimes we need to draw a line that collides with our game objects in 2D mode. So we need to add […]
22
2012
Qix Prototype
Qix test : Qix (wikipedia), See gameplay video on c64 (youtube) Using the same c# floodfill from here (comments section). Diagonal movement not allowed (using part of this script from unifywiki) Still missing collisions, enemies etc. Just 1 bigger problem to think about: – How do […]
19
2012
Bresenham’s line algorithm (Unity javascript)
* image from wikipedia, public domain Converted this function to Unity javascript: http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm Notes:It works.. Webplayer:http://unitycoder.com/upload/demos/Bresenhamline/ Download webplayer source:Bresenham.unitypackage old unityscript sourcehttps://gist.github.com/unitycoder/90f0f1896e38a13d98e3d0c84ea45789
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on