Форум программистов, компьютерный форум, киберфорум
Python для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
 Аватар для mikkijon
1 / 1 / 0
Регистрация: 29.08.2014
Сообщений: 282

Злополучный "StickmanGame"

08.05.2023, 17:23. Показов 672. Ответов 4

Студворк — интернет-сервис помощи студентам
Доброго времени суток Друзья!!!

Опять обращаюсь к вам за помощью. Так как всемогущие поисковики что Яндекс что великий гугл как всегда дают мягко говоря, приблизительные ответы и опять завели меня не в ту степь (от которых я уже перестаю понимать как исправить ошибку).
Суть проблемы в следующем. Я до сих учу книжечку Пайтон для детей, и остался последние главы а именно игра под названием "Stackman Game". И вышла ошибка в которой мне не понятны эти ошибки, так как я во время написания листинга старался быть внимательным и после написания каждой функции или класса перепроверял синтаксис отступы пробелы и.т.д.
выкладываю текст ошибки

Code
1
2
3
4
5
 File "C:\Users\mikki\PycharmProjects\stickman\stickmangame.py", line 249, in <module>
    sf = StickFigureSprite(g)
  File "C:\Users\mikki\PycharmProjects\stickman\stickmangame.py", line 94, in __init__
    game.canvas.bind_all('<KeyPress-Left>', self.turn_left)
AttributeError: 'StickFigureSprite' object has no attribute 'turn_left'
По одной из ссылок а именно

было написано следующее:
sf = StickFigureSprite(g)

а где у тебя в классе, принимается переменная g ?
То есть в классе StickFigureSprite я должен указать класс Game? Если да то подскажите пожалуйста где именно и что именно написать.

Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
from tkinter import *
import random
import time
 
class Game:
    def __init__(self):
        self.tk = Tk()
        self.tk.title("Человечек спешит к выхолу")
        self.tk.resizable(0,0)
        self.tk.attributes("-topmost", 1)
        self.canvas = Canvas(self.tk, width=500, height=500, highlightthickness=0)
        self.canvas.pack()
        self.tk.update()
        self.canvas_height = 500
        self.canvas_width = 500
        self.bg = PhotoImage(file="background.gif")
        w = self.bg.width()
        h = self.bg.height()
        for x in range(0, 5):
            for y in range(0, 5):
                self.canvas.create_image(x * w, y * h, image=self.bg, anchor='nw')
        self.sprites = []
        self.running = True
    def mainloop(self):
        while 1:
            if self.running == True:
                for sprite in self.sprites:
                    sprite.move()
            self.tk.update_idletasks()
            self.tk.update()
            time.sleep(0.001)
class Coords:
    def __init__(self, x1=0, y1=0, x2=0, y2=0):
        self.x1 = x1
        self.y1 = y1
        self.x2 = x2
        self.y2 = y2
def whithin_x(co1, co2):
    if (co1.x1 > co2x1 and co1.x1 < co2.x2) \
        or (co1.x2 > co2x1 and co1.x2 < co2.x2) \
        or (co2.x1 > co1.x1 and co2.x1 < co1.x2) \
        or (co2.x2 > co1.x1 and co2.x2 < co1.x2):
        return True
    else:
        return False
def whithin_y(co1, co2):
    if (co1.y1 > co2.y1 and co1.y1 < co2.y2) \
            or (co1.y2 > co2.y1 and co1.y2 < co1.y1) \
            or (co2.y1 > co1.y1 and co2.y1 < co1.y2) \
            or (co2.y2 > co1.y1 and co2.y2 < co1.y2):
        return True
    else:
        return False
 
class Sprites:
    def __init__(self, game):
        self.game = game
        self.endgame = False
        self.coordinates = None
    def move(self):
        pass
    def coords(self):
        return self.coordinates
 
class PlatformSprite(Sprites):
    def __init__(self, game, photo_image, x, y, width, height):
        Sprites.__init__(self, game)
        self.photo_image = photo_image
        self.image = game.canvas.create_image(x, y, \
                                              image = self.photo_image, anchor='nw')
        self.coordinate = Coords(x, y, x + width, y + height)
