dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
Simple Physics Demo
More fun with vectors.
The code's got itself into a bit of a mess but it does the job. If anyone's interested I can clean it up and comment it. Just not right now, my eyes
are hurting.
Attachment: VPhysDEMO.PRG (6kB) This file has been downloaded 4889 times
|
|
MikeDX
|
|
Finally got around to testing this. Very cool indeed.
We do have a dll for chipmunk physics, but it's not quite ready yet.
|
|
RKSoft
Game Making Machine!
Posts: 232
Registered: 1-3-2016
Location: Germany
Member Is Offline
|
|
Fantastic programm - anybody knows Blobby Volley? So, you can make a remake
with DIV
|
|
dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
Thanks for the comments.
Here's a version with detection of line intersection and a sprite pasted onto the wire frame.
Use W,A,S,D and arrow keys to drive around.
Next step is collision response. If I get that far I'll start a WIP thread.
Attachment: spacefight3.PRG (6kB) This file has been downloaded 4232 times
|
|
MikeDX
|
|
Are you sure this is the right file? If so, can we have spacefight.fpg please?
|
|
dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
Oops sorry:
Here it is.
Attachment: spacefight.FPG (20kB) This file has been downloaded 3960 times
|
|
MikeDX
|
|
That's really cool. Very nicely done indeed!
|
|
dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
OK so after much head scratching I've added collision response. Not exactly a code snippet any more but a useful framework to build some old style
space shooters with.
Attachment: Graphics.FPG (69kB) This file has been downloaded 3988 times
Attachment: VPYHS7.PRG (11kB) This file has been downloaded 3944 times
|
|
MikeDX
|
|
This works really nicely.
Nice work
I do need to find a way of embedding compiled div games as a post though, maybe an iframe would work..
|
|
BreadCaster
Loyalty Card Holder
Posts: 321
Registered: 2-3-2016
Member Is Offline
|
|
Quote: Originally posted by MikeDX |
I do need to find a way of embedding compiled div games as a post though, maybe an iframe would work.. |
If you're going to do that Mike, could you please have a button you have to press to show/enable it? The Div HTML5/Javascript games often run
reaaaaaally slowly on this PC and it basically means that viewing a forum thread could crash my laptop
~*~ Princess of Pies and Pastries ~*~
|
|
MikeDX
|
|
Quote: Originally posted by BreadCaster |
If you're going to do that Mike, could you please have a button you have to press to show/enable it? The Div HTML5/Javascript games often run
reaaaaaally slowly on this PC and it basically means that viewing a forum thread could crash my laptop |
Well yeah, I already do that on the wip pages
|
|
dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
Here's the final version for this thread. It implements using keys to move the objects.
There's a fair bit more to do regarding optimization but it's up and running and now I've got this far I'll try and make some sort of game out of it.
See you in the WIPs, I hope?
Attachment: Graphics.FPG (614kB) This file has been downloaded 4083 times
Attachment: rockets12.prg (15kB) This file has been downloaded 3944 times
|
|
MikeDX
|
|
Hey dom
We sure can add this to the WIPS, maybe it's time i added a form to the wips page to allow uploads. I can automate the entire thing to allow the
server to compile PRG straight into a web page.
|
|
dom cook
Div Pro
Posts: 387
Registered: 4-3-2016
Member Is Offline
|
|
Quote: Originally posted by MikeDX | Hey dom
We sure can add this to the WIPS, maybe it's time i added a form to the wips page to allow uploads. I can automate the entire thing to allow the
server to compile PRG straight into a web page.
|
Now you're showing off. But If you do that I'll have to come up with a game.
|
|
MikeDX
|
|
Well it already works, i was using it for ludum dare until i gave up on it
|
|