Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 36 37 [38] 39 40 ... 91

Author Topic: Programming Help Thread (For Dummies)  (Read 100862 times)

Chaos Armor

  • Bay Watcher
  • Grand Master Lurker
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #555 on: February 20, 2012, 11:07:43 pm »

But it says in the user license that this is a trial version that lasts for 30 days.
Logged
Lurking since 2009

Leerooooooooy walk forward twice

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #556 on: February 20, 2012, 11:10:24 pm »

No you need to register it in 30 days. They send you a code that you need to use in 30 days or it stops working. You can pay money for a code that unlocks all functionality, or you can get one of the free codes.

Chaos Armor

  • Bay Watcher
  • Grand Master Lurker
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #557 on: February 20, 2012, 11:13:02 pm »

Ah yes, sorry... I'm tired. I realized that when I went back and read it again.
Logged
Lurking since 2009

Leerooooooooy walk forward twice

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #558 on: February 20, 2012, 11:15:35 pm »

program with a friend over the network,

wait what?
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

Max White

  • Bay Watcher
  • Still not hollowed!
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #559 on: February 20, 2012, 11:17:57 pm »

Umm, sort of hard to explain, but it is like if they type something in the same file as you, it appears on both of your screens. So if you were just sitting and watching, code would appear on the screen by itself, because some guy in the next room is typing all that up, and then when he makes a mistake you can delete it and fix it. It is really cool, but it helps if you can hear each other talk.

Valid_Dark

  • Bay Watcher
  • If you wont let me Dream, I wont let you sleep.
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #560 on: February 20, 2012, 11:20:06 pm »

thats what I thought it sounded like, that does sound pretty awesome.
if only I ever had someone to program with :(
Logged
There are 10 types of people in this world. Those that understand binary and those that don't


Quote
My milkshake brings all the criminals to justice.

Chaos Armor

  • Bay Watcher
  • Grand Master Lurker
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #561 on: February 20, 2012, 11:22:00 pm »

Thanks Max, I really needed this. I've got a project where I'm going to create something like a task manager and I'm making a text based game.

Thanks,
Chaos Armor
Logged
Lurking since 2009

Leerooooooooy walk forward twice

Antsan

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #562 on: February 21, 2012, 03:23:50 am »

Less of a programming problem, but I guess here is as good as anywhere t ask:
I get the following error in Firefox with NoScript on GoogleCode:
Quote
[NoScript] Blocking cross-site Javascript served from https://kibbles.googlecode.com/files/kibbles-1.3.3.comp.js with wrong type info text/plain, attachment; filename="kibbles-1.3.3.comp.js" and included by http://code.google.com/p/mindmade/source/browse/mindmade.asd
This prevents me from adding comments to my code, which is really not nice.

Now I tried to add an exception for XSS but I really don't know anything about perl regular expressions. Any pointers what to do?
Logged
Taste my Paci-Fist

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #563 on: February 21, 2012, 10:27:57 am »

Umm, sort of hard to explain, but it is like if they type something in the same file as you, it appears on both of your screens. So if you were just sitting and watching, code would appear on the screen by itself, because some guy in the next room is typing all that up, and then when he makes a mistake you can delete it and fix it. It is really cool, but it helps if you can hear each other talk.


Run Skype alongside it?
Logged

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Programming Help Thread (For Dummies)
« Reply #564 on: February 21, 2012, 02:00:44 pm »

Sorry to re-ask my own question, but it never got answered.

So, how would I go about drawing an image (in Java).
Currently, the relevant part of the code is:

Code: [Select]
private void gameRender(){
if (dbImage == null){
dbImage = createImage(PWIDTH, PHEIGHT);
if (dbImage == null){
System.out.println("dbImage is null");
return;
} else {
dbg= dbImage.getGraphics();
}
}

//clear screen
dbg.setColor(Color.white);
dbg.fillRect(0, 0, PWIDTH, PHEIGHT);

//So how would I add an image here?
   
    }

} // End of gameRender


I have an image, let's say tree.png. How would I add it?
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #565 on: February 21, 2012, 02:06:00 pm »

Oh, that's easy.

I know it's a bitchy answer, but it really isn't hard to find... And, no joke, programming is, amongst other things, about 20-30% googling, depending on language and libraries. It's a skill you must master before taking another step.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Programming Help Thread (For Dummies)
« Reply #566 on: February 21, 2012, 02:23:58 pm »

Yes, I realize how to add an image in general. However, what I was unable to find, was how to add an Image to an Image.

I have it create the image dbImage, then
Graphics dbg = dbg.getGraphics

Then, I want to know how to add the image to dbg

I have googled it, so I may just lack the necessary skills. I hope that clarifys the question, and I apologize.
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #567 on: February 21, 2012, 02:27:17 pm »

http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Graphics.html

drawImage?

There's pretty good docu on all Java "standard" libraries.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

eerr

  • Bay Watcher
    • View Profile
Re: Programming Help Thread (For Dummies)
« Reply #568 on: February 22, 2012, 11:37:57 pm »

Umm, sort of hard to explain, but it is like if they type something in the same file as you, it appears on both of your screens. So if you were just sitting and watching, code would appear on the screen by itself, because some guy in the next room is typing all that up, and then when he makes a mistake you can delete it and fix it. It is really cool, but it helps if you can hear each other talk.

http://www.youtube.com/watch?v=S2Hp_1jqpY8

An extremely relevant video.
« Last Edit: February 22, 2012, 11:59:45 pm by eerr »
Logged

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Programming Help Thread (For Dummies)
« Reply #569 on: February 23, 2012, 12:39:31 am »

Ah. I needed Image image = new ImageIcon(picture.png).getImage().

Would
newIcon = icon.getScaledInstance(newWidth, newHeight, Image.SCALE_DEFAULT);
work to resize it?
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games
Pages: 1 ... 36 37 [38] 39 40 ... 91