class StickFigureSprite(Sprites):
    def __init__(self, game):
        Sprites.__init__(self, game)
        self.image_left = [
            PhotoImage(file="figure-L1.gif"),
            PhotoImage(file="figure-L2.gif"),
            PhotoImage(file="figure-L3.gif")
        ]
        self.image_right = [
             PhotoImage(file="figure-R1.gif"),
             PhotoImage(file="figure-R2.gif"),
             PhotoImage(file="figure-R3.gif")
        ]
        self.image = game.canvas.create_image(200, 470, \
                                              image=self.image_left[0], anchor='nw')
        self.x = -2
        self.y = 0
        self.current_image = 0
        self.current_image_add = 1
        self.jump_count = 0
        self.last_time = time.time()
        self.coordinates =Coords()
        game.canvas.bind_all('<KeyPress-Left>', self.turn_left)
        game.canvas.bind_all('<KeyPress-Right>', self.turn_right)
        game.canvas.bind_all('<space>', self.jump)
 
def turn_left(self, evt):
    if self.y == 0:
        self.x = -2
 
def turn_right(self, evt):
    if self.y == 0:
        self.x = 2
 
def juump(self, evt):
    if self.y == 0:
        self.y = -4
        self.jump_count = 0
 
def animate(self):
    if self.x != 0 and self.y == 0:
        if time.time() - self.last_Time>0.1:
            self.last_time = time.time()
            self.current_image += self.current_image_add
            if self.current_image >= 2:
                self.current_image_add = -1
            if self.current_image <= 0:
                self.current_image_add = 1
        if self.x < 0:
            if self.y != 0:
                self.game.canvas.itemconfig(self.image, \
                                            image=self.image_left[2])
            else:
                self.image.canvas.itemcpnfig(self.image,\
                                             image=self.image_left[self.current_image])
        elif self.x > 0:
            if self.y != 0:
                self.game.canvas.itemconfig(self.image, \
                                            image=self.image_right[2])
        else:
            self.game.canvas.itemconfig(self.imagew, \
                                        image = self.image_right[self.current_image])
def coords(self):
    xy = self.game.canvas.coords(self.image)
    self.coordinates.x1 = xy[0]
    self.coordinates.y1 = xy[1]
    self.coordinates.x2 = xy[0] + 27
    self.coordinates.y2 = xy[1] + 30
    return  self.coordinates
 
def move(self):
    self.animate()
    if self.y < 0:
        self.jump_count += 1
        if self.jump_count > 20:
            self.y = 4
    if self.y > 0:
        self.jump_count -= 1
    co = self.coords()
    left =True
    right = True
    top = True
    bottom = True
    falling = True
    if self.y > 0 and co.y2 >= self.game.camvas_height:
        self.y = 0
        bottom = False
    elif self.y < 0 and co.y1 <= 0:
        self.y = 0
        top = False
    if self.x > 0 and co.x2 >= self.game.canvas_width:
        self.x = 0
        right = False
    elif self.x < 0 and co.x1 <= 0:
        self.x = 0
        left = False
    for sprite in self.game.sprites:
        if sprite == self:
            continue
        sprite_co = sprite.coords()
        if top in self.y < 0 and collided_top(co, sprite_co):
            self.y = -self.y
            top = False
        if bottom and self.y > 0 and collided_bottom(self.y, \
                                                     co, sprite_co):
            self.y = sprite_co.y1 - co.y2
            if self.y < 0:
                self.y = 0
            bottom = False
            top = False
        if bottom and falling and self.y == 0 \
            and co.y2 < self.game.canvas_game \
            and collided_bottom(1, co, sprite_co):
            falling = False
        if left and self.x < 0 and collided_left(co, sprite_co):
            self.x = 0
            right = False
    if falling and bottom and self.y == 0 \
        and co.y2 < self.game.camvas_height:
        self.y = 4
    self.game.canvas.move(self.image, self.x, self.y)
