Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 02:36:42 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 [3]   Go Down
  Print  
Author Topic: How do you make games with coding??? -  (Read 1123 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
runeazn
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 04 March, 2013, 19:27:00
Date Registered: 15 August, 2011, 15:21:06
Posts: 191


Topic starter
Total Post Ratings: +2

View Profile
« Reply #30 on: 25 February, 2012, 21:11:33 »
0

little taste as completed one tutorial on python Smiley http://www.khanacademy.org/
the tutorial wasnt long though, i followed the tutorial on khan academy
, and now i am following the tutorial called "LearnPythonTheHardway" on http://learnpythonthehardway.org haha
any other good tutorials?
« Last Edit: 25 February, 2012, 21:13:46 by runeazn » Logged
lkj
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Yesterday at 23:22:53
Date Registered: 07 September, 2011, 20:05:25
Posts: 350

Total Post Ratings: +40

View Profile
« Reply #31 on: 25 February, 2012, 21:24:30 »
0

I'm learning Python with this tutorial.
Logged

My Nspire Ndless C projects:
LincolnB
Check It Out Now
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 20 May, 2013, 05:36:22
Date Registered: 02 May, 2011, 00:56:28
Location: Utah Valley
Posts: 1114


Total Post Ratings: +121

View Profile
« Reply #32 on: 26 February, 2012, 04:27:16 »
0

Not sure if it's been mentioned yet but IMO the best way to display graphics using Python is Pygame (pygame.org) and the best way to package and distribute is as a .EXE file is Py2exe (py2exe.org)
Logged

Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler for Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)


Link
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 22 May, 2013, 19:01:48
Date Registered: 28 August, 2012, 22:32:37
Location: Canada/USA
Posts: 116


Total Post Ratings: +4

View Profile WWW
« Reply #33 on: 29 August, 2012, 20:29:40 »
0

Basically games are made up with a main loop. What happens is this:

1. Game starts
2. All the windows are set up and so on.
3. You enter the main game loop
4. The loop continually does the following:
   a. Get input, and process it
   b. All game logic (i.e. move sprites, updates positions, and checks collisions.)
   c. Update the screen
   d. Goto [a].
5. Thats it Smiley

Here is some Pseudo-code of the main loop.

1
2
3
4
5
6
7
8

while(running){
while(SDL_PollEvent(&Event)) // Get key-presses and process them
currentState->Event(&Event);
currentState->Loop(); // Check gamelogic
currentState->Render(); // Update screen
}
Logged

Munchor
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: 21 May, 2013, 17:58:01
Date Registered: 16 October, 2010, 15:39:13
Location: Position
Posts: 6209


Total Post Ratings: +174

View Profile
« Reply #34 on: 29 August, 2012, 21:00:57 »
0

Basically games are made up with a main loop. What happens is this:

1. Game starts
2. All the windows are set up and so on.
3. You enter the main game loop
4. The loop continually does the following:
   a. Get input, and process it
   b. All game logic (i.e. move sprites, updates positions, and checks collisions.)
   c. Update the screen
   d. Goto [a].
5. Thats it Smiley

Here is some Pseudo-code of the main loop.

1
2
3
4
5
6
7
8

while(running){
while(SDL_PollEvent(&Event)) // Get key-presses and process them
currentState->Event(&Event);
currentState->Loop(); // Check gamelogic
currentState->Render(); // Update screen
}

What a necropost, nice!
Logged
ruler501
Crazy Freshman
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:28:34
Date Registered: 08 November, 2010, 02:32:33
Location: In a cave with two spots of light and lots of meat
Posts: 2382


Total Post Ratings: +49

View Profile
« Reply #35 on: 29 August, 2012, 23:36:58 »
0

and isnt that C/++ code...

But good summary of how making games works
Logged


Spoiler for "Projects":
My current games I am working on our:
  I might have an improved C version of this somewhere...
pSDL too lazy too make a userbar so I'll just link to the topic i update routinely http://www.omnimaga.org/index.php?board=146.0
Spoiler for "Misc images of test things":
NerdTests.com says I'm a Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!"<br />[url=http://www.nerdtests.com/ft_personality.php?ref=42769
[/url]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

------END GEEK CODE BLOCK------
"KnifeOn!  Apply directly to the forehead!  KnifeOn is available without a prescription at retailers nationwide."
Link
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 22 May, 2013, 19:01:48
Date Registered: 28 August, 2012, 22:32:37
Location: Canada/USA
Posts: 116


Total Post Ratings: +4

View Profile WWW
« Reply #36 on: 30 August, 2012, 01:54:38 »
0

Thanks, and yes it's C++ code from my project, but for all purposes it's Pseudocode, as long it illustrates the concept.
Logged

Scipi
Omni Kitten Meow~ =^ω^=
LV10 31337 u53r (Next: 2000)
**********
Online Online

Gender: Male
Last Login: Today at 02:36:07
Date Registered: 12 September, 2010, 08:35:24
Location: Lost Town
Posts: 1386


Total Post Ratings: +146

View Profile WWW
« Reply #37 on: 31 August, 2012, 02:23:25 »
0

Something I've always found with games, is that you can split them into three main parts. Input, processing, output.

For something like having a picture collide with another, you'd do as what was said earlier and store the coordinate data and use them during processing. You'd store the picture in an object and you'd use a reference to that object, basically variables. What that object is depends on the library you use or a class you write yourself.


Edit: Using tapatalk, didn't realize this was an old thread Tongue My apologies.
Logged



Spoiler for Things I find interesting:
Spoiler for AI Programming:
Spoiler for Historical warfare/Formations(Warning: Large images):
Phalanx

Testudo

Schiltron

Better version
Terico

Line

Square

Spoiler for Shameless advertising:

Spoiler for OldSig:
Imma Cat! =^_^= (Make this an emoticon!)





Spoiler for IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Spoiler for Misc:


Spoiler for Goosed stuff:
FUSION-TIME GO!
Pages: 1 2 [3]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.333 seconds with 32 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.