|
Advertisement
|
|
Advertisement
No logs - Anonymous IP
|
 |

11-27-2011, 03:29 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Thinking of writing a new tutorial, what would you guys like to see?
I'm bored and have some time on my hands, what sort of game would you like to see a tutorial of? Tower Defense? Some sort of RPG? Physics? Let me know (2D only).
|

11-27-2011, 03:38 PM
|
 |
Selfish Cunt
|
|
Join Date: Feb 2011
Location: back from the dead
Thanks: 2,132
Thanked 1,729 Times in 1,165 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
this is more of an irl game rather than a computer game, but...
how to kill darkhunter in the most painful way possible
|

11-27-2011, 03:52 PM
|
 |
Child of The Fence
|
|
Join Date: Nov 2009
Location: oranges
Thanks: 3,481
Thanked 2,106 Times in 1,409 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
I want to see a tutorial for Slan Bag, The Game.
On Topic: Do you do Android games, perchance?
__________________
"Yeah, but you say a lot of things...and how does that work? You're a bicycle."
Last edited by HampTheToker; 03-20-2012 at 06:02 AM.
|

11-27-2011, 03:58 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Nope, but I really should. Only Flash games for now. The logic should be simple to port to something else, it's all of the same.
|

11-27-2011, 04:57 PM
|
 |
Child of The Fence
|
|
Join Date: Nov 2009
Location: oranges
Thanks: 3,481
Thanked 2,106 Times in 1,409 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Relevant: http://www.fxitech.com/products/
Will make coding Android games and apps much easier for fledgling Android developers.
__________________
"Yeah, but you say a lot of things...and how does that work? You're a bicycle."
|

12-31-2011, 10:12 PM
|
|
Wealthy Merchant
|
|
Join Date: Jun 2009
Thanks: 26
Thanked 53 Times in 33 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
physics AND tower defence, combined
|

12-31-2011, 11:13 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Got anything in mind? Using Box2D isn't TOO hard.
|

01-08-2012, 03:38 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Tetris
|

01-08-2012, 04:08 PM
|
 |
QhOST IS ZUPERXTREME
|
|
Join Date: Jan 2009
Location: I live in england
Thanks: 182
Thanked 335 Times in 165 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
A AS3 tutorial for certain RPG mechanisms. Such as an inventory with some advanced features (click and drag around/swap, automatic sorting, stacking etc). A NPC interaction system would be great (speech, buying from a shop). Also some form of save system to save all of this.
Those are the 3 tricky areas I always have when looking for tutorials for RPG's, esp. in AS3...
|

01-09-2012, 04:24 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
So a physics, Tower Defense, Tetris mix with RPG elements?
What could go wrong?
|

01-11-2012, 11:05 AM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Heh, well I'll withdraw tetris and switch over to Qhosts suggestion. I'm sure it can't be that hard to learn how to write a tetris clone. A graphic RPG would probably be more interesting.
|

01-11-2012, 11:43 AM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
I have a challenge for you. On a 2D plane, have a cannon, shooting a projectile with a fixed, known velocity, calculate the lead angle correctly to hit a moving target.
The vector of the moving target is known to the cannon (assume it has radar or sumshit). The projectile has a constant velocity, straight line only.
If you figure it, you'll definititely have my respect. It's not an easy problem to solve.
|

01-11-2012, 12:21 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by Valheru
I have a challenge for you. On a 2D plane, have a cannon, shooting a projectile with a fixed, known velocity, calculate the lead angle correctly to hit a moving target.
The vector of the moving target is known to the cannon (assume it has radar or sumshit). The projectile has a constant velocity, straight line only.
If you figure it, you'll definititely have my respect. It's not an easy problem to solve.
|
Does the target move in any direction, or just perpendicular to the cannon (like can it move away from the firing position)?
|