def collided_left(co1, co2):
    if whithin_y(co1, co2):
        if co1.x1 <= co2.x2 and co1.x1 >= co2.x1:
            return  True
    return False
def collided_right(co1, co2):
    if whithin_y(co1, co2):
        if co1.x2 >= co2.x1 and co1.x2 <= co2.x2:
            return True
    return False
 
def collided_top(co1, co2):
    if whithin_x(co1, co2):
        if co1.y1 <= co2.y2 and co1.y1 >= co2.y1:
            return True
    return False
 
def collided_bottom(y, co1, co2):
    if whithin_x(co1, co2):
        y_calc = co1.y2 + y
        if y_calc >= co2.y1 and y_calc <= co2.y2:
            return True
    return False
 
g = Game()
platform1 = PlatformSprite(g, PhotoImage(file="platform1.gif"), \
                           0, 480, 100, 10)
platform2 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), \
                           150, 440, 100, 10)
platform3 = PlatformSprite(g, PhotoImage(file="platform3.gif"), \
                           300, 400, 100, 10)
platform4 = PlatformSprite(g, PhotoImage(file="platform1.gif"), \
                           300, 160, 100, 10)
platform5 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), \
                           175, 350, 66, 10)
platform6 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), \
                           50, 300, 66, 100)
platform7 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), \
                           170, 120, 660, 20)
platform8 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), \
                           45, 60, 66, 10)
platform9 = PlatformSprite(g, PhotoImage(file="platform3.gif"), \
                           170, 250, 32, 10)
platform10 = PlatformSprite(g, PhotoImage(file="platform3.gif"), \
                            230, 200, 32, 10)
 
g.sprites.append(platform1)
g.sprites.append(platform2)
g.sprites.append(platform3)
g.sprites.append(platform4)
g.sprites.append(platform5)
g.sprites.append(platform6)
g.sprites.append(platform7)
g.sprites.append(platform8)
g.sprites.append(platform9)
g.sprites.append(platform10)
sf = StickFigureSprite(g)
g.sprites.append(sf)
g.mainloop()
Заранее благодарю Вас!
Миниатюры
Злополучный "StickmanGame"   Злополучный "StickmanGame"  
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
08.05.2023, 17:23
Ответы с готовыми решениями:

Злополучный json
Здравствуйте, ув. форумчане. Использую я Embarcadero RAD Studio 10.1 Berlin. У меня следующий вопрос, возможно даже глупый. Уж...

Злополучный gangnamgame.net
Доброго времени суток, поймал популярный последнее время вирус, как и у остальных при включении компьютера открывается браузер с сайтом...

Злополучный browniell.com/knok.php...
Я думаю, у многих сейчас этот вирус вызывает проблемы. Уважаемые вирусоборцы, напишите, пожалуйста полную инструкцию, как избавиться от...

4
Автоматизируй это!
Эксперт Python
 Аватар для Welemir1
7391 / 4818 / 1246
Регистрация: 30.03.2015
Сообщений: 13,693
Записей в блоге: 29
08.05.2023, 17:42
mikkijon, ты зачем взялся за игры если не понимаешь простых ошибок и не знаешь что такое отступы? у тебя все функции выпали из класса, начиная с turn_left, им надо отступы добавить чтобы они снова в классе оказались
0
 Аватар для mikkijon
1 / 1 / 0
Регистрация: 29.08.2014
Сообщений: 282
09.05.2023, 01:46  [ТС]
Welemir1, Я понимаю Ваше негодование. Но из-за моей работы я могу уделять в пайтон от 1 до 1.5 в день . Так что я в этом деле новичок. И поэтому выбрал книгу для детей в ней материал легкоусвояим.
И компилятор Pycharm , где программа сама следит за синтаксисом. С помощью её меток я проверял все отступы и знаки препинания.
Подскажите пожалуйста где именно выпали из класса потому что я все перепроверил 3 раза по книге. По моему мнению отступы и знаки препинания расставлены верно ( но я могу и ошибиться)
Заранее благодарю Вас
0
Эксперт PythonЭксперт Java
19530 / 11067 / 2931
Регистрация: 21.10.2017
Сообщений: 23,294
09.05.2023, 07:43
Цитата Сообщение от mikkijon Посмотреть сообщение
где именно выпали из класса
Так ув.Welemir1 тебе сказал уже.

