Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> ITT Discuss SDL, Techniques, Etc
United States
OniLink10
Posted: Dec 7 2008, 12:34 AM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


ITT we shall discuss Techniques for good SDL Games. This INCLUDES PyGame. I'll go first.

1: For different Rooms, have only 1 Global SDL_Surface*, and change it to load a new Screen every time you change Rooms. Then do Room Setup, including Creating Objects, which should be stored in Classes, then do a Loop that runs while you're still in the room.

2: Make sure each Room's Code is stored in seperate Functions.

3: Have a Global Room variable that tells which room you are currently in.

4: Be sure to have a Room Switcher Function that switches between rooms, and run it in a while(true) loop. To exit, use exit(0).

5: Store all Objects in Classes.

6: For Emulated GM Collision Events, use SDL_collide and Vectors.

This post has been edited by OniLink10 on Dec 7 2008, 02:45 PM


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
Finland
Hohoo
  Posted: Dec 7 2008, 07:31 AM
Quote Post


BAN AUTOTUNE
[*][*][*]

Group Icon
Group: Members
Posts: 1562
Member No.: 3062
Joined: 14-December 06

Status: (0d) [--]


Why only C++? This should apply to Pygame too.


--------------------

user posted image

Reference

Mickeysoft Internet Explorer

MKE


cat /usr/share/icons/*/* > /dev/dsp
user posted image
NOW IS EXCITING COMING
Johto > Hoenn > Sevii > Sinnoh > Kanto
PMUsers Website
Top
Finland
LocoRoo
Posted: Dec 7 2008, 10:58 AM
Quote Post


Persusarvot ovat se tärkein asia.
[*]

Group Icon
Group: Members
Posts: 2663
Member No.: 4867
Joined: 26-December 07

Status: (0d) [--]


If this starts a serious discussion, I'll eat raw eggs. I believe only a select elite group of few practises the sacred art of C++ here in MFGG.


--------------------
QUOTE (OH MY GOD THE MAINSITE AAARGH)
your wasting the sexual thrill of the muffins and ham sandwhiches
PMEmail PosterMSN
Top
United States
imamariobro
Posted: Dec 7 2008, 01:27 PM
Quote Post


Goodbye, MFGG 2.0/current account
[*]

Group Icon
Group: Members
Posts: 678
Member No.: 4498
Joined: 28-September 07

Status: (0d) [--]


I'm not ready for c++ yet. I think I'll learn Lua first.


--------------------
Steam ID: imacleverusername

Ref
PMEmail Poster
Top
United States
OniLink10
Posted: Dec 7 2008, 02:45 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Hohoo @ Dec 7 2008, 04:31 AM)
Why only C++? This should apply to Pygame too.

Added to first Post.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: Dec 7 2008, 02:47 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (imamariobro @ Dec 7 2008, 10:27 AM)
I'm not ready for c++ yet. I think I'll learn Lua first.

Lua can only be used as an extension to another Language such as C++. In Games like Roblox, they use a Special type of Lua that is interpreted by the Program, which is WRITTEN in a Language like C++.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Retriever II
Posted: Dec 7 2008, 05:07 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


C++ is not the appropriate language for every task. That is why many games are written in a composite of languages.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
OniLink10
Posted: Dec 9 2008, 10:48 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Retriever II @ Dec 7 2008, 02:07 PM)
C++ is not the appropriate language for every task.  That is why many games are written in a composite of languages.

Wait...
Are you saying...
We can write Programs that use C + C++ + Objective-C + more?!

This post has been edited by OniLink10 on Dec 9 2008, 11:08 PM


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0543 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.50 ]