All topics unimportant enough to not create a thread for

How do I made forum
User avatar
Liraxus
a title saying "CLODS!"
Posts: 4815
Joined: Fri Jun 24, 2011 12:58 am
Location: Philadelphia's better neighbor

Re: All topics unimportant enough to not create a thread for

Post by Liraxus »

HOOOOOOT

CROOOOOOOOOSS

BUUUUUUUUUUUUUUUUUUNS
Image

Ersatz
Posts: 2278
Joined: Tue Sep 14, 2010 8:52 pm

Re: its late at night and im bored

Post by Ersatz »

AngelicSongx wrote:What's everyone's favorite ice cream flavor?
I'd say mine is maple & walnuts. There's a brand from southern Quebec (Coaticook) that's amazing. They use real ingredients and actual cream and that makes all the difference.

Supaaku
Posts: 1215
Joined: Sun Mar 06, 2011 11:14 am
Contact:

Re: its late at night and im bored

Post by Supaaku »

AngelicSongx wrote:What's everyone's favorite ice cream flavor?
Butterscotch & Gingerbread.
Exeres wrote:You don't know shitholes until you've been to the Gulf Coast.
Image
How do I tumblr?

User avatar
The Nightman
Not actually a granny
Posts: 2386
Joined: Fri Dec 28, 2012 2:25 am
Location: Location Location

Re: its late at night and im bored

Post by The Nightman »

AngelicSongx wrote:What's everyone's favorite ice cream flavor? Mine is mint chocolate chip. But, I have been leaning more towards cookies and creame lately.
Butter pecan and birthday cake. bodaciously the only correct answer.
[Citation Needed] wrote:I am the most least quotable person.

Brekkjern
Posts: 1435
Joined: Tue Mar 29, 2011 2:22 pm
Contact:

Re: All topics unimportant enough to not create a thread for

Post by Brekkjern »

I started working on a game to learn programming, but there are so many things I can't figure out how to do properly. It's not really an issue of syntax/capabilities of code, but rather how to make the program do what I want.

If someone wants to help out it's written in Python and on GitHub.