Функция turn_left() уже не в классе. Равно как и все остальные, следующие за ней
0
Эксперт PythonЭксперт Java
19530 / 11067 / 2931
Регистрация: 21.10.2017
Сообщений: 23,294
09.05.2023, 08:00
Вообще, странно. Намешаны в кучу и методы класса, и общие функции. Нот гуд.
На. Не проверял
исправлено овердофига косяков
Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
from tkinter import *
import time
 
 
class Game:
    def __init__(self):
        self.tk = Tk()
        self.tk.title("Человечек спешит к выхолу")
        self.tk.resizable(False, False)
        self.tk.attributes("-topmost", 1)
        self.canvas = Canvas(self.tk, width=500, height=500, highlightthickness=0)
        self.canvas.pack()
        self.tk.update()
        self.canvas_height = 500
        self.canvas_width = 500
        self.bg = PhotoImage(file="background.gif")
        w = self.bg.width()
        h = self.bg.height()
        for x in range(0, 5):
            for y in range(0, 5):
                self.canvas.create_image(x * w, y * h, image=self.bg, anchor='nw')
        self.sprites = []
        self.running = True
 
    def mainloop(self):
        while 1:
            if self.running:
                for sprite in self.sprites:
                    sprite.move()
            self.tk.update_idletasks()
            self.tk.update()
            time.sleep(0.001)
 
 
class Coords:
    def __init__(self, x1=0, y1=0, x2=0, y2=0):
        self.x1 = x1
        self.y1 = y1
        self.x2 = x2
        self.y2 = y2
 
 
def whithin_x(co1, co2):
    if (co2.x1 < co1.x1 < co2.x2) \
            or (co2.x1 < co1.x2 < co2.x2) \
            or (co1.x1 < co2.x1 < co1.x2) \
            or (co1.x1 < co2.x2 < co1.x2):
        return True
    else:
        return False
 
 
def whithin_y(co1, co2):
    if (co2.y1 < co1.y1 < co2.y2) \
            or (co2.y1 < co1.y2 < co1.y1) \
            or (co1.y1 < co2.y1 < co1.y2) \
            or (co1.y1 < co2.y2 < co1.y2):
        return True
    else:
        return False
 
 
class Sprites:
    def __init__(self, game):
        self.game = game
        self.endgame = False
        self.coordinates = None
 
    def move(self):
        pass
 
    def coords(self):
        return self.coordinates
 
 
class PlatformSprite(Sprites):
    def __init__(self, game, photo_image, x, y, width, height):
        Sprites.__init__(self, game)
        self.photo_image = photo_image
        self.image = game.canvas.create_image(x, y, image=self.photo_image, anchor='nw')
        self.coordinate = Coords(x, y, x + width, y + height)
 
 