01-11-2012, 12:30 PM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
it can move in any direction. Assume the cannon is a dot mid-screen, and the target is a ball bouncing off the edges of the screen in straight lines (think dxdiag). The cannon should be able to calculate at any time in which direction to aim to ensure the projectile hits the target.
This problem is gonna fuck with you. It requires a neat bit of math-fu.
Ps. Ignore the requirement to hit if the ball target bounces off the screen edge after the projectile is fired, obviously it will miss (but would have hit if the edge wasn't there, capisci?).
And fucking lasers aren't allowed!
Last edited by Valheru; 01-11-2012 at 12:32 PM.
|

01-11-2012, 12:30 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Either way you could do it simply (although probably not elegantly) by calculating the path of the target to some resolution (say 10 points per second along its path, that would define your margin of error) and index them by distance from your firing position. Then calculate the distance from your firing position your "cannon ball" would be at the same resolution. Take the time that the closest match occurs, figure the position of your target at that time, and fire at that point.
|

01-11-2012, 12:31 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Math-fu? Bah, processing time is cheap, easier to approximate it to a high resolution
|

01-11-2012, 12:36 PM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Yeah, but ammo ain't. Do it right and don't be a bitch.
|

01-11-2012, 12:40 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
But you don't need more ammo with my approximation than whatever other calculation you could use  .
|

01-11-2012, 01:00 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
It's not so cheap if you're calculating against a hundred, or a thousand objects. In Flash at least.
My ghetto way would be to just shoot missiles that follow the enemy, not bullets.
To actually hit the enemy with bullets a quadratic equation would help: http://gamedev.stackexchange.com/que...et-to-an-enemy
No I don't know it off the top of my head. >_>
|

01-11-2012, 01:33 PM
|
 |
holier than thou
|
|
Join Date: Jun 2010
Thanks: 526
Thanked 495 Times in 352 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
How to build the core functionality of a roguelike from scratch. Next? Pathfinding AI.
__________________
A monk asked Tozan, "How can we escape the cold and heat?" Tozan replied, "Why not go where there is no cold and heat?" "Is there such a place?" the monk asked. Tozan commented, "When cold, be thoroughly cold; when hot, be hot through and through.
|

01-11-2012, 03:28 PM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by zuperxtreme
It's not so cheap if you're calculating against a hundred, or a thousand objects. In Flash at least. 
|
absolutely. I want to see a brute force method give playable framerates in a game like supcom.
Quote:
My ghetto way would be to just shoot missiles that follow the enemy, not bullets.
|
Variety is the spice of life. Besides, bullets can't be countermeasured  . And to have an efficient intercepting missile that maximises its range, the missile also needs this algorithm.
100% correct. The trick is quite counterintuitive, you have to calculate how long the projectile would take to hit, if it hits. Only way as far as I'm aware is to calculate time t as the roots of that quadratic, giving you a positive and a negative value (which you discard). Given t, you can now use standard trig and displacement math to work out the lead angle.
Doing it in 3d is a trivial matter, you just have to account for the extra dimension.
|
|
The following users say "It is so good to hear it!":
|
|

01-11-2012, 03:41 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Interesting! I still secretly like my brute force method, but honestly it's kinda shit. I was bored though so I ended coding it up. Apparently python has a little module that's perfect for this kind of thing.
Code:
#!/usr/bin/python
# Lanny's targeting aproximation script
from turtle import *
from time import clock
import math, random, time
MARGIN_OF_ERROR = 3.0
TIME_TO_SLEEP = 0.01
class Projectile(Turtle) :
def __init__(self, direction, startspeed, startx, starty) :
Turtle.__init__(self)
# Storing this here just to avoid reverse calculating later
self.startspeed = startspeed
self.pu()
self.setpos(startx, starty)
self.pd()
self.setheading(direction)
alpha = self.heading() * (math.pi / 180.0)
self.vx = startspeed * math.cos(alpha)
self.vy = startspeed * math.sin(alpha)
def step(self) :
x,y=self.pos()
self.setpos(x+self.vx, y+self.vy)
def start(self):
step()
def FiringSolution(target, speed) :
'''Solve for a trajectory based on target properties and speed'''
MAX_CATCH_UP_TIME = math.sqrt(target.pos()[0]**2 + target.pos()[1]**2) / speed - target.startspeed
TargetLocationByTick = []
for tick in range(int(MAX_CATCH_UP_TIME)+100) :
x,y = target.pos()
x += target.vx * tick
y += target.vy * tick
TargetLocationByTick.append((x,y))
TargetLocationByDistance = []
for loc in TargetLocationByTick :
TargetLocationByDistance.append(math.sqrt(loc[0]**2 + loc[1]**2))
print str(TargetLocationByTick)
CurrentOptimumInterceptTick = 0
CurrentOptimumInterceptDistance = 99
for i,dist in enumerate(TargetLocationByDistance) :
if fabs(i*speed - TargetLocationByDistance[i]) < CurrentOptimumInterceptDistance :
CurrentOptimumInterceptDistance = fabs(i*speed - TargetLocationByDistance[i])
print CurrentOptimumInterceptDistance
CurrentOptimumInterceptTick = i
TarLoc = TargetLocationByTick[CurrentOptimumInterceptTick]
print 'TarLoc:' + str(TarLoc)
OptimumInterceptTrajectory = math.acos(TarLoc[0] / math.sqrt(TarLoc[0]**2 + TarLoc[1]**2)) * 180/math.pi
return OptimumInterceptTrajectory
if __name__ == '__main__' :
Target = Projectile(random.randint(0,360), random.random()*2, random.randint(0,100), random.randint(0,100))
Bullet = Projectile(FiringSolution(Target, 3), 3, 0, 0)
while True :
Target.step()
Bullet.step()
Bx,By = Bullet.pos()
Tx,Ty = Target.pos()
if math.sqrt((Bx - Tx)**2 + (By - Ty)**2) <= MARGIN_OF_ERROR :
print 'INTERCEPTION COMPLETE, YAY!'
break
time.sleep(TIME_TO_SLEEP)
|
|
The following users say "It is so good to hear it!":
|
|

01-11-2012, 03:57 PM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Nice. You have the gift.
|

01-11-2012, 04:27 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Lanny, you should learn Actionscript so we can collaborate and make something.
|

01-12-2012, 03:37 AM
|
|
Baron
|
|
Join Date: Mar 2009
Thanks: 115
Thanked 134 Times in 82 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Lanny's firing solution, err, solution, is actually very clever. It may not be optimal, but it's typical of clever programming hacks where a mathematical solution is not readily apparent, or possible. It's basically a hill-climbing attack, and it never even occured to me. Some things can only be solved this way, maybe with some basic heuristics thrown into the mix in order to improve efficiency.
|
|
The following users say "It is so good to hear it!":
|
|

01-12-2012, 07:12 AM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by zuperxtreme
Lanny, you should learn Actionscript so we can collaborate and make something. 
|
I'd love to! What ever happened to those tutorials you did? Do you know anything like "Actionscript for programmers"? Like something that's more of a "here's the syntax and how AS varies from other languages" as opposed to "here's how to program".
Quote:
Originally Posted by Valheru
Lanny's firing solution, err, solution, is actually very clever. It may not be optimal, but it's typical of clever programming hacks where a mathematical solution is not readily apparent, or possible. It's basically a hill-climbing attack, and it never even occured to me. Some things can only be solved this way, maybe with some basic heuristics thrown into the mix in order to improve efficiency.
|
Aww, that's one of the nicer things someone has said to me. Thanks  .
|

01-12-2012, 12:47 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by Lanny
I'd love to! What ever happened to those tutorials you did? Do you know anything like "Actionscript for programmers"? Like something that's more of a "here's the syntax and how AS varies from other languages" as opposed to "here's how to program".
|
Depends, coming from what background?
Here's one coming from Java: http://www.infoq.com/articles/actionscript-java
My tutorials are outdated(there's a new Flixel version), so you'll get a bunch of compile errors.
You'll need FlashDevelop: http://www.flashdevelop.org/download...-4.0.0-RTM.exe
The Open Source Flex SDK: http://opensource.adobe.com/wiki/dis...3201&pkgtype=2
Flash Player 10.1 ActiveX runtime, this one: http://fpdownload.macromedia.com/pub...ebug_32bit.exe
And this one(I think): http://fpdownload.macromedia.com/pub...ebug_32bit.exe
Flixel: https://github.com/AdamAtomic/flixel/zipball/master
(and then Java 1.6+, .Net, blah blah)
If you're interested, Flixel has a bunch of Demos with the Source you can look over: http://flixel.org/features.html
Or PM me and I'll help you out.
|

02-29-2012, 04:59 PM
|
|
Knight
|
|
Join Date: Jan 2011
Location: Eastern-Europe
Thanks: 187
Thanked 83 Times in 59 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
How about a top-down shooter like the old GTAs?
If you really feel like it, then maybe even a multiplayer version.
|

02-29-2012, 06:36 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Isometric style game? I'm doing something similar in python (because I'm lazy and don't want to start a larger project in a language I don't know yet  ) and I'd be interested in seeing how other people would do it.
|

02-29-2012, 06:39 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
From scratch or are frameworks allowed? ;O
|

02-29-2012, 06:47 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Either is fine, it's your tutorial after all  . From scratch might be more interesting, but would probably take an inordinate amount of time.
|

02-29-2012, 07:17 PM
|
 |
Destroyer of worlds
|
|
Join Date: Jan 2009
Location: Buenos Aires, Argentina.
Thanks: 1,369
Thanked 1,990 Times in 1,128 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Pew pew http://www.swfcabin.com/open/1330542993
I was starting on that, so maybe I'll do a tutorial for something like that. Idk, been really lazy lately. :|
Last edited by zuperxtreme; 02-29-2012 at 07:20 PM.
|

03-01-2012, 04:43 PM
|
|
Knight
|
|
Join Date: Jan 2011
Location: Eastern-Europe
Thanks: 187
Thanked 83 Times in 59 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by zuperxtreme
|
Aactually, a tutorial with a decent AI (pathfinding etc) would also be awesome. I've been making flash games for a while now, but AI is one of my weak spots.
|

03-20-2012, 05:48 AM
|
 |
Duke
|
|
Join Date: Apr 2009
Location: Earth (Realm of Man)
Thanks: 496
Thanked 643 Times in 440 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
java game please.
no flash nonsense
__________________
Act that your principle of action might safely be made a law for the whole world.
|

03-20-2012, 06:21 AM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Java as a web platform is dying, and with good reason too. Not that Flash is ideal either, HTML is the way of the future, but seeing how fast adoption is happening, I'd rather get to know Flash than Java.
|

03-20-2012, 02:29 PM
|
|
Knight
|
|
Join Date: Jan 2011
Location: Eastern-Europe
Thanks: 187
Thanked 83 Times in 59 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by Lanny
Java as a web platform is dying, and with good reason too. Not that Flash is ideal either, HTML is the way of the future, but seeing how fast adoption is happening, I'd rather get to know Flash than Java.
|
AFAIK, HTML5 will replace Flash sooner than any kind of HTML will replace Java. But that's just based on the opinions I've heard.
|

03-20-2012, 11:36 PM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by Wolf
AFAIK, HTML5 will replace Flash sooner than any kind of HTML will replace Java. But that's just based on the opinions I've heard.
|
Does Java do things that HTML5 and Flash can't, and probably never will? Yeah, I'll give you that, but it still has not place in webdev to start with. I mean, yes, you can build "richer"(god I hate that word) applications in java, but the only time Ive seen Java used and actually needed in webdev is for browser based MMOs and stuff like that which shouldn't be browser based in the first place.
|

03-21-2012, 12:15 AM
|
 |
Duke
|
|
Join Date: Apr 2009
Location: Earth (Realm of Man)
Thanks: 496
Thanked 643 Times in 440 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by Lanny
Does Java do things that HTML5 and Flash can't, and probably never will? Yeah, I'll give you that, but it still has not place in webdev to start with. I mean, yes, you can build "richer"(god I hate that word) applications in java, but the only time Ive seen Java used and actually needed in webdev is for browser based MMOs and stuff like that which shouldn't be browser based in the first place.
|
wtf does this have to do with making games in java
__________________
Act that your principle of action might safely be made a law for the whole world.
|

03-21-2012, 02:30 AM
|
 |
Sapphires!
|
|
Join Date: Jan 2009
Location: Tarth
Thanks: 1,310
Thanked 1,730 Times in 1,252 Posts
|
|
Re: Thinking of writing a new tutorial, what would you guys like to see?
Quote:
Originally Posted by L33tz
wtf does this have to do with making games in java
|
You shouldn't be doing it in the first place.
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 05:29 PM.
|
|
Hot Topics |
| | | | | | | | | | | | | | |
On IRC |
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
|
Users: 22
Messages/minute: 0
Topic: "buttpee"
|
Users: 10
Messages/minute: 0
Topic: "11:37 < mib_i8mfin> so wie ich die website hier sehe las..."
|
Advertisements |
|
Your ad could go right HERE! Contact us!
|
|