User avatar
AngelicSongx
Posts: 2952
Joined: Mon Mar 15, 2010 2:16 am
Location: (´・ω・`)
Contact:

Re: All topics unimportant enough to not create a thread for

Post by AngelicSongx »

Riku wrote:Everyone who can think of one, please tell me a song or two (with English words) you liked from elementary music class. Preferrably one that you haven't heard anywhere else, so that it's less likely that a bunch of music students will know it.
I remember we tried singing songs from The Music Man once. Other than that, I don't remember very many songs that music students wouldn't know, other than some Texan songs like "The Yellow Rose of Texas". There were other songs I liked from elementary school that weren't in music class, though, if that helps. Anything by Lucas Miller the singing zoologist, and also We're Going On a Bear Hunt. The bear hunt song that I linked is way less scary than the one I remember. Everyone was afraid of bears because of this song.

Although, that reminds me, there was a song from my brother's middle school play that went something like "Gobble gobble gobble, fat turkeys hooray~ Gobble gobble gobble, fat turkeys today~ You're not here for living, you're here for Thanksgiving~ Gobble gobble gobble, fat turkeys hooray~"

I don't remember what the play was about, or if I even went to go see it, but it's still really creepy to remember, especially since he went to a Catholic middle school.
Sarducar wrote:The day a mom admits she was wrong and her daughter was right is the day we all go ice skating in hell.
Image
My Tumblr

User avatar
Syobon
+4 to defense
Posts: 15027
Joined: Mon Jan 24, 2011 3:34 pm

Re: All topics unimportant enough to not create a thread for

Post by Syobon »

Brekkjern wrote:I started working on a game to learn programming, but there are so many things I can't figure out how to do properly. It's not really an issue of syntax/capabilities of code, but rather how to make the program do what I want.

If someone wants to help out it's written in Python and on GitHub.
That gives me a 404.

Brekkjern
Posts: 1435
Joined: Tue Mar 29, 2011 2:22 pm
Contact:

Re: All topics unimportant enough to not create a thread for

Post by Brekkjern »

Syobon wrote:
Kubein wrote:I started working on a game to learn programming, but there are so many things I can't figure out how to do properly. It's not really an issue of syntax/capabilities of code, but rather how to make the program do what I want.

If someone wants to help out it's written in Python and on GitHub.
That gives me a 404.
Eh. It's because of the wordfilter that filters my name into Kubein. Just substitute that in the URL and it should work.

Ersatz
Posts: 2278
Joined: Tue Sep 14, 2010 8:52 pm

Re: All topics unimportant enough to not create a thread for

Post by Ersatz »

Oh hey I could help a bit maybe. I've used Python while learning to program two years ago, but we never used it for OOP, we did that in Java and Eiffel.

Do you want to make it graphical? Do you know what library you'd use? In my second semester I made a graphical chess game in Python using Pyglet, which was simple enough. I know other people used Pygame but I haven't looked at it. It seemed much more complex.
Last semester I made a 2-player breakout/pong that could be played through a network (screenshot). That's the one that had that funky UML I posted back then.
Back in June I killed some time making a simple platformer using the same library I used for the pong game and two weeks ago I started porting it to the second version of the library I used, which is much more optimised. The code is still in French but I might take the time to change it eventually.

I could probably answer your questions.

Brekkjern
Posts: 1435
Joined: Tue Mar 29, 2011 2:22 pm
Contact:

Re: All topics unimportant enough to not create a thread for

Post by Brekkjern »

I honestly don't know yet. I've been thinking of this mostly as practice and prototyping the idea. Graphics haven't really entered the equation yet.

Right now I have just done all that seemed obvious to begin with. I'm having issues trying to figure out what to do now. I know I need a lot of stuff, but I have no idea how to structure it. My next step would probably be to figure out a way to make the game tick in set intervals and probably implementing a way to load assets into memory from file, but I kind of want to get the class definitions done before I start making the constructors(i think it's called that).

Your projects are certainly impressive for a noob like me. I really just don't have any idea what to do next besides whatever little obvious addition think of there and then, so currently it feels like I'm refactoring the same two unfinished classes over and over again.

Toddv1997
Posts: 1116
Joined: Mon Dec 22, 2014 5:26 am
Location: On the state border of cheese and Da Bears.

Re: All topics unimportant enough to not create a thread for

Post by Toddv1997 »

[quote="Liraxus"]HOOOOOOT
CROOOOOOOOOSS
BUUUUUUUUUUUUUUUUUUNS[ /quote]
I had to perform a song about Duct tape.
Also Cookies and cream
MiiVerse Guy wrote:I'M A FIRIN MY WACKA WACKA! .
3DS Friend Code 2234-7988-2425
NNID Toddv1997
Xbox Toddv1997

Ersatz
Posts: 2278
Joined: Tue Sep 14, 2010 8:52 pm

Re: All topics unimportant enough to not create a thread for

Post by Ersatz »

Brekkjern wrote:My next step would probably be to figure out a way to make the game tick in set intervals
Just like every other interactive program, the main thread is a loop that updates everything. Don't worry about performance and hitting a certain framerate (that's really not what Python is for anyway). What most libraries I've seen do is make you define functions that will be called whenever a certain event is triggered (like on_key_down(), on_mouse_click() ) and take care of the rest.
It's a good idea to make an object that contains the state of the mouse/keyboard and pass it to objects that need it. That way you only have to write once when you detect an event. The way my pong game dealt with whether or not a player controlled his paddle from the local computer or from a remote host was super convenient, the paddles didn't even have to know. They had a "keyboard" attribute which would contain the state of the keys. All you had to do to make a paddle be controlled remotely was give it a "remote_keyboard" object instead of a "local_keyboard" (both subclasses of "keyboard") when creating them.
Brekkjern wrote:and probably implementing a way to load assets into memory from file, but I kind of want to get the class definitions done before I start making the constructors(i think it's called that).
I think you mean a factory. Constructors are the functions within a class that create the objects ( __init__ in Python).
Brekkjern wrote:currently it feels like I'm refactoring the same two unfinished classes over and over again.
I was going to tell you to work with abstract classes and singletons but a quick search showed Python's way of defining those is horrible/nonexistent so nevermind. If you want to really learn OOP, I think other languages would be a better choice. Python is more geared towards scripting and procedural programming, it's implementation of OOP concepts seems like an afterthought.

[Citation Needed]
I'll cite your sources
Posts: 21177
Joined: Sat Jun 26, 2010 6:29 pm
Location: hangin with edgy nerds

Re: All topics unimportant enough to not create a thread for

Post by [Citation Needed] »

A customer from work tried to add me on Facebook. Somehow he found me despite knowing only my first name.




is it time to delete my Facebook again?
Image
Lordy wrote:i also fear you
Rinoko wrote:You old saggy titted witch

Riku
Posts: 11152
Joined: Sat Oct 03, 2009 5:08 am
Location: somewhere in a general that-way direction
Contact:

Re: All topics unimportant enough to not create a thread for

Post by Riku »

Why not just ignore it? That's what I do.

[Citation Needed]
I'll cite your sources
Posts: 21177
Joined: Sat Jun 26, 2010 6:29 pm
Location: hangin with edgy nerds

Re: All topics unimportant enough to not create a thread for

Post by [Citation Needed] »

it's more about the fact that people think that is okay to do



just emptied my recycle bin.
12.0 GB
Image
Lordy wrote:i also fear you
Rinoko wrote:You old saggy titted witch

Post Reply