class StickFigureSprite(Sprites):
    def __init__(self, game):
        Sprites.__init__(self, game)
        self.image_left = [
            PhotoImage(file="figure-L1.gif"),
            PhotoImage(file="figure-L2.gif"),
            PhotoImage(file="figure-L3.gif")
        ]
        self.image_right = [
            PhotoImage(file="figure-R1.gif"),
            PhotoImage(file="figure-R2.gif"),
            PhotoImage(file="figure-R3.gif")
        ]
        self.image = game.canvas.create_image(200, 470, image=self.image_left[0], anchor='nw')
        self.x = -2
        self.y = 0
        self.current_image = 0
        self.current_image_add = 1
        self.jump_count = 0
        self.last_time = time.time()
        self.coordinates = Coords()
        game.canvas.bind_all('<KeyPress-Left>', self.turn_left)
        game.canvas.bind_all('<KeyPress-Right>', self.turn_right)
        game.canvas.bind_all('<space>', self.jump)
 
    def turn_left(self, evt):
        if self.y == 0:
            self.x = -2
 
    def turn_right(self, evt):
        if self.y == 0:
            self.x = 2
 
    def jump(self, evt):
        if self.y == 0:
            self.y = -4
            self.jump_count = 0
 
    def animate(self):
        if self.x != 0 and self.y == 0:
            if time.time() - self.last_time > 0.1:
                self.last_time = time.time()
                self.current_image += self.current_image_add
                if self.current_image >= 2:
                    self.current_image_add = -1
                if self.current_image <= 0:
                    self.current_image_add = 1
            if self.x < 0:
                if self.y != 0:
                    self.game.canvas.itemconfig(self.image, image=self.image_left[2])
                else:
                    self.image.canvas.itemcpnfig(self.image, image=self.image_left[self.current_image])
            elif self.x > 0:
                if self.y != 0:
                    self.game.canvas.itemconfig(self.image, image=self.image_right[2])
            else:
                self.game.canvas.itemconfig(self.image, image=self.image_right[self.current_image])
 
    def coords(self):
        xy = self.game.canvas.coords(self.image)
        self.coordinates.x1 = xy[0]
        self.coordinates.y1 = xy[1]
        self.coordinates.x2 = xy[0] + 27
        self.coordinates.y2 = xy[1] + 30
        return self.coordinates
 
    def move(self):
        self.animate()
        if self.y < 0:
            self.jump_count += 1
            if self.jump_count > 20:
                self.y = 4
        if self.y > 0:
            self.jump_count -= 1
        co = self.coords()
        left = True
        right = True
        top = True
        bottom = True
        falling = True
        if self.y > 0 and co.y2 >= self.game.camvas_height:
            self.y = 0
            bottom = False
        elif self.y < 0 and co.y1 <= 0:
            self.y = 0
            top = False
        if self.x > 0 and co.x2 >= self.game.canvas_width:
            self.x = 0
            right = False
        elif self.x < 0 and co.x1 <= 0:
            self.x = 0
            left = False
        for sprite in self.game.sprites:
            if sprite == self:
                continue
            sprite_co = sprite.coords()
            if top in self.y < 0 and collided_top(co, sprite_co):
                self.y = -self.y
                top = False
            if bottom and self.y > 0 and collided_bottom(self.y, co, sprite_co):
                self.y = sprite_co.y1 - co.y2
                if self.y < 0:
                    self.y = 0
                bottom = False
                top = False
            if bottom and falling and self.y == 0 \
                    and co.y2 < self.game.canvas_game \
                    and collided_bottom(1, co, sprite_co):
                falling = False
            if left and self.x < 0 and collided_left(co, sprite_co):
                self.x = 0
                right = False
        if falling and bottom and self.y == 0 \
                and co.y2 < self.game.camvas_height:
            self.y = 4
        self.game.canvas.move(self.image, self.x, self.y)
 
 
def collided_left(co1, co2):
    if whithin_y(co1, co2):
        if co2.x2 >= co1.x1 >= co2.x1:
            return True
    return False
 
 
def collided_right(co1, co2):
    if whithin_y(co1, co2):
        if co2.x1 <= co1.x2 <= co2.x2:
            return True
    return False
 
 
def collided_top(co1, co2):
    if whithin_x(co1, co2):
        if co2.y2 >= co1.y1 >= co2.y1:
            return True
    return False
 
 
def collided_bottom(y, co1, co2):
    if whithin_x(co1, co2):
        y_calc = co1.y2 + y
        if co2.y1 <= y_calc <= co2.y2:
            return True
    return False
 
 
