Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Simple Physics Demo
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 31-3-2016 at 09:26 AM
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 3406 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 2-4-2016 at 01:51 PM


Finally got around to testing this. Very cool indeed.

We do have a dll for chipmunk physics, but it's not quite ready yet.

View user's profile View All Posts By User
RKSoft
Game Making Machine!
******


Avatar


Posts: 232
Registered: 1-3-2016
Location: Germany
Member Is Offline


[*] posted on 3-4-2016 at 10:36 AM


Fantastic programm :) - anybody knows Blobby Volley? So, you can make a remake with DIV ;)
View user's profile Visit user's homepage View All Posts By User
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 7-4-2016 at 05:00 PM


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 2875 times
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 7-4-2016 at 06:42 PM


Are you sure this is the right file? If so, can we have spacefight.fpg please? :)
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 8-4-2016 at 05:00 AM


Quote: Originally posted by MikeDX  
Are you sure this is the right file? If so, can we have spacefight.fpg please? :)


Oops sorry:
Here it is.

Attachment: spacefight.FPG (20kB)
This file has been downloaded 2628 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 9-4-2016 at 05:23 PM


That's really cool. Very nicely done indeed!
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 14-4-2016 at 01:21 PM


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 2633 times

Attachment: VPYHS7.PRG (11kB)
This file has been downloaded 2582 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 14-4-2016 at 02:21 PM


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..
View user's profile View All Posts By User
BreadCaster
Loyalty Card Holder
******


Avatar


Posts: 321
Registered: 2-3-2016
Member Is Offline


[*] posted on 14-4-2016 at 03:36 PM


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 ~*~
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 14-4-2016 at 03:58 PM


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
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 16-4-2016 at 08:31 AM


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 2698 times

Attachment: rockets12.prg (15kB)
This file has been downloaded 2591 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 21-4-2016 at 02:56 PM


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.

View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 368
Registered: 4-3-2016
Member Is Offline


[*] posted on 21-4-2016 at 07:16 PM


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.
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 21-4-2016 at 09:13 PM


Well it already works, i was using it for ludum dare until i gave up on it
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]