2019-06-14 18:13:18

so, i will be using py Game with open al, does anyone know how to make stuff like enemies, maps and menus?, thanks for all the help

2019-06-14 19:20:45

People use their own ways to make said objects. For instance, you have various ways to handle your map. Either via dictionaries, or via arrays, and strings or even classes and arrays.
Enemies are usually classes though that do certain stuff based on how the programmer programs them. It's not something that we can tell you "how to do" except just saying that you have to use classes for enemies, either dictionaries or arrays for your map and similar suggestions, unless you want a full code which you can find one at
https://github.com/kianoosh-shakeri/python-fps
this one doesn't have enemies I think. And is not using pygame. It's using pyglet and pyopenal A modules that wraps openAL library

---
Co-founder of Sonorous Arts.
Check out Sonorous Arts on github: https://github.com/sonorous-arts/
my Discord: kianoosh.shakeri2#2988

2019-06-21 01:35:23

I'm not usually this sarcastic, but, yes, people do know how to make menus, enemies and all that fun stuff.

I presume you're asking how you do it though, rather than enquiring on peoples knowledge, so now I've had my sarcastic moment, I'll try to be helpful.
As post two said, enemies are usually objects.
Menus tend to be functions like this one:
function menu():
while true:
if up arrow pressed:
menupos=menupos-1
if down arrow pressed:
menupos=menupos+1
if enter pressed
return menupos

Seudo code that ultimately is full of holes, but it gives you at least, a rough idea.
First, design the game you want to make in your head, get the ideas, concepts and storyline figured out in your head.
Then put the metaphorical pen to the paper, and start coding.

Nathan Smith
Managing Director of Nathan Tech
It's not disability
It's ability!