g = Game()
platform1 = PlatformSprite(g, PhotoImage(file="platform1.gif"), 0, 480, 100, 10)
platform2 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), 150, 440, 100, 10)
platform3 = PlatformSprite(g, PhotoImage(file="platform3.gif"), 300, 400, 100, 10)
platform4 = PlatformSprite(g, PhotoImage(file="platform1.gif"), 300, 160, 100, 10)
platform5 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), 175, 350, 66, 10)
platform6 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), 50, 300, 66, 100)
platform7 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), 170, 120, 660, 20)
platform8 = PlatformSprite(g, PhotoImage(file="platfom2.gif"), 45, 60, 66, 10)
platform9 = PlatformSprite(g, PhotoImage(file="platform3.gif"), 170, 250, 32, 10)
platform10 = PlatformSprite(g, PhotoImage(file="platform3.gif"), 230, 200, 32, 10)
 
g.sprites.append(platform1)
g.sprites.append(platform2)
g.sprites.append(platform3)
g.sprites.append(platform4)
g.sprites.append(platform5)
g.sprites.append(platform6)
g.sprites.append(platform7)
g.sprites.append(platform8)
g.sprites.append(platform9)
g.sprites.append(platform10)
sf = StickFigureSprite(g)
g.sprites.append(sf)
g.mainloop()
1
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
09.05.2023, 08:00
Помогаю со студенческими работами здесь

Злополучный ajax и задача с ним
Добрый день! Сделал кнопку в качестве выпадающего меню, по выбору меню меняется цвет кнопки и значение(value), но т.к. я новичок столкнулся...

Злополучный C:\WINDOWS\system32\svchost.exe - модифицированный Win32/Tofsee.AX
Доброго времени суток. Столкнулся с проблемой, коей пестрит форум: &quot;C:\WINDOWS\system32\svchost.exe - модифицированный Win32/Tofsee.AX...

Через 20-30 после старта системы и на первый взгляд нормальной ее работы вылезает злополучный синий экран
Всем привет! у меня произошла проблем того же рода, поэтому не стал создавать новую тему В общем было так: вылез у меня синий...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
5
Ответ Создать тему
Новые блоги и статьи
делаю науч статью по влиянию грибов на сукцессию
anaschu 13.03.2026
прикрепляю статью
SDL3 для Desktop (MinGW): Создаём пустое окно с нуля для 2D-графики на SDL3, Си и C++
8Observer8 10.03.2026
Содержание блога Финальные проекты на Си и на C++: hello-sdl3-c. zip hello-sdl3-cpp. zip Результат:
Установка CMake и MinGW 13.1 для сборки С и C++ приложений из консоли и из Qt Creator в EXE
8Observer8 10.03.2026
Содержание блога MinGW - это коллекция инструментов для сборки приложений в EXE. CMake - это система сборки приложений. Здесь описаны базовые шаги для старта программирования с помощью CMake и. . .
Как дизайн сайта влияет на конверсию: 7 решений, которые реально повышают заявки
Neotwalker 08.03.2026
Многие до сих пор воспринимают дизайн сайта как “красивую оболочку”. На практике всё иначе: дизайн напрямую влияет на то, оставит человек заявку или уйдёт через несколько секунд. Даже если у вас. . .
Модульная разработка через nuget packages
DevAlt 07.03.2026
Сложившийся в . Net-среде способ разработки чаще всего предполагает монорепозиторий в котором находятся все исходники. При создании нового решения, мы просто добавляем нужные проекты и имеем. . .
Модульный подход на примере F#
DevAlt 06.03.2026
В блоге дяди Боба наткнулся на такое определение: В этой книге («Подход, основанный на вариантах использования») Ивар утверждает, что архитектура программного обеспечения — это структуры,. . .
Управление камерой с помощью скрипта OrbitControls.js на Three.js: Вращение, зум и панорамирование
8Observer8 05.03.2026
Содержание блога Финальная демка в браузере работает на Desktop и мобильных браузерах. Итоговый код: orbit-controls-threejs-js. zip. Сканируйте QR-код на мобильном. Вращайте камеру одним пальцем,. . .
SDL3 для Web (WebAssembly): Синхронизация спрайтов SDL3 и тел Box2D
8Observer8 04.03.2026
Содержание блога Финальная демка в браузере. Итоговый код: finish-sync-physics-sprites-sdl3-c. zip На первой гифке отладочные линии отключены, а на второй включены:. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru