0rava on DeviantArthttps://www.deviantart.com/0rava/art/Demolition-X-1396039510rava

Deviation Actions

0rava's avatar

Demolition X

By
Published:
19.2K Views

Description

WIP - 0.9.3
Oh look ^ Fancy version number

FAQ:
Q: This doesn't work!
A: Click it to focus on the flash

Q: This still doesn't work!
A: Check the 'Mode: ' from the side, it probably says interact, you can not draw while in that mode, press M.

Q: Why did you add modes, they're so complicated <.<?
A: To fix some bugs, in the oldmode sometimes a rectangle spawns while dragging, and pressing keys to draw something or drag sounds like effort.

Q: Can I see the code?
A: No. But feel free to ask about anything if you'd like and I'll see how much I can help.

Q: Why is everything keyboard controlled and not, for example, visual?
A: Try drawing a box/circle on top of a textfield on the right. Same happens with buttons. But maybe I could add a visualmode where you could change the variables only, we'll see.

Q: Can I suggest more stuff to add there?
A: Please do so, running out of ideas myself.

Q: Why is the Artist's Comments so %#"$& long?
A: I want new people who see this be able to check the progress and read a bit more specific instructions.

Q: OMG THIS R SUPAR KWL?
A: Yes.

Q: How to save/load?
A: Create boxes, copy the text in the blacklined box on the right, save it somewhere, when you come back, or when your friend wants to check it, paste it in the blacklined box, press outside the box to unfocus, press V and your boxes should load. Only works on boxes, and it doesn't save their rotation or joints.
Example: |222.5|123|5.5|43|246.5|161.5|29.5|5.5|313.5|125.5|27.5|44.5|365.5|125.5|6.5|42.5|385.5|163|26.5|5

Q: Why doesn't my camera work?
A: Are you on 7? Mine worked fine on XP, changed on 7 and it stopped working, can't confirm anything on Vista.


Instructions:
Build your own stacks.
Click+drag to make a box, Ctrl+Click+Drag to make a circle.
Hold Shift + click to drag objects
Hold Q + mouseover to move an object, this also puts objects to sleep, if not already.
Mouseover + Del to delete an object (Delete lots of shapes fast by moving mouse around rapidly while holding Del)
1-4 to spawn a stack of shapes, lowest shape is on mouse position and others upwards from that.
Arrowkeys to change selected value. Changes apply only to newlymade shapes.
A/S/D to place a corner of a triangle W to create the triangle
Z to create ragdoll on mouse (head on mouse)
X to create bridge on mouse (the leftmost plank on mouse, others rightwards from that)
J to create object-background joint
K to create object-object joint (hold K, click on an obejct, hold mouse, release on another object to create joint)
Y + click an object to delete the most recently made joint of the object.
M to change the mode.
N to change to oldmode.
Numpad to control camera - 1-4 & 6-9 to move it around, +/- to zoom, 5 to reset.

Restitution means how much things bounce. Density is their weight (0 is a static object). Friction is friction.

Joints:
Revolution Joint (K) = Motor joint, if you set enough motor speed and torque, the second object (the one under mouse on release) will start spinning.
Distance Joint (L) = Simple rigid joint between objects, is created between the point of click & release.
Gear Joint (H) = Will joint 2 objects to the background and make their rotations dependent on each other.
Prismatic Joint (G) = Jointed in the background, but allowing movement within a line (set (x,y) in variables)
Mouse Joint (J) = The joint you use in dragging.


To do:
- Apologizing watchers for spamming new versions
- Properly-working triangles

The lower an item is on the list, the more likely I am NOT to do it, thanks to my close-to-none-AS3 and Box2DAS3 skills. But feel free to suggest.

Changelog:
[Date
From/To version
- Changes]


[9.10.
Random test/0.7
- Changed gravity from 10 to 20
- Changed shape dragging from 'shift' to '1'
- Added shape moving on '2'
- Added shape deleting on '3']

