Thursday, February 6, 2014
Robot Enemy
Just made this in Ray's class. Pretty simple to start off. If we put it in the game and it works I'll make more sprites for animation. - Charlie
Wednesday, February 5, 2014
New ideas for mad scientist's level
I have came up with new ideas for the group in level design
Ideas for mad scientist level
Characters
The scientist can use bomb viles as a standerd attack.
Chemicals combined can make more powerful explosions based on toxic levels.
special enimies require formula to create attacks
New obsticles
space-time rip in lab
use oxygen O
water plant with H2O to climb.
Pour water in stream to cross
Hydrolfloric acid on a
steel door that losed its handle.
HF hydrogen Fluoride in water.
CaF2 + H2SO4 → 2 HF + CaSO4
Hydogen fluoride = 2 Hiydrofloric acide and one calcium sulfate
Nitroglycerin
for giant explosion of hard to move obstacles.
C3 H3 N3 O9
A Boss could be blocking a door that needs a explosion
Mad scientist could melt ice by combustion by gases like methane.
2H2(g) + O2(g) → 2H2O(g)
I can make more level blueprints if eveyone likes any ideas.
Ideas for mad scientist level
Characters
The scientist can use bomb viles as a standerd attack.
Chemicals combined can make more powerful explosions based on toxic levels.
special enimies require formula to create attacks
New obsticles
space-time rip in lab
use oxygen O
water plant with H2O to climb.
Pour water in stream to cross
Hydrolfloric acid on a
steel door that losed its handle.
HF hydrogen Fluoride in water.
CaF2 + H2SO4 → 2 HF + CaSO4
Hydogen fluoride = 2 Hiydrofloric acide and one calcium sulfate
Nitroglycerin
for giant explosion of hard to move obstacles.
C3 H3 N3 O9
A Boss could be blocking a door that needs a explosion
Mad scientist could melt ice by combustion by gases like methane.
2H2(g) + O2(g) → 2H2O(g)
I can make more level blueprints if eveyone likes any ideas.
Thursday, January 30, 2014
Wednesday, January 29, 2014
Another good Tutorial that answers questions about collision, movement, image file format etc....
This is a really well done tutorial by the guys over at Unity...Shows practical and proper implementation of collision and movement, and animation. It may seem overwhelming to some but its all the basics....
http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-controllers
-Steven
http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-controllers
-Steven
Anthony DaSilva Next post 1/29/2014
Sprites tutorial and collision script in Scripting API Link
Code returns enemy's or objects hit that have colliders.
http://youtu.be/DQYh30L7K68
Physics2D.RaycastAll
Code returns enemy's or objects hit that have colliders.
http://youtu.be/DQYh30L7K68
Physics2D.RaycastAll
static functionRaycastAll(origin:Vector2,direction: Vector2,distance: float = Mathf.Infinity,layerMask: int = DefaultRaycastLayers,minDepth: float = -Mathf.Infinity,maxDepth: float = Mathf.Infinity): RaycastHit2D[];
Parameters
| origin | The point in 2D space where the ray originates. |
| direction | Vector representing the direction of the ray. |
| distance | Maximum distance over which to cast the ray. |
| layerMask | Filter to detect Colliders only on certain layers. |
| minDepth | Only include objects with a Z coordinate (depth) greater than this value. |
| maxDepth | Only include objects with a Z coordinate (depth) less than this value. |
Description
Casts a ray against colliders in the scene, returning all colliders that contact with it.
A raycast is conceptually like a laser beam that is fired from a point in space along a particular direction. Any object making contact with the beam can be detected and reported.
This function is similar to the Raycast function but instead of detecting just the first collider that is hit, an array of all colliders along the path of the ray is returned. The colliders in the array are sorted in order of distance from the origin point. The layerMask can be used to detect objects selectively only on certain layers (this allows you to apply the detection only to enemy characters, for example).
Raycasts are useful for determining lines of sight, targets hit by gunfire and for many other purposes in gameplay.
Additionally, this will also detect Collider(s) at the start of the ray. In this case the ray is starting inside the Collider and doesn't intersect the Collider surface. This means that the collision normal cannot be calculated in which case the collision normal returned is set to the inverse of the ray vector being tested. This can easily be detected because such results are always at a RaycastHit2D fraction of zero.
See Also: LayerMask::ref:: class, RaycastHit2D::ref:: class, Raycast, Linecast, defaultRaycastLayers, ignoreRaycastLayer, raycastsHitTriggers.
Subscribe to:
Posts (Atom)