[24.10.
0.7/0.8
- Changed shape dragging from '1' to 'shift'
- Changed shape moving from '2' to 'Q'
- Changed shape deleting from '3' to 'Del'
- Added box-drawing
- Changed starting shape from circle to box
- Added premade stacks to '1-4'
- Removed small rectangle with no purpose from upper corner
- Encountered a bad bug -> got rid of preview while drawing, sorry~ Will fix it later if I figure it out]

[25.10.
0.8/0.8a
- Fixed the drawingbug
- Added density/friction/restitution-changing on arrowkeys for all shapes, including stacks.
- Added textfield to display values (if you rollover it while drawing, your shape will go crazy tho.)
- Added total reset on R
- Added build walls on B
- Deleted the ball (you can now make the same on your own)]

[25.10.
0.8a/0.8b
- Changed variable changevalues
- Fixed a density-changing bug
- Stopped renaming the title to make links not break]

[25.10.
0.8b/0.8c
- Added impulse on X/Y-axis
- Added time between impulses (1000 = 1 second)
- Changed impulse to work instead of the lastly made shape to all
- Changed modifying X/Y force to take effect on the shapes on the stage]

[26.10.
0.8c/0.8d
- Added triangle-support (though it's a bit weird and funnily enough, I kinda don't even understand in which order the dots should be for the triangles to work, or not.)]
[30.10.
0.8d/0.9
- Added ragdolls
- Added bridges
- Fixed movementX/Y bug
- Reworked the variables on textfields (if you'd like any other textfields, just let me know)
- Added object count (it's 5 because the "world" is counted as one object first)
- Modified the premade walls a bit
- Broke 1000 lines of code (1088 now)
- Decided that unless I get great ideas, this will be the last bigger version, out of skills needed for the rest of the current todo list.]

[31.10.
0.9/0.9a
- Added body-background-joints
- Added joint force variable (also the dragging force)]

[1.11.
0.9a/0.9b
- Added deleting of the most recently made joint on Y
- Modified joints to breakable (does not work while dragging or creating (Shift/J down) joints so that they won't counter each other)
- Added joint strength variable (meaning how much force do you need to break it)
- Fixed deleting -> you can now delete statics too (except triangles cuz they're not really static, even if they're green <.< )]

[4.11.
0.9b/0.9c
- Added magnetism on P (hold P and objects are attracted to mouse)
- Added magnet force variable (negative to make things push away from mouse)
- Added magnet range variable
- Reworked the system a bit
- Added modes on M, circlemode to draw circles without needing to press ctrl, boxmode to draw boxes, interactive mode to... Interact (no need to press shift to drag).
- Added oldmode on N for people who oppose changes (works like the previous versions)
- Added variablevariable, it will affect how much you increase other variables (1 for +/-1, 100 for +/- 100, simple)
- Reworked friction and restitution variables as percentages, changed some preset values]

[6.11.
0.9c/0.9d
- Added camera moving
- Added zoom
- reworked the whole system to support the camera
- Noticed a bug in camera reset (don't draw outside the premade walls or camera's width/height will go boom on reset)
- Fixed moving objects (Q) bug
- Modified ingame instructions a bit]

[8.11.
0.9d/0.9e
- Added somehow-working custom joints
- Changed ragdoll and bridge to fall asleep on creation]

[10.11.
0.9e/0.9.1/0.9.2
- Changed magnet from P to O
- Added toggle pause on P (you can still draw stuff while paused, but graphics and the physicsworld will update after you unpause)
- Added revolution joint on K
- Added distance joint on L
- Added gear joint on H
- Added prismatic joint on G
- Added motor speed & torque in variables
- Added prismatic joint x & y in variables
- Noticed that I'm running out of things to do, and it's not because of me not being able to do them this time, it's just that I've done almost everything already. Time to dig in to some bugs then I guess.
- Added rotation (changes with mouse y coords) on U
- Changed move (Q) to not reset rotation.]



[2.12.
0.9.2/0.9.3
- Added save/load boxes' positions.
- Added How to save/load in FAQ
- Thanked Willasss for help with the savesystem at [link] ]
Image size
800x360px 65.27 KB
© 2009 - 2024 0rava
Comments46
michaeldeth's avatar
i friended you orava on kongate
Comments have been disabled for